Code Analysis: Hesabfa Accounting 1.86.41

Function Rating Maintainability Complexity Lines of code
Ssbhesabfa_Html_output::init()
D
16
62 283
Ssbhesabfa_Setting::ssbhesabfa_export_setting()
D
24
35 228
Ssbhesabfa_Admin_Functions::setOrder()
C
28
26 141
Ssbhesabfa_Setting::ssbhesabfa_sync_setting()
C
28
22 185
Ssbhesabfa_Html_output::save_fields()
B
39 24 58
Ssbhesabfa_Admin_Functions::exportOpeningQuantity()
B
36 21 73
Ssbhesabfa_Api::apiRequest()
B
36 21 72
Ssbhesabfa_Admin::adminChangeProductsCodeCallback()
B
36 18 77
Ssbhesabfa_Admin_Display::hesabfa_plugin_sync_products_manually()
B
33 14 129
Ssbhesabfa_Admin_Functions::setItemChanges()
B
37 16 77
Ssbhesabfa_Admin_Functions::syncProductsManually()
B
40 17 54
Ssbhesabfa_Setting::ssbhesabfa_set_webhook()
B
37 15 77
Ssbhesabfa_Webhook::__construct()
A
39 14 61
Ssbhesabfa_Validation::contactEmailValidation()
A
46 15 37
Ssbhesabfa_Admin::adminUpdateProductAndVariationsCallback()
A
41 13 52
Ssbhesabfa_Admin_Functions::setContact()
A
35 9 87
Ssbhesabfa_Admin_Functions::syncOrders()
A
40 11 57
Ssbhesabfa_Admin_Functions::exportProducts()
A
38 10 66
Ssbhesabfa_Admin_Functions::setOrderPayment()
A
43 11 48
Ssbhesabfa_Webhook::setChanges()
A
49 12 33
Ssbhesabfa_Admin_Functions::setItems()
A
50 11 28
Ssbhesabfa_Admin_Functions::importProducts()
A
35 7 86
Ssbhesabfa_Admin::adminUpdateProductCallback()
A
47 10 34
Ssbhesabfa_Admin::adminChangeProductCodeCallback()
A
43 9 49
Ssbhesabfa_Admin::ssbhesabfa_hook_save_product_variation()
A
44 9 43
Ssbhesabfa_Setting::ssbhesabfa_get_banks()
A
50 10 24
Ssbhesabfa_Admin_Functions::exportCustomers()
A
42 7 48
Ssbhesabfa_Admin_Display::getProductsAndRelations()
A
49 8 29
Ssbhesabfa_Admin::add_hesabfa_product_data_fields()
A
41 5 73
Ssbhesabfa_Webhook::setInvoiceChanges()
A
50 8 28
Ssbhesabfa::define_admin_hooks()
A
40 6 58
Ssbhesabfa_Admin::adminSyncProductsManuallyCallback()
A
50 8 26
Ssbhesabfa_Admin_Display::hesabfa_plugin_page()
A
44 7 40
Ssbhesabfa_Html_output::get_option()
A
52 8 24
Ssbhesabfa_Admin::adminExportProductsOpeningQuantityCallback()
A
51 8 24
Ssbhesabfa_Admin_Functions::setGuestCustomer()
A
42 6 51
Ssbhesabfa_Admin::ssbhesabfa_hook_process_product_meta()
A
49 7 31
Ssbhesabfa_Webhook::setContactChanges()
S
50 7 28
ssbhesabfaItemService::mapProductVariation()
S
49 7 28
Ssbhesabfa_Admin::adminSyncOrdersCallback()
S
50 7 27
Ssbhesabfa_Admin_Functions::syncProducts()
S
45 6 41
ssbhesabfaItemService::mapProduct()
S
52 7 21
Ssbhesabfa_Setting::ssbhesabfa_api_setting()
S
44 4 62
ssbhesabfaItemService::getPriceInHesabfaDefaultCurrency()
S
57 7 17
Ssbhesabfa_Admin_Functions::getPriceInHesabfaDefaultCurrency()
S
59 7 13
Ssbhesabfa_Admin_Functions::getPriceInWooCommerceDefaultCurrency()
S
59 7 13
Ssbhesabfa_Admin::adminImportProductsCallback()
S
53 6 22
Ssbhesabfa_Admin::adminExportProductsCallback()
S
53 6 21
Ssbhesabfa_Admin_Functions::getProductVariations()
S
55 6 20
Ssbhesabfa_Webhook::getObjectsByIdList()
S
55 6 20
Ssbhesabfa_Admin::adminClearPluginDataCallback()
S
55 6 17
Ssbhesabfa_Setting::ssbhesabfa_tab_log_html()
S
46 4 46
Ssbhesabfa_Admin::adminDeleteProductLinkCallback()
S
57 6 15
HesabfaLogService::log()
S
58 6 14
HesabfaWpFaService::saveInvoice()
S
50 5 28
Ssbhesabfa_Admin::ssbhesabfa_hook_delete_product()
S
51 5 25
Ssbhesabfa_Admin_Functions::isDateInFiscalYear()
S
54 5 21
Ssbhesabfa_Admin_Functions::saveItems()
S
48 4 33
Ssbhesabfa_Admin::adminExportCustomersCallback()
S
56 5 17
Ssbhesabfa_Admin::adminSyncProductsCallback()
S
56 5 17
Ssbhesabfa_Admin::adminUpdateProductsCallback()
S
57 5 16
Ssbhesabfa_Admin::ssbhesabfa_hook_order_status_change()
S
58 5 16
HesabfaWpFaService::getProductAndCombinations()
S
58 5 14
Ssbhesabfa_Admin::adminCleanLogFileCallback()
S
60 5 13
Ssbhesabfa_Setting::ssbhesabfa_log_setting()
S
59 5 13
Ssbhesabfa_Admin::adminSubmitInvoiceCallback()
S
62 5 11
Ssbhesabfa_Admin_Display::hesabfa_plugin_repeated_products()
S
48 3 39
Ssbhesabfa_Admin_Functions::getContactCodeByEmail()
S
52 4 24
Ssbhesabfa_Admin::custom_orders_list_column_content()
S
55 4 18
Ssbhesabfa_Admin::ssbhesabfa_update_db_check()
S
58 4 15
Ssbhesabfa_Admin::checkForSyncChanges()
S
58 4 15
Ssbhesabfa_Admin_Functions::isHesabfaContainItems()
S
59 4 14
Ssbhesabfa_Admin_Functions::isHesabfaContainContacts()
S
59 4 14
HesabfaWpFaService::getWpFaId()
S
60 4 12
Ssbhesabfa_Admin::adminDeleteProductsLinkCallback()
S
62 4 11
ssbhesabfaCustomerService::mapCustomer()
S
50 3 25
Ssbhesabfa_Admin_Functions::updateProductsInHesabfaBasedOnStore()
S
52 3 24
Ssbhesabfa_Setting::ssbhesabfa_payment_setting_fields()
S
49 2 31
HesabfaWpFaService::getWpFa()
S
62 4 10
HesabfaWpFaService::getWpFaByHesabfaId()
S
63 4 10
Ssbhesabfa_Admin::adminSyncChangesCallback()
S
64 4 9
Ssbhesabfa_Admin::adminInstallPluginDataCallback()
S
66 4 8
Ssbhesabfa_Admin::ssbhesabfa_hook_delete_user()
S
58 3 15
HesabfaWpFaService::getWpFaIdByHesabfaId()
S
62 4 10
Ssbhesabfa_Admin_Functions::getContactCodeByCustomerId()
S
61 3 12
Ssbhesabfa_Admin_Functions::getInvoiceNumberByOrderId()
S
61 3 12
Ssbhesabfa_Admin_Functions::getInvoiceCodeByOrderId()
S
61 3 12
Ssbhesabfa_Admin::ssbhesabfa_hook_new_product()
S
62 3 12
Ssbhesabfa_Admin::custom_hesabfa_column_order_list()
S
62 3 11
Ssbhesabfa_Setting::ssbhesabfa_catalog_setting_fields()
S
48 1 40
HesabfaWpFaService::saveProduct()
S
53 2 22
Ssbhesabfa_Setting::ssbhesabfa_invoice_setting_fields()
S
49 1 35
HesabfaWpFaService::saveCustomer()
S
55 2 20
Ssbhesabfa_Setting::getSubscriptionInfo()
S
57 2 18
Ssbhesabfa_Loader::run()
S
66 3 8
Ssbhesabfa_Validation::itemSalesTaxValidation()
S
69 3 7
Ssbhesabfa_Webhook::getObjectsByCodeList()
S
63 3 9
Ssbhesabfa_Admin::ssbhesabfa_hook_payment_confirmation()
S
67 3 8
Ssbhesabfa_Setting::ssbhesabfa_api_setting_fields()
S
51 1 29
Ssbhesabfa_Admin::ssbhesabfa_hook_product_options_general_product_data()
S
59 2 13
Ssbhesabfa_Setting::ssbhesabfa_home_setting()
S
57 1 28
Ssbhesabfa_Admin::ssbhesabfa_hook_product_after_variable_attributes()
S
60 2 12
ssbhesabfaItemService::getCategoryPath()
S
61 2 11
Ssbhesabfa_Admin_Functions::getCategoryPath()
S
62 2 11
Ssbhesabfa::__construct()
S
64 2 11
Ssbhesabfa_Admin_Display::hesabfa_plugin_header()
S
61 1 20
Ssbhesabfa_Setting::ssbhesabfa_customers_setting_fields()
S
55 1 19
Ssbhesabfa_Setting::ssbhesabfa_invoice_setting()
S
59 1 18
Ssbhesabfa_Setting::ssbhesabfa_payment_setting()
S
59 1 18
Ssbhesabfa_Activator::ssbhesabfa_create_database_table()
S
58 1 17
Ssbhesabfa_Setting::init()
S
58 1 16
Ssbhesabfa_Admin_Functions::isDateAfterActivation()
S
65 2 9
HesabfaWpFaService::getInvoiceCodeByWpId()
S
70 2 6
Ssbhesabfa_Validation::invoiceItemQuantityValidation()
S
70 2 7
Ssbhesabfa_Admin_Functions::getCountriesAndStates()
S
69 2 7
Ssbhesabfa_Validation::invoiceItemUnitPriceValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemAmountValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemDiscountValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemTaxValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemTotalAmountValidation()
S
70 2 7
Ssbhesabfa_Validation::itemConversionFactorValidation()
S
70 2 7
Ssbhesabfa_Validation::itemPurchaseCostValidation()
S
70 2 7
Ssbhesabfa_Admin_Functions::getBankCodeByPaymentMethod()
S
69 2 7
Ssbhesabfa_Setting::getProductCountsInHesabfa()
S
65 2 8
Ssbhesabfa_Admin::ssbhesabfa_parse_request()
S
68 2 7
Ssbhesabfa_Admin::ssbhesabfa_hook_delete_product_variation()
S
62 2 10
HesabfaWpFaService::getProductCodeByWpId()
S
70 2 6
HesabfaWpFaService::getCustomerCodeByWpId()
S
70 2 6
Ssbhesabfa_Validation::invoiceCurrencyRateValidation()
S
70 2 7
Ssbhesabfa_Validation::formatFarsiNumbers()
S
65 2 7
HesabfaLogService::clearLog()
S
75 2 4
Ssbhesabfa_Admin_Display::hesabfa_plugin_tools()
S
67 1 14
Ssbhesabfa_Activator::activate()
S
59 1 14
Ssbhesabfa_Setting::ssbhesabfa_catalog_setting()
S
63 1 13
Ssbhesabfa_Setting::ssbhesabfa_customers_setting()
S
63 1 13
Ssbhesabfa_Api::invoiceSavePayment()
S
60 1 13
Ssbhesabfa_Admin::enqueue_styles()
S
71 1 5
Ssbhesabfa_Loader::__construct()
S
77 1 4
Ssbhesabfa_Validation::invoiceDueDateValidation()
S
81 1 3
Ssbhesabfa_Admin::load_dependencies()
S
70 1 6
Ssbhesabfa_Validation::contactPostalCodeValidation()
S
71 1 5
HesabfaWpFaService::delete()
S
74 1 4
Ssbhesabfa_Validation::invoiceNumberValidation()
S
78 1 3
Ssbhesabfa_Api::contactGetById()
S
69 1 7
Ssbhesabfa_Admin::ssbhesabfa_missing_notice()
S
76 1 3
Ssbhesabfa::get_plugin_name()
S
82 1 3
Ssbhesabfa_Deactivator::deactivate()
S
89 1 2
Ssbhesabfa_Api::contactGetContacts()
S
69 1 7
Ssbhesabfa_Admin::ssbhesabfa_hook_user_register()
S
76 1 4
HesabfaWpFaService::save()
S
65 1 9
Ssbhesabfa_Validation::itemCategoryValidation()
S
81 1 3
Ssbhesabfa_Admin::ssbhesabfa_query_vars()
S
77 1 4
Ssbhesabfa_Validation::itemMainUnitValidation()
S
78 1 3
Ssbhesabfa_Validation::contactCategoryValidation()
S
81 1 3
Ssbhesabfa_Validation::contactWebsiteValidation()
S
78 1 3
Ssbhesabfa_Loader::add_action()
S
77 1 3
Ssbhesabfa_Api::settingGetFiscalYear()
S
76 1 4
HesabfaLogService::writeLogObj()
S
72 1 5
Ssbhesabfa_Admin::ssbhesabfa_currency_notice()
S
78 1 3
WpFa::__construct()
S
91 1 2
Ssbhesabfa_Validation::invoiceFinancialYearValidation()
S
81 1 3
Ssbhesabfa::load_dependencies()
S
65 1 9
deactivate_ssbhesabfa()
S
76 1 4
HesabfaLogService::getLogFilePath()
S
80 1 3
Ssbhesabfa_Setting::ssbhesabfa_customers_setting_save_field()
S
73 1 5
Ssbhesabfa_Api::settingGetSubscriptionInfo()
S
76 1 4
Ssbhesabfa_Admin_Display::hesabfa_add_menu()
S
71 1 5
Ssbhesabfa_Validation::itemDescriptionValidation()
S
78 1 3
Ssbhesabfa_i18n::load_plugin_textdomain()
S
69 1 7
Ssbhesabfa_Validation::itemBarcodeValidation()
S
74 1 4
Ssbhesabfa_Validation::invoiceContactTitleValidation()
S
78 1 3
Ssbhesabfa_Validation::itemSubUnitValidation()
S
78 1 3
Ssbhesabfa_Validation::contactMobileValidation()
S
74 1 4
Ssbhesabfa_Validation::invoiceItemsValidation()
S
82 1 3
Ssbhesabfa_Api::settingGetChanges()
S
69 1 7
Ssbhesabfa_Admin_Display::__construct()
S
79 1 3
Ssbhesabfa_Setting::getProductsCount()
S
66 1 8
Ssbhesabfa_Api::itemUpdateOpeningQuantity()
S
69 1 7
Ssbhesabfa_Admin::ssbhesabfa_business_expired_notice()
S
78 1 3
HesabfaLogService::readLog()
S
80 1 3
Ssbhesabfa_Api::itemGetByBarcode()
S
69 1 7
Ssbhesabfa_Api::itemGetItems()
S
69 1 7
Ssbhesabfa_Validation::contactFaxValidation()
S
74 1 4
Ssbhesabfa_Validation::contactCodeValidation()
S
74 1 4
Ssbhesabfa_Setting::ssbhesabfa_api_setting_save_field()
S
71 1 6
Ssbhesabfa_Validation::invoiceNoteValidation()
S
78 1 3
Ssbhesabfa_Api::itemDelete()
S
69 1 7
Ssbhesabfa_Validation::contactPhoneValidation()
S
71 1 5
Ssbhesabfa_Api::contactBatchSave()
S
69 1 7
Ssbhesabfa_Validation::contactTagValidation()
S
78 1 3
Ssbhesabfa_Api::invoiceGetOnlineInvoiceURL()
S
67 1 8
Ssbhesabfa_Validation::contactDisplayNameValidation()
S
78 1 3
Ssbhesabfa_Validation::contactLastNameValidation()
S
78 1 3
Ssbhesabfa_Validation::invoiceItemUnitValidation()
S
78 1 3
Ssbhesabfa_Validation::invoiceItemDescriptionValidation()
S
78 1 3
Ssbhesabfa_Validation::contactNoteValidation()
S
78 1 3
Ssbhesabfa_Validation::invoiceReferenceValidation()
S
78 1 3
Ssbhesabfa_Api::contactGet()
S
69 1 7
Ssbhesabfa_Api::itemSave()
S
69 1 7
Ssbhesabfa_Validation::contactNationalCodeValidation()
S
78 1 3
Ssbhesabfa_Api::settingGetWarehouses()
S
76 1 4
Ssbhesabfa_Api::settingGetBanks()
S
76 1 4
Ssbhesabfa_Api::itemGetById()
S
69 1 7
Ssbhesabfa_Validation::contactCompanyValidation()
S
78 1 3
Ssbhesabfa_Api::invoiceDelete()
S
67 1 8
Ssbhesabfa_Setting::ssbhesabfa_invoice_setting_save_field()
S
73 1 5
HesabfaLogService::writeLogStr()
S
74 1 4
Ssbhesabfa_Api::contactDelete()
S
69 1 7
HesabfaWpFaService::deleteAll()
S
74 1 4
Ssbhesabfa_Validation::itemSalesInfoValidation()
S
78 1 3
Ssbhesabfa_Api::settingSetChangeHook()
S
67 1 8
Ssbhesabfa_Api::invoiceGetByIdList()
S
69 1 7
Ssbhesabfa_Setting::getProductCountsInStore()
S
75 1 4
Ssbhesabfa::get_version()
S
82 1 3
Ssbhesabfa_Admin::add_hesabfa_product_data_tab()
S
68 1 7
Ssbhesabfa::set_locale()
S
75 1 4
Ssbhesabfa_Setting::ssbhesabfa_payment_setting_save_field()
S
73 1 5
Ssbhesabfa_Validation::itemCodeValidation()
S
71 1 5
Ssbhesabfa_Api::contactSave()
S
69 1 7
Ssbhesabfa_Admin::ssbhesabfa_init_internal()
S
76 1 4
Ssbhesabfa_Api::fixClearTags()
S
76 1 4
Ssbhesabfa::get_loader()
S
82 1 3
Ssbhesabfa_Admin::ssbhesabfa_live_mode_notice()
S
78 1 3
Ssbhesabfa_Admin_Functions::cleanLogFile()
S
77 1 4
Ssbhesabfa_Admin::enqueue_scripts()
S
73 1 4
Ssbhesabfa_Loader::add_filter()
S
77 1 3
Ssbhesabfa_Validation::contactTitleValidation()
S
78 1 3
Ssbhesabfa_Setting::getLinkedProductsCount()
S
75 1 4
Ssbhesabfa_Validation::contactAddressValidation()
S
78 1 3
HesabfaWpFaService::mapWpFa()
S
65 1 9
Ssbhesabfa_Validation::itemTagValidation()
S
78 1 3
Ssbhesabfa_Api::settingGetCurrency()
S
76 1 4
Ssbhesabfa_Admin::__construct()
S
74 1 5
HesabfaWpFaService::update()
S
65 1 9
run_ssbhesabfa()
S
77 1 4
Ssbhesabfa_Setting::ssbhesabfa_catalog_setting_save_field()
S
73 1 5
Ssbhesabfa_Validation::contactRegistrationNumberValidation()
S
78 1 3
Ssbhesabfa_Api::invoiceGet()
S
67 1 8
activate_ssbhesabfa()
S
76 1 4
Ssbhesabfa_Api::itemGet()
S
69 1 7
Ssbhesabfa_Api::invoiceGetInvoices()
S
67 1 8
Ssbhesabfa_Validation::contactCityValidation()
S
78 1 3
Ssbhesabfa_Validation::itemNameValidation()
S
74 1 4
Ssbhesabfa_Api::invoiceSave()
S
69 1 7
Ssbhesabfa_Loader::add()
S
64 1 10
Ssbhesabfa_Webhook::ssbhesabfa_business_expired_notice()
S
78 1 3
Ssbhesabfa_Api::invoiceGetById()
S
69 1 7
Ssbhesabfa_Admin_Display::hesabfa_add_settings_menu()
S
89 1 2
Ssbhesabfa_Validation::invoiceTagValidation()
S
78 1 3
Ssbhesabfa_Validation::contactCountryValidation()
S
78 1 3
Ssbhesabfa_Validation::contactStateValidation()
S
78 1 3
Ssbhesabfa_Validation::contactEconomicCodeValidation()
S
78 1 3
HesabfaWpFaService::__construct()
S
91 1 2
Ssbhesabfa::run()
S
82 1 3
Ssbhesabfa_Validation::itemPurchaseInfoValidation()
S
78 1 3
Ssbhesabfa_Api::itemBatchSave()
S
69 1 7
Ssbhesabfa_Validation::contactFirstNameValidation()
S
78 1 3