Code Analysis: Swipecart 2.4.1

Function Rating Maintainability Complexity Lines of code
SC_BackInStock::__checkNonVariableStockDiff()
D
30 45 112
TGMPA_List_Table::process_bulk_actions()
D
26
34 155
SC_BackInStock::__checkVariableStockDiff()
D
32 38 94
TGM_Plugin_Activation::notices()
D
32 34 94
TGM_Plugin_Activation::do_plugin_install()
C
32 25 99
REST_API_v1_Controller::register_routes()
C
20
1 442
APIClass::getProductByID()
C
29
21 134
tgmpa_load_bulk_installer()
B
26
7 204
APIClass::getOrderByID()
A
37 13 67
TGM_Plugin_Activation::maybe_adjust_source_dir()
A
45 15 36
TGM_Plugin_Activation::init()
A
35 10 94
TGMPA_Utils::emulate_filter_bool()
A
47 12 33
APIClass::getProducts()
A
42 10 51
APIClass::getSiteData()
A
35 7 94
TGMPA_List_Table::column_version()
A
47 10 37
SC_Installer::__upgraderProcess()
A
58 11 13
TGM_Plugin_Activation::activate_single_plugin()
A
46 9 39
APIClass::getProductListByID()
A
46 9 39
TGM_Plugin_Activation::register()
A
47 9 36
TGMPA_List_Table::get_views()
A
48 9 34
APIClass::webhookCRUD()
A
48 9 33
Swipecart_Checkout::__before_checkout()
A
50 9 26
TGM_Plugin_Activation::create_user_action_links_for_notice()
A
45 8 40
Utility::distanceBetweenLocation()
A
51 9 24
APIClass::tokenValidation()
A
45 8 38
TGMPA_List_Table::get_row_actions()
A
47 8 34
TGMPA_List_Table::get_plugin_status_text()
A
51 8 26
Utility::create_username()
A
51 8 26
TGMPA_Bulk_Installer::bulk_install()
A
42 6 55
tgmpa()
A
53 8 21
TGMPA_List_Table::categorize_plugins_to_views()
S
52 7 26
TGM_Plugin_Activation::install_plugins_page()
S
52 7 26
TGMPA_List_Table::get_bulk_actions()
S
57 7 17
TGM_Plugin_Activation::is_core_update_page()
S
59 7 14
SC_Installer::__onUpgradePlugin()
S
59 7 14
TGM_Plugin_Activation::inject_update_info()
S
54 6 20
APIClass::getCustomerByID()
S
43 4 49
REST_API_v1_Controller::ChangeProfile()
S
50 5 28
TGM_Plugin_Activation::overload_textdomain_mofile()
S
61 6 12
APIClass::getCartLineByID()
S
47 4 37
APIClass::ChangeProfile()
S
56 5 18
Swipecart_AdminPages::__include_files()
S
63 6 9
TGMPA_List_Table::_gather_plugin_data()
S
49 4 30
Swipecart_Integrations::__include_files()
S
63 6 9
REST_API_v1_Controller::telValidateCallback()
S
59 5 14
APIClass::generateCheckout()
S
50 4 29
TGM_Plugin_Activation::add_plugin_action_link_filters()
S
59 5 13
TGM_Plugin_Activation::get_info_link()
S
51 4 28
TGM_Plugin_Activation::force_deactivation()
S
60 5 12
TGM_Plugin_Activation::force_activation()
S
62 5 11
REST_API_v1_Controller::webhookTopic()
S
52 4 25
REST_API_v1_Controller::ChangePassword()
S
52 4 24
TGM_Plugin_Activation::config()
S
54 4 24
REST_API_v1_Controller::generateCheckout()
S
53 4 22
APIClass::getAllCollectionsCategories()
S
56 4 18
REST_API_v1_Controller::updateAddress()
S
48 3 32
TGMPA_Bulk_Installer::auto_activate()
S
57 4 17
TGM_Plugin_Activation::get_plugins_api()
S
57 4 16
WC_SC_Webhook::isValidSecret()
S
63 5 10
TGMPA_List_Table::get_plugin_source_type_text()
S
59 4 15
TGM_Plugin_Activation::populate_file_path()
S
64 5 9
APIClass::deleteUser()
S
59 4 15
REST_API_v1_Controller::filterArraySanitizeCallback()
S
58 4 15
TGM_Plugin_Activation::admin_init()
S
59 4 14
GeneralUtility::__getServerURL()
S
59 4 13
TGM_Plugin_Activation::get_admin_notice_class()
S
60 4 13
TGM_Plugin_Activation::does_plugin_have_update()
S
60 4 13
APIClass::SignIn()
S
50 3 28
TGM_Plugin_Activation::load_textdomain()
S
60 4 12
TGM_Plugin_Activation::get_download_url()
S
62 4 12
APIClass::customerSignUp()
S
52 3 26
TGMPA_Bulk_Installer::__construct()
S
61 4 11
REST_API_v1_Controller::getProducts()
S
53 3 23
REST_API_v1_Controller::getProductsByCollectionId()
S
53 3 22
REST_API_v1_Controller::getAddresses()
S
54 3 21
REST_API_v1_Controller::deleteCustomer()
S
54 3 21
TGMPA_Bulk_Installer_Skin::add_strings()
S
54 3 20
TGMPA_Bulk_Installer_Skin::bulk_footer()
S
54 3 19
APIClass::nonceValidation()
S
57 3 18
APIClass::getAddresses()
S
49 2 33
TGM_Plugin_Activation::get_tgmpa_url()
S
58 3 16
TGM_Plugin_Activation::_get_plugin_data_from_name()
S
66 4 8
TGM_Plugin_Activation::is_tgmpa_complete()
S
63 4 10
TGM_Plugin_Activation::can_plugin_update()
S
63 4 10
REST_API_v1_Controller::cartVariationValidateCallback()
S
69 4 6
TGM_Plugin_Activation::get_plugin_source_type()
S
65 4 9
WC_SC_Webhook::isActionActivated()
S
67 4 7
APIClass::getCollectionByID()
S
58 3 14
TGMPA_List_Table::__construct()
S
58 3 14
TGMPA_List_Table::get_columns()
S
59 3 13
Utility::url2Array()
S
60 3 13
APIClass::updateAddress()
S
50 2 26
TGMPA_Bulk_Installer::run()
S
63 3 11
SC_AuthGeneration::getAuth()
S
64 3 11
REST_API_v1_Controller::customerSignUp()
S
53 2 24
APIClass::getPublicSiteData()
S
47 1 38
SC_Installer::__remoteSetAuth()
S
53 2 21
REST_API_v1_Controller::getAllCollectionsCategories()
S
55 2 20
REST_API_v1_Controller::getOrders()
S
55 2 19
REST_API_v1_Controller::SearchProducts()
S
56 2 18
REST_API_v1_Controller::SignIn()
S
57 2 17
Utility::encrypt_decrypt()
S
56 2 17
TGM_Plugin_Activation::admin_menu()
S
57 2 17
APIClass::getOrders()
S
57 2 17
REST_API_v1_Controller::GetCollectionsByIds()
S
58 2 16
REST_API_v1_Controller::GetProductsByIds()
S
58 2 16
REST_API_v1_Controller::GetProductById()
S
58 2 16
REST_API_v1_Controller::forgotPassword()
S
58 2 16
TGMPA_Utils::validate_bool()
S
64 3 10
REST_API_v1_Controller::ratingMaxFiveValidateCallback()
S
77 3 3
TGM_Plugin_Activation::dismiss()
S
71 3 5
TGM_Plugin_Activation::get_upgrade_notice()
S
63 3 10
SC_AuthGeneration::removeAuthCombo()
S
70 3 7
TGM_Plugin_Activation::get_instance()
S
70 3 6
SC_Installer::__redirectToUpdatePlugin()
S
70 3 6
TGM_Plugin_Activation::add_admin_menu()
S
62 3 10
APIClass::checkUserEmailExist()
S
71 3 5
TGM_Plugin_Activation::_get_plugin_basename_from_slug()
S
65 3 9
APIClass::forgotPassword()
S
58 2 15
Swipecart_Checkout::__after_notes_fields()
S
71 3 5
TGM_Plugin_Activation::get_wp_repo_download_url()
S
67 3 8
SC_Entry::getURL()
S
67 3 7
GeneralUtility::__staging()
S
63 3 9
REST_API_v1_Controller::getOrderById()
S
59 2 15
REST_API_v1_Controller::getProductsByVarientId()
S
59 2 15
TGM_Plugin_Activation::is_plugin_active()
S
76 3 3
REST_API_v1_Controller::verifyHeaderPermissionCallback()
S
65 3 8
TGM_Plugin_Activation::is_plugin_updatetable()
S
68 3 7
REST_API_v1_Controller::numericCSVValidateCallback()
S
68 3 7
TGM_Plugin_Activation::display_settings_errors()
S
64 3 10
Swipecart_Checkout::__getOrderByMeta()
S
59 2 14
TGMPA_List_Table::wp_plugin_update_row()
S
60 2 14
REST_API_v1_Controller::getProductFilters()
S
60 2 14
REST_API_v1_Controller::verifyNonce()
S
59 2 14
WC_SC_Webhook::__sendRemoteEvent()
S
61 2 12
SC_AuthGeneration::createAuthCombo()
S
63 2 11
TGMPA_List_Table::prepare_items()
S
62 2 11
Swipecart::_required_plugins()
S
55 1 22
APIClass::getAttributeTerms()
S
56 1 19
Utility::create_splitname()
S
68 2 6
TGMPA_Bulk_Installer_Skin::before()
S
71 2 6
TGMPA_List_Table::get_plugin_advise_type_text()
S
70 2 6
TGMPA_List_Table::sort_table_items()
S
63 2 10
TGMPA_List_Table::get_primary_column_name()
S
69 2 7
GeneralUtility::isPluginActivated()
S
72 2 5
SC_SVGIcons::getIcon()
S
69 2 7
TGM_Plugin_Activation::is_tgmpa_page()
S
78 2 3
REST_API_v1_Controller::orderSanitizeCallback()
S
78 2 3
TGMPA_List_Table::extra_tablenav()
S
74 2 5
Swipecart_RentechDigital_Login::__WC_init()
S
64 2 9
Utility::getHostnameByURL()
S
70 2 6
REST_API_v1_Controller::numericPositiveArraySanitizeCallback()
S
66 2 8
TGMPA_Bulk_Installer_Skin::after()
S
69 2 7
SC_Popup::enqueueScripts()
S
71 2 5
TGM_Plugin_Activation::get_installed_version()
S
68 2 7
TGM_Plugin_Activation::can_plugin_activate()
S
78 2 3
TGM_Plugin_Activation::correct_plugin_mofile()
S
70 2 6
TGM_Plugin_Activation::thickbox()
S
72 2 5
TGM_Plugin_Activation::get_plugins()
S
70 2 6
Swipecart_RentechDigital_Login::submenu_page_styling()
S
69 2 6
Utility::__logFile()
S
65 2 8
WC_SC_Integrations::wcIntegrations()
S
67 2 8
TGM_Plugin_Activation::actions()
S
72 2 6
Swipecart_RentechDigital_Login::__activatePlugin()
S
70 2 6
REST_API_v1_Controller::orderBySanitizeCallback()
S
76 2 3
REST_API_v1_Controller::verifyAccessTokenPermissionCallback()
S
67 2 7
WC_SC_Webhook::getAuthSecret()
S
75 2 4
REST_API_v1_Controller::actionSanitizeCallback()
S
77 2 3
Utility::__logWebHook()
S
73 2 5
GeneralUtility::__styleVersion()
S
73 2 5
REST_API_v1_Controller::numericPositiveValidateCallback()
S
79 2 3
REST_API_v1_Controller::verifyHeaderSecretPermissionCallback()
S
67 2 7
Utility::generateRandStr()
S
64 2 9
REST_API_v1_Controller::urlValidateCallback()
S
79 2 3
TGMPA_List_Table::set_view_totals()
S
72 2 5
REST_API_v1_Controller::textRequiredValidateCallback()
S
78 2 3
Swipecart_Checkout::__after_checkout()
S
72 2 5
Swipecart::__include_files()
S
61 1 13
Swipecart_RentechDigital_Login::submenu_page_callback()
S
62 1 12
Swipecart_Checkout::__checkout_query_arg()
S
62 1 12
TGMPA_Bulk_Installer_Skin::__construct()
S
61 1 12
SC_BackInStock::__sendEvent()
S
63 1 11
APIClass::getProductFilters()
S
64 1 11
Swipecart::__globals()
S
63 1 11
Swipecart_RentechDigital_Login::__construct()
S
77 1 4
REST_API_v1_Controller::verifyAuthorization()
S
64 1 10
TGM_Plugin_Activation::flush_plugins_cache()
S
81 1 3
Swipecart_AdminPages::__construct()
S
83 1 3
APIClass::GetCollectionsByIds()
S
66 1 9
TGM_Plugin_Activation::__construct()
S
67 1 7
WC_SC_Integrations::__construct()
S
79 1 3
REST_API_v1_Controller::orderValidateCallback()
S
78 1 3
TGM_Plugin_Activation::__set()
S
83 1 3
TGM_Plugin_Activation::is_plugin_installed()
S
74 1 4
SC_Installer::__createPluginActionLink()
S
70 1 5
REST_API_v1_Controller::telSanitizeCallback()
S
72 1 5
TGMPA_List_Table::single_row()
S
74 1 4
REST_API_v1_Controller::numericPositiveArrayValidateCallback()
S
80 1 3
TGM_Plugin_Activation::get_tgmpa_status_url()
S
68 1 8
TGMPA_List_Table::column_plugin()
S
69 1 7
APIClass::GetProductsByVarientId()
S
65 1 9
TGM_Plugin_Activation::show_tgmpa_version()
S
66 1 10
SC_Installer::registerHooks()
S
65 1 8
SC_Installer::__construct()
S
66 1 9
TGMPA_Utils::wrap_in_strong()
S
78 1 3
SC_Installer::__activatePlugin()
S
70 1 6
WC_SC_Webhook::__construct()
S
81 1 3
SC_BackInStock::__prePostUpdateForProduct()
S
75 1 4
TGMPA_List_Table::column_cb()
S
67 1 8
Swipecart_Integrations::__construct()
S
76 1 4
REST_API_v1_Controller::cartVariationSanitizeCallback()
S
66 1 9
REST_API_v1_Controller::actionValidateCallback()
S
77 1 3
REST_API_v1_Controller::__construct()
S
70 1 6
TGMPA_List_Table::no_items()
S
73 1 4
TGM_Plugin_Activation::filter_plugin_action_links_update()
S
65 1 9
TGM_Plugin_Activation::sanitize_key()
S
72 1 5
TGMPA_List_Table::_get_plugin_data_from_name()
S
75 1 4
APIClass::__construct()
S
70 1 6
load_tgm_plugin_activation()
S
80 1 3
APIClass::currency()
S
72 1 5
TGM_Plugin_Activation::__get()
S
81 1 3
TGMPA_List_Table::get_table_classes()
S
80 1 3
TGM_Plugin_Activation::filter_plugin_action_links_deactivate()
S
76 1 4
SC_AuthGeneration::generateRandStr()
S
76 1 4
Swipecart_RentechDigital_Login::register_main_menu()
S
66 1 7
REST_API_v1_Controller::getPublicSiteData()
S
64 1 10
Swipecart::__WC_init()
S
70 1 6
TGMPA_Bulk_Installer_Skin::after_flush_output()
S
73 1 5
SC_SVGIcons::getEncodedSVGIcon()
S
75 1 4
REST_API_v1_Controller::lineItemsArraySanitizeCallback()
S
66 1 9
REST_API_v1_Controller::lineItemsArrayValidateCallback()
S
80 1 3
SC_SVGIcons::getIcons()
S
72 1 6
REST_API_v1_Controller::addressIDValidateCallback()
S
72 1 5
Swipecart::__init()
S
78 1 4
TGM_Plugin_Activation::update_dismiss()
S
78 1 3
WC_SC_Integrations::addSwipecartIntegrationTab()
S
77 1 4
TGMPA_Bulk_Installer::bulk_upgrade()
S
69 1 6
SC_AuthGeneration::updateAuthCombo()
S
66 1 9
WC_SC_Webhook::__remoteCreateUser()
S
72 1 5
TGMPA_Utils::wrap_in_em()
S
78 1 3
Swipecart_Integrations::enqueueScripts()
S
65 1 9
TGMPA_Bulk_Installer::activate_strings()
S
74 1 4
TGM_Plugin_Activation::filter_plugin_action_links_activate()
S
76 1 4
SC_Installer::__uninstallPlugin()
S
71 1 6
SC_Popup::__construct()
S
79 1 3
REST_API_v1_Controller::orderByValidateCallback()
S
71 1 5
WC_Swipecart_Integration::__construct()
S
63 1 10
TGMPA_Bulk_Installer_Skin::before_flush_output()
S
76 1 4
TGM_Plugin_Activation::does_plugin_require_update()
S
72 1 5
SC_AuthGeneration::__construct()
S
70 1 6
SC_Entry::__construct()
S
76 1 4
Utility::__construct()
S
82 1 3
TGMPA_List_Table::column_default()
S
80 1 3
TGMPA_List_Table::get_default_primary_column_name()
S
82 1 3
Swipecart::__construct()
S
69 1 7
SC_BackInStock::__construct()
S
82 1 3
SC_AuthGeneration::updateAuth()
S
80 1 3
REST_API_v1_Controller::returnCSVArraySanitizeCallback()
S
73 1 5
WC_Swipecart_Integration::admin_options()
S
77 1 4
REST_API_v1_Controller::filterArrayValidateCallback()
S
80 1 3
APIClass::GetProductsByIds()
S
66 1 9
Swipecart_Checkout::__construct()
S
69 1 6