Code Analysis: Hesabfa Accounting 2.0.97

Function Rating Maintainability Complexity Lines of code
Ssbhesabfa_Admin_Functions::convertCityCodeToName()
D
0
4 2,430
Ssbhesabfa_Html_output::init()
D
17
62 267
Ssbhesabfa_Admin_Functions::setOrder()
D
19
50 210
Ssbhesabfa_Setting::ssbhesabfa_extra_setting()
D
25
52 154
Ssbhesabfa_Setting::ssbhesabfa_export_setting()
D
24
35 232
Ssbhesabfa_Setting::ssbhesabfa_tab_log_html()
D
24
31 214
Ssbhesabfa_Setting::ssbhesabfa_sync_setting()
D
24
29 232
Ssbhesabfa_Admin_Functions::exportOpeningQuantity()
C
34 25 83
ssbhesabfaCustomerService::mapCustomer()
C
31 23 105
Ssbhesabfa_Html_output::save_fields()
B
39 24 56
Ssbhesabfa_Api::apiRequest()
B
36 22 72
Ssbhesabfa_Admin::adminChangeProductsCodeCallback()
B
36 18 77
Ssbhesabfa_Admin_Functions::setOrderPayment()
B
36 18 77
Ssbhesabfa_Webhook::__construct()
B
37 18 71
Ssbhesabfa_Admin_Display::hesabfa_plugin_sync_products_manually()
B
33 14 129
Ssbhesabfa_Admin_Functions::getContactCodeByPhoneOrEmail()
B
49 20 27
Ssbhesabfa_Admin_Functions::syncProductsManually()
B
40 17 54
Ssbhesabfa_Admin_Functions::setItemNewPrice()
B
45 18 35
Ssbhesabfa_Setting::ssbhesabfa_set_webhook()
B
36 15 79
Ssbhesabfa_Admin_Functions::exportProducts()
B
36 14 76
Ssbhesabfa_Admin::adminUpdateProductAndVariationsCallback()
A
40 15 57
Ssbhesabfa_Setting::ssbhesabfa_customers_setting()
A
35 11 106
Ssbhesabfa_Admin_Functions::importProducts()
A
32 11 100
Ssbhesabfa_Validation::contactEmailValidation()
A
46 15 37
Ssbhesabfa_Webhook::setChanges()
A
46 14 40
Ssbhesabfa_Admin_Functions::syncProducts()
A
41 12 53
Ssbhesabfa_Admin_Functions::syncOrders()
A
40 11 57
Ssbhesabfa_Admin::adminUpdateProductCallback()
A
45 12 40
Ssbhesabfa_Admin::ssbhesabfa_hook_save_product_variation()
A
43 11 45
Ssbhesabfa::define_admin_hooks()
A
36 9 74
ssbhesabfaCustomerService::getAdditionalCheckoutFileds()
A
48 11 32
Ssbhesabfa_Admin_Functions::setItemChanges()
A
47 11 31
Ssbhesabfa_Admin::add_additional_fields_to_checkout()
A
41 9 60
Ssbhesabfa_Setting::ssbhesabfa_customers_setting_save_field()
A
45 10 38
Ssbhesabfa_Admin::adminChangeProductCodeCallback()
A
43 9 49
Ssbhesabfa_Admin_Functions::setItems()
A
55 11 17
Ssbhesabfa_Setting::ssbhesabfa_get_banks()
A
50 10 24
ssbhesabfaItemService::mapProduct()
A
51 10 23
Ssbhesabfa_Admin::ssbhesabfa_hook_order_status_change()
A
53 10 23
Ssbhesabfa_Webhook::getObjectsByIdList()
A
48 9 33
Ssbhesabfa_Admin_Functions::updateProductsInHesabfaBasedOnStoreWithFilter()
A
48 9 33
Ssbhesabfa_Setting::ssbhesabfa_payment_setting_fields()
A
37 5 87
ssbhesabfaItemService::mapProductVariation()
A
49 9 26
Ssbhesabfa_Admin::ssbhesabfa_hook_user_register()
A
51 9 25
ssbhesabfaCustomerService::mapGuestCustomer()
A
42 7 47
Ssbhesabfa_Admin_Functions::exportCustomers()
A
43 7 46
ssbhesabfaCustomerService::correctCustomerData()
A
58 9 15
Ssbhesabfa_Admin::add_hesabfa_product_data_fields()
A
41 5 74
Ssbhesabfa_Admin_Display::getProductsAndRelations()
A
49 8 29
Ssbhesabfa_Setting::ssbhesabfa_get_cashes()
A
59 9 13
Ssbhesabfa_Webhook::setInvoiceChanges()
A
50 8 27
Ssbhesabfa_Admin_Display::hesabfa_plugin_page()
A
44 7 41
Ssbhesabfa_Admin::adminSyncProductsManuallyCallback()
A
50 8 26
Ssbhesabfa_Html_output::get_option()
A
52 8 24
Ssbhesabfa_Admin::adminExportProductsOpeningQuantityCallback()
A
51 8 24
Ssbhesabfa_Admin_Functions::setItemNewQuantity()
A
52 8 22
Ssbhesabfa_Admin::ssbhesabfa_hook_process_product_meta()
A
49 7 31
Ssbhesabfa_Admin_Functions::CheckNationalCode()
S
50 7 28
Ssbhesabfa_Admin::adminSyncOrdersCallback()
S
50 7 27
Ssbhesabfa_Webhook::setContactChanges()
S
50 7 26
Ssbhesabfa_Setting::ssbhesabfa_home_setting()
S
42 1 113
Ssbhesabfa_Api::invoiceSavePayment()
S
52 7 22
Ssbhesabfa_Setting::ssbhesabfa_payment_setting()
S
49 6 36
Ssbhesabfa_Setting::ssbhesabfa_invoice_setting_fields()
S
37 2 93
Ssbhesabfa_Setting::ssbhesabfa_api_setting()
S
44 4 62
Ssbhesabfa_Admin_Functions::updateProductsInHesabfaBasedOnStore()
S
49 6 30
Ssbhesabfa_Admin_Functions::getPriceInHesabfaDefaultCurrency()
S
60 7 12
Ssbhesabfa_Admin_Functions::getPriceInWooCommerceDefaultCurrency()
S
60 7 12
Ssbhesabfa_Admin_Functions::setWarehouseReceipt()
S
50 6 26
Ssbhesabfa_Setting::ssbhesabfa_get_warehouses()
S
51 6 24
Ssbhesabfa_Admin::adminImportProductsCallback()
S
53 6 22
Ssbhesabfa_Admin::adminExportProductsCallback()
S
53 6 21
Ssbhesabfa_Admin::adminUpdateProductsWithFilterCallback()
S
54 6 21
Ssbhesabfa_Admin_Functions::getProductVariations()
S
55 6 19
HesabfaLogService::log()
S
55 6 17
Ssbhesabfa_Admin::adminClearPluginDataCallback()
S
55 6 17
ssbhesabfaItemService::getPriceInHesabfaDefaultCurrency()
S
63 7 9
Ssbhesabfa_Admin::adminDeleteProductLinkCallback()
S
57 6 15
Ssbhesabfa_Setting::ssbhesabfa_catalog_setting_fields()
S
38 1 90
HesabfaWpFaService::saveInvoice()
S
50 5 28
Ssbhesabfa_Admin_Functions::generateGUID()
S
61 6 11
Ssbhesabfa_Admin::ssbhesabfa_hook_delete_product()
S
51 5 25
Ssbhesabfa_Admin::custom_orders_list_bulk_action_run()
S
53 5 24
Ssbhesabfa_Admin::admin_products_hesabfaId_column_content()
S
53 5 23
Ssbhesabfa_Admin_Functions::isDateInFiscalYear()
S
54 5 21
Ssbhesabfa_Setting::ssbhesabfa_get_projects()
S
53 5 21
Ssbhesabfa_Setting::ssbhesabfa_get_salesmen()
S
53 5 21
Ssbhesabfa_Admin::show_additional_fields_in_order_detail()
S
53 5 20
Ssbhesabfa_Admin::adminExportCustomersCallback()
S
56 5 17
Ssbhesabfa_Admin::adminSyncProductsCallback()
S
56 5 17
Ssbhesabfa_Admin::adminUpdateProductsCallback()
S
57 5 16
Ssbhesabfa_Webhook::getObjectsByCodeList()
S
58 5 14
Ssbhesabfa_Admin::adminCleanLogFileCallback()
S
60 5 13
Ssbhesabfa_Setting::ssbhesabfa_log_setting()
S
59 5 13
Ssbhesabfa_Admin::adminSubmitInvoiceCallback()
S
61 5 12
HesabfaWpFaService::getProductAndCombinations()
S
60 5 12
Ssbhesabfa_Admin_Display::hesabfa_plugin_repeated_products()
S
48 3 39
Ssbhesabfa_Setting::ssbhesabfa_invoice_setting()
S
50 3 38
Ssbhesabfa_Admin_Functions::getGUID()
S
55 4 19
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::ssbhesabfa_hook_new_product()
S
60 4 13
Ssbhesabfa_Admin::adminDeleteProductsLinkCallback()
S
62 4 11
Ssbhesabfa_Admin::ssbhesabfa_general_notices()
S
61 4 11
HesabfaWpFaService::saveCustomer()
S
53 3 22
Ssbhesabfa_Admin_Functions::setGuestCustomer()
S
56 3 16
Ssbhesabfa_Admin::ssbhesabfa_hook_delete_user()
S
58 3 15
HesabfaWpFaService::getWpFaIdByHesabfaId()
S
63 4 9
Ssbhesabfa_Admin_Functions::setContact()
S
57 3 15
HesabfaWpFaService::getWpFa()
S
66 4 7
Ssbhesabfa_Admin::adminSyncChangesCallback()
S
64 4 9
HesabfaWpFaService::getWpFaByHesabfaId()
S
65 4 8
Ssbhesabfa_Admin::adminInstallPluginDataCallback()
S
66 4 8
HesabfaWpFaService::getWpFaId()
S
62 4 10
ssbhesabfaCustomerService::getMobileFromPhone()
S
65 4 9
Ssbhesabfa_Admin_Functions::saveItems()
S
60 3 13
Ssbhesabfa_Setting::ssbhesabfa_api_setting_fields()
S
47 1 43
Ssbhesabfa_Admin::ssbhesabfa_hook_edit_user()
S
54 2 27
Ssbhesabfa_Admin_Functions::getContactCodeByCustomerId()
S
61 3 12
Ssbhesabfa_Setting::ssbhesabfa_customers_setting_fields()
S
47 1 42
Ssbhesabfa_Admin::custom_hesabfa_column_order_list()
S
62 3 11
Ssbhesabfa_Setting::getSubscriptionInfo()
S
56 2 20
Ssbhesabfa_Setting::init()
S
51 1 33
Ssbhesabfa_Admin::enqueue_styles()
S
68 3 6
Ssbhesabfa_Admin::enqueue_scripts()
S
69 3 5
Ssbhesabfa_Loader::run()
S
66 3 8
Ssbhesabfa_Validation::contactStateValidation()
S
66 3 8
Ssbhesabfa_Validation::contactCityValidation()
S
66 3 8
Ssbhesabfa_Admin::ssbhesabfa_hook_payment_confirmation()
S
67 3 8
Ssbhesabfa_Admin_Functions::getCashInTransitFullPath()
S
64 3 10
Ssbhesabfa_Admin_Functions::getInvoiceNumberByOrderId()
S
63 3 10
Ssbhesabfa_Admin_Functions::getInvoiceCodeByOrderId()
S
63 3 10
HesabfaWpFaService::saveProduct()
S
57 2 15
Ssbhesabfa_Validation::itemSalesTaxValidation()
S
69 3 7
Ssbhesabfa_Admin::ssbhesabfa_hook_product_options_general_product_data()
S
59 2 13
Ssbhesabfa_Admin::ssbhesabfa_hook_product_after_variable_attributes()
S
60 2 12
Ssbhesabfa::__construct()
S
64 2 11
Ssbhesabfa_Admin_Display::hesabfa_plugin_header()
S
61 1 20
Ssbhesabfa_Validation::remove_emoji()
S
56 1 18
Ssbhesabfa_Activator::ssbhesabfa_create_database_table()
S
58 1 17
Ssbhesabfa_Activator::activate()
S
57 1 17
Ssbhesabfa_Validation::formatFarsiNumbers()
S
65 2 7
Ssbhesabfa_Admin_Functions::getBankCodeByPaymentMethod()
S
69 2 7
Ssbhesabfa_Api::invoiceSave()
S
66 2 8
HesabfaWpFaService::getInvoiceCodeByWpId()
S
72 2 5
Ssbhesabfa_Admin::ssbhesabfa_parse_request()
S
70 2 6
HesabfaWpFaService::getProductCodeByWpId()
S
72 2 5
Ssbhesabfa_Validation::invoiceItemTaxValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemQuantityValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemDiscountValidation()
S
70 2 7
HesabfaLogService::clearLog()
S
69 2 6
ssbhesabfaCustomerService::getCountriesAndStates()
S
68 2 7
Ssbhesabfa_Validation::invoiceCurrencyRateValidation()
S
70 2 7
HesabfaWpFaService::getCustomerCodeByWpId()
S
72 2 5
ssbhesabfaItemService::getCategoryPath()
S
62 2 10
Ssbhesabfa_Validation::invoiceItemUnitPriceValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemAmountValidation()
S
70 2 7
Ssbhesabfa_Validation::invoiceItemTotalAmountValidation()
S
70 2 7
Ssbhesabfa_Validation::itemConversionFactorValidation()
S
70 2 7
Ssbhesabfa_Admin_Functions::CheckWebsite()
S
70 2 6
Ssbhesabfa_Validation::itemPurchaseCostValidation()
S
70 2 7
Ssbhesabfa_Setting::getProductCountsInHesabfa()
S
63 2 10
HesabfaLogService::readLog()
S
78 2 3
Ssbhesabfa_Admin::ssbhesabfa_hook_delete_product_variation()
S
62 2 10
Ssbhesabfa_Admin_Display::hesabfa_plugin_tools()
S
67 1 14
Ssbhesabfa_Setting::ssbhesabfa_catalog_setting()
S
63 1 13
Ssbhesabfa_Admin_Functions::convertPersianDigitsToEnglish()
S
59 1 11
Ssbhesabfa_Validation::itemTagValidation()
S
89 1 1
Ssbhesabfa_Api::settingGetCashes()
S
76 1 4
Ssbhesabfa_Api::settingGetCurrency()
S
76 1 4
Ssbhesabfa_Admin_Functions::enableDebugMode()
S
79 1 3
Ssbhesabfa_Admin::load_dependencies()
S
70 1 6
Ssbhesabfa_Api::settingGetChanges()
S
69 1 7
Ssbhesabfa_Validation::invoiceItemDescriptionValidation()
S
78 1 3
Ssbhesabfa_Api::warehouseReceiptGetByIdList()
S
69 1 7
Ssbhesabfa_Admin_Functions::getWoocommerceIdBasedOnHesabfaId()
S
71 1 5
HesabfaLogService::writeLogStr()
S
65 1 8
Ssbhesabfa_Api::invoiceDelete()
S
67 1 8
Ssbhesabfa_Api::saveWarehouseReceipt()
S
67 1 8
Ssbhesabfa_Api::settingGetSubscriptionInfo()
S
76 1 4
Ssbhesabfa_Api::settingGetBanks()
S
76 1 4
Ssbhesabfa_Api::invoiceGetById()
S
69 1 7
Ssbhesabfa_Validation::itemPurchaseInfoValidation()
S
89 1 1
Ssbhesabfa_Validation::invoiceItemUnitValidation()
S
89 1 1
Ssbhesabfa_Validation::itemMainUnitValidation()
S
89 1 1
HesabfaWpFaService::mapWpFa()
S
65 1 9
Ssbhesabfa_Validation::invoiceNoteValidation()
S
89 1 1
Ssbhesabfa_Setting::ssbhesabfa_extra_setting_fields()
S
65 1 9
Ssbhesabfa_Webhook::ssbhesabfa_business_expired_notice()
S
78 1 3
Ssbhesabfa_Admin::add_hesabfa_product_data_tab()
S
68 1 7
Ssbhesabfa_Admin::ssbhesabfa_missing_notice()
S
76 1 3
Ssbhesabfa_Api::invoiceGetByIdList()
S
69 1 7
Ssbhesabfa_Validation::itemCategoryValidation()
S
92 1 1
Ssbhesabfa_Api::contactGet()
S
69 1 7
Ssbhesabfa_Validation::contactMobileValidation()
S
74 1 4
Ssbhesabfa_Validation::invoiceItemsValidation()
S
92 1 1
Ssbhesabfa_Validation::invoiceTagValidation()
S
89 1 1
Ssbhesabfa_Setting::getProductCountsInStore()
S
75 1 4
Ssbhesabfa_Api::settingSetChangeHook()
S
67 1 8
Ssbhesabfa::get_version()
S
92 1 1
Ssbhesabfa_Validation::itemSubUnitValidation()
S
89 1 1
HesabfaWpFaService::deleteAll()
S
74 1 4
Ssbhesabfa_Validation::itemCodeValidation()
S
71 1 5
Ssbhesabfa_Validation::invoiceContactTitleValidation()
S
89 1 1
Ssbhesabfa_Api::itemBatchSave()
S
69 1 7
Ssbhesabfa_Validation::contactNoteValidation()
S
89 1 1
Ssbhesabfa_Setting::ssbhesabfa_catalog_setting_save_field()
S
73 1 5
Ssbhesabfa_Validation::contactFirstNameValidation()
S
89 1 1
Ssbhesabfa_Setting::ssbhesabfa_payment_setting_save_field()
S
73 1 5
Ssbhesabfa_Validation::contactTitleValidation()
S
89 1 1
Ssbhesabfa_Api::itemUpdateOpeningQuantity()
S
69 1 7
Ssbhesabfa_Admin::ssbhesabfa_currency_notice()
S
78 1 3
Ssbhesabfa_Admin::custom_orders_list_bulk_action()
S
75 1 4
Ssbhesabfa_Api::settingGetFiscalYear()
S
76 1 4
Ssbhesabfa_Validation::contactDisplayNameValidation()
S
89 1 1
Ssbhesabfa_Api::settingGetAccounts()
S
76 1 4
Ssbhesabfa_Loader::__construct()
S
77 1 4
Ssbhesabfa_Api::fixClearTags()
S
76 1 4
Ssbhesabfa::get_plugin_name()
S
92 1 1
Ssbhesabfa_Api::itemGetById()
S
69 1 7
Ssbhesabfa_Api::itemDelete()
S
69 1 7
Ssbhesabfa_Validation::contactWebsiteValidation()
S
89 1 1
Ssbhesabfa_Validation::itemDescriptionValidation()
S
89 1 1
Ssbhesabfa_Api::contactGetById()
S
69 1 7
Ssbhesabfa_Admin::ssbhesabfa_init_internal()
S
79 1 3
HesabfaWpFaService::save()
S
65 1 9
HesabfaWpFaService::update()
S
65 1 9
Ssbhesabfa_Deactivator::deactivate()
S
89 1 2
Ssbhesabfa_Setting::getProductsCount()
S
64 1 10
Ssbhesabfa_Admin_Functions::cleanLogFile()
S
77 1 4
Ssbhesabfa_Loader::add()
S
64 1 10
Ssbhesabfa_Validation::itemNameValidation()
S
75 1 4
Ssbhesabfa_Api::settingGetSalesmen()
S
76 1 4
Ssbhesabfa::get_loader()
S
92 1 1
Ssbhesabfa_Api::contactGetByPhoneOrEmail()
S
66 1 9
Ssbhesabfa_Validation::contactCompanyValidation()
S
89 1 1
Ssbhesabfa_Validation::contactLastNameValidation()
S
89 1 1
Ssbhesabfa_Setting::ssbhesabfa_invoice_setting_save_field()
S
73 1 5
Ssbhesabfa_Validation::contactFaxValidation()
S
74 1 4
Ssbhesabfa_Api::contactBatchSave()
S
69 1 7
Ssbhesabfa_Setting::ssbhesabfa_api_setting_save_field()
S
71 1 6
Ssbhesabfa_Api::invoiceGet()
S
67 1 8
Ssbhesabfa_Validation::contactPhoneValidation()
S
71 1 5
Ssbhesabfa_Admin::ssbhesabfa_live_mode_notice()
S
78 1 3
Ssbhesabfa_i18n::load_plugin_textdomain()
S
69 1 7
Ssbhesabfa_Admin::ssbhesabfa_business_expired_notice()
S
78 1 3
WpFa::newWpFa()
S
65 1 9
Ssbhesabfa_Setting::getLinkedProductsCount()
S
75 1 4
Ssbhesabfa_Api::invoiceGetInvoices()
S
67 1 8
Ssbhesabfa::set_locale()
S
75 1 4
Ssbhesabfa_Validation::itemBarcodeValidation()
S
74 1 4
Ssbhesabfa_Validation::contactCountryValidation()
S
89 1 1
Ssbhesabfa_Admin::ssbhesabfa_query_vars()
S
77 1 4
HesabfaWpFaService::delete()
S
74 1 4
Ssbhesabfa_Validation::invoiceDueDateValidation()
S
92 1 1
WpFa::__construct()
S
98 1 1
Ssbhesabfa_Api::itemGetQuantity()
S
67 1 8
Ssbhesabfa_Setting::ssbhesabfa_extra_setting_save_field()
S
73 1 5
Ssbhesabfa_Api::itemGetItems()
S
69 1 7
activate_ssbhesabfa()
S
76 1 4
Ssbhesabfa_Api::invoiceGetOnlineInvoiceURL()
S
67 1 8
Ssbhesabfa_Loader::add_filter()
S
77 1 3
Ssbhesabfa_Api::settingGetProjects()
S
76 1 4
Ssbhesabfa_Admin::__construct()
S
74 1 5
Ssbhesabfa_Validation::invoiceReferenceValidation()
S
89 1 1
Ssbhesabfa_Validation::contactAddressValidation()
S
89 1 1
Ssbhesabfa_Validation::contactPostalCodeValidation()
S
71 1 5
Ssbhesabfa_Validation::invoiceNumberValidation()
S
89 1 1
Ssbhesabfa_Admin_Functions::disableDebugMode()
S
79 1 3
Ssbhesabfa_Api::contactSave()
S
69 1 7
run_ssbhesabfa()
S
77 1 4
Ssbhesabfa_Admin_Display::__construct()
S
79 1 3
Ssbhesabfa_Api::settingGetWarehouses()
S
76 1 4
Ssbhesabfa_Validation::contactCategoryValidation()
S
92 1 1
Ssbhesabfa_Validation::invoiceFinancialYearValidation()
S
92 1 1
Ssbhesabfa_Admin::admin_products_hesabfaId_column()
S
65 1 9
Ssbhesabfa_Loader::add_action()
S
77 1 3
Ssbhesabfa::run()
S
92 1 1
Ssbhesabfa_Admin_Functions::deleteFromConnectionTableBasedOnWoocommercePosts()
S
69 1 7
Ssbhesabfa_Api::itemGet()
S
69 1 7
Ssbhesabfa_Api::contactGetContacts()
S
69 1 7
Ssbhesabfa_Api::contactDelete()
S
69 1 7
Ssbhesabfa_Validation::contactTagValidation()
S
89 1 1
Ssbhesabfa_Api::itemSave()
S
69 1 7
Ssbhesabfa::load_dependencies()
S
65 1 9
HesabfaLogService::getLogFilePath()
S
78 1 3
Ssbhesabfa_Admin_Display::hesabfa_add_menu()
S
71 1 5
HesabfaLogService::writeLogObj()
S
69 1 6
Ssbhesabfa_Api::itemGetByBarcode()
S
69 1 7
Ssbhesabfa_Validation::itemSalesInfoValidation()
S
89 1 1
Ssbhesabfa_Validation::contactCodeValidation()
S
74 1 4
HesabfaWpFaService::__construct()
S
98 1 1
deactivate_ssbhesabfa()
S
76 1 4