Code Analysis: Swipecart 2.6.8

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
APIClass::getProductByID()
D
27
30 138
TGM_Plugin_Activation::do_plugin_install()
C
32 25 99
REST_API_v1_Controller::register_routes()
C
20
1 459
APIClass::getProductListByID()
C
34 25 89
tgmpa_load_bulk_installer()
B
26
7 204
APIClass::getOrderByID()
B
36 15 73
TGM_Plugin_Activation::maybe_adjust_source_dir()
A
45 15 36
APIClass::getProducts()
A
41 13 54
TGM_Plugin_Activation::init()
A
35 10 94
APIClass::getSiteData()
A
33 7 109
TGMPA_Utils::emulate_filter_bool()
A
47 12 33
APIClass::getCartLineByID()
A
43 10 45
Swipecart_Checkout::__before_checkout()
A
49 11 26
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
TGM_Plugin_Activation::register()
A
47 9 36
TGMPA_List_Table::get_views()
A
48 9 34
APIClass::webhookCRUD()
A
48 9 33
TGM_Plugin_Activation::create_user_action_links_for_notice()
A
45 8 40
Utility::distanceBetweenLocation()
A
51 9 24
APIClass::tokenValidation()
A
47 8 34
TGMPA_List_Table::get_row_actions()
A
47 8 34
SC_Translator::get_rest_lang()
A
55 9 17
Utility::create_username()
A
51 8 26
TGMPA_List_Table::get_plugin_status_text()
A
51 8 26
TGMPA_Bulk_Installer::bulk_install()
A
42 6 55
APIClass::ChangeProfile()
A
52 8 23
tgmpa()
A
53 8 21
TGM_Plugin_Activation::install_plugins_page()
S
52 7 26
TGMPA_List_Table::categorize_plugins_to_views()
S
52 7 26
TGMPA_List_Table::get_bulk_actions()
S
57 7 17
APIClass::getRecommendedProducts()
S
49 6 30
SC_Installer::__onUpgradePlugin()
S
59 7 14
TGM_Plugin_Activation::is_core_update_page()
S
59 7 14
SC_Translator::__tr_key()
S
53 6 22
TGM_Plugin_Activation::inject_update_info()
S
54 6 20
APIClass::getCustomerByID()
S
43 4 49
REST_API_v1_Controller::ChangeProfile()
S
49 5 29
TGM_Plugin_Activation::overload_textdomain_mofile()
S
61 6 12
REST_API_v1_Controller::generateCheckout()
S
53 5 22
Swipecart_Integrations::__include_files()
S
63 6 9
SC_Multilingual::is_active()
S
62 6 10
Swipecart_AdminPages::__include_files()
S
63 6 9
TGMPA_List_Table::_gather_plugin_data()
S
49 4 30
APIClass::generateCheckout()
S
50 4 29
REST_API_v1_Controller::telValidateCallback()
S
59 5 14
TGM_Plugin_Activation::add_plugin_action_link_filters()
S
59 5 13
TGM_Plugin_Activation::get_info_link()
S
51 4 28
REST_API_v1_Controller::orderBySanitizeCallback()
S
60 5 12
TGM_Plugin_Activation::force_deactivation()
S
60 5 12
TGM_Plugin_Activation::force_activation()
S
62 5 11
REST_API_v1_Controller::ChangePassword()
S
51 4 25
REST_API_v1_Controller::webhookTopic()
S
52 4 25
TGM_Plugin_Activation::config()
S
54 4 24
APIClass::getAllCollectionsCategories()
S
56 4 18
TGMPA_Bulk_Installer::auto_activate()
S
57 4 17
REST_API_v1_Controller::updateAddress()
S
48 3 32
TGM_Plugin_Activation::get_plugins_api()
S
57 4 16
APIClass::deleteUser()
S
59 4 15
SC_Translator::get_available_lang()
S
50 3 30
REST_API_v1_Controller::filterArraySanitizeCallback()
S
58 4 15
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
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
TGM_Plugin_Activation::load_textdomain()
S
60 4 12
TGM_Plugin_Activation::get_download_url()
S
62 4 12
Swipecart_User::__register()
S
50 3 27
APIClass::SignIn()
S
51 3 26
APIClass::customerSignUp()
S
52 3 26
TGMPA_Bulk_Installer::__construct()
S
61 4 11
REST_API_v1_Controller::getOrders()
S
51 3 25
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
53 3 21
APIClass::getPublicSiteData()
S
43 1 50
TGMPA_Bulk_Installer_Skin::add_strings()
S
54 3 20
TGMPA_Bulk_Installer_Skin::bulk_footer()
S
54 3 19
APIClass::getAddresses()
S
49 2 33
APIClass::nonceValidation()
S
58 3 16
TGM_Plugin_Activation::get_tgmpa_url()
S
58 3 16
TGM_Plugin_Activation::_get_plugin_data_from_name()
S
66 4 8
GeneralUtility::__pluginVersion()
S
66 4 7
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
APIClass::getCollectionByID()
S
57 3 15
WC_SC_Webhook::isActionActivated()
S
67 4 7
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
SC_Translator::get_unmapped_lang()
S
53 2 24
REST_API_v1_Controller::customerSignUp()
S
53 2 24
REST_API_v1_Controller::getAllCollectionsCategories()
S
55 2 20
Swipecart_AdminAjax::ajax_swipecart_reveal_tokens()
S
56 2 20
APIClass::getAvailableLanguages()
S
56 2 19
REST_API_v1_Controller::SearchProducts()
S
56 2 18
REST_API_v1_Controller::getRecommendedProducts()
S
57 2 17
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
WC_SC_Webhook::__remoteCreateUser()
S
59 2 16
__SCML::translate_ctax()
S
70 3 5
TGM_Plugin_Activation::get_upgrade_notice()
S
63 3 10
REST_API_v1_Controller::ratingMaxFiveValidateCallback()
S
77 3 3
Swipecart_RentechDigital_Login::__WC_init()
S
64 3 9
TGM_Plugin_Activation::get_instance()
S
70 3 6
TGM_Plugin_Activation::add_admin_menu()
S
62 3 10
APIClass::getParentProductIdByVarientId()
S
64 3 10
SC_AuthGeneration::removeAuthCombo()
S
70 3 7
SC_Installer::__redirectToUpdatePlugin()
S
70 3 6
APIClass::checkUserEmailExist()
S
71 3 5
TGM_Plugin_Activation::_get_plugin_basename_from_slug()
S
65 3 9
Swipecart_Checkout::__after_notes_fields()
S
71 3 5
SC_Multilingual::installed_ml_plugins()
S
66 3 9
APIClass::forgotPassword()
S
58 2 15
__SCML::is_valid_rest_params()
S
71 3 5
SC_Multilingual::check_multilingual()
S
64 3 10
TGM_Plugin_Activation::get_wp_repo_download_url()
S
67 3 8
SC_Entry::getURL()
S
66 3 8
GeneralUtility::__staging()
S
63 3 9
GeneralUtility::swipecartCan()
S
69 3 7
REST_API_v1_Controller::getOrderById()
S
58 2 15
REST_API_v1_Controller::getProductsByVarientId()
S
58 2 15
TGM_Plugin_Activation::is_plugin_active()
S
76 3 3
__SCML::translate_cpt()
S
70 3 5
TGM_Plugin_Activation::is_plugin_updatetable()
S
68 3 7
REST_API_v1_Controller::verifyHeaderPermissionCallback()
S
65 3 8
TGM_Plugin_Activation::display_settings_errors()
S
64 3 10
TGMPA_Utils::validate_bool()
S
64 3 10
REST_API_v1_Controller::numericCSVValidateCallback()
S
68 3 7
TGM_Plugin_Activation::dismiss()
S
71 3 5
TGMPA_List_Table::wp_plugin_update_row()
S
60 2 14
REST_API_v1_Controller::getProductFilters()
S
59 2 14
REST_API_v1_Controller::getAvailableLanguages()
S
59 2 14
REST_API_v1_Controller::verifyNonce()
S
59 2 14
Swipecart_Checkout::__getOrderByMeta()
S
59 2 14
SC_Popup::enqueueScripts()
S
61 2 12
Swipecart_Notices::__showNotice()
S
62 2 12
SC_Security::require_auth_for_all_endpoints()
S
60 2 12
WC_SC_Webhook::__sendRemoteEvent()
S
61 2 12
TGMPA_List_Table::prepare_items()
S
62 2 11
SC_AuthGeneration::createAuthCombo()
S
63 2 11
Swipecart::_required_plugins()
S
55 1 22
SC_Translator::required_rest_params()
S
57 1 19
APIClass::getAttributeTerms()
S
56 1 19
Swipecart_RentechDigital_Login::submenu_page_callback()
S
57 1 19
REST_API_v1_Controller::textRequiredValidateCallback()
S
78 2 3
WC_Swipecart_Integration::__page_styling()
S
65 2 8
Swipecart_Checkout::__after_checkout()
S
72 2 5
SC_Translator::__tr_id()
S
71 2 6
TGM_Plugin_Activation::get_plugins()
S
70 2 6
SC_SVGIcons::getIcon()
S
69 2 7
REST_API_v1_Controller::verifyHeaderSecretPermissionCallback()
S
67 2 7
TGMPA_List_Table::get_primary_column_name()
S
69 2 7
WC_SC_Integrations::wcIntegrations()
S
66 2 9
TGM_Plugin_Activation::get_installed_version()
S
68 2 7
TGMPA_List_Table::extra_tablenav()
S
74 2 5
__SCML::translate_id()
S
71 2 5
APIClass::getPostCount()
S
72 2 5
WC_SC_Webhook::getAuthSecret()
S
75 2 4
SC_Checkout::__WC_init()
S
68 2 8
__SCML::required_rest_params()
S
72 2 5
TGMPA_List_Table::sort_table_items()
S
63 2 10
GeneralUtility::isPluginActivated()
S
72 2 5
SC_Translator::get_requested_lang()
S
79 2 3
GeneralUtility::__scriptMinify()
S
73 2 5
TGM_Plugin_Activation::is_tgmpa_page()
S
78 2 3
TGMPA_Bulk_Installer_Skin::after()
S
69 2 7
TGMPA_Bulk_Installer_Skin::before()
S
71 2 6
TGM_Plugin_Activation::can_plugin_activate()
S
78 2 3
Swipecart::__WC_init()
S
68 2 7
REST_API_v1_Controller::verifyAccessTokenPermissionCallback()
S
67 2 7
REST_API_v1_Controller::numericPositiveArraySanitizeCallback()
S
66 2 8
TGMPA_List_Table::get_plugin_advise_type_text()
S
70 2 6
REST_API_v1_Controller::actionSanitizeCallback()
S
77 2 3
REST_API_v1_Controller::numericPositiveValidateCallback()
S
79 2 3
TGM_Plugin_Activation::thickbox()
S
72 2 5
TGM_Plugin_Activation::actions()
S
72 2 6
Utility::getHostnameByURL()
S
70 2 6
GeneralUtility::__styleVersion()
S
73 2 5
Utility::__logFile()
S
65 2 8
SC_Translator::__tr()
S
72 2 5
TGM_Plugin_Activation::correct_plugin_mofile()
S
70 2 6
SwipecartEvents::__showSSLNotice()
S
70 2 6
TGMPA_List_Table::set_view_totals()
S
72 2 5
Utility::__logWebHook()
S
73 2 5
__SCML::get_available_lang()
S
72 2 5
Swipecart_RentechDigital_Login::__activatePlugin()
S
68 2 7
SC_Multilingual::__include_files()
S
72 2 5
SC_Translator::is_valid_params()
S
79 2 3
Swipecart_RentechDigital_Login::submenu_page_styling()
S
69 2 6
REST_API_v1_Controller::urlValidateCallback()
S
79 2 3
Utility::create_splitname()
S
68 2 6
__SCML::get_unavailable_lang()
S
72 2 5
Utility::generateRandStr()
S
64 2 9
REST_API_v1_Controller::orderSanitizeCallback()
S
74 2 4
Swipecart::__include_files()
S
60 1 14
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
TGMPA_List_Table::get_table_classes()
S
80 1 3
SC_Translator::__object_id()
S
74 1 4
APIClass::__construct()
S
81 1 3
__SCML::validate_multilingual()
S
76 1 4
SC_Security::__construct()
S
77 1 4
WC_SC_Integrations::addSwipecartIntegrationTab()
S
77 1 4
WC_Swipecart_Integration::__construct()
S
64 1 9
SC_Security::init()
S
78 1 3
TGMPA_Bulk_Installer::activate_strings()
S
74 1 4
SC_Translator::get_default_lang()
S
79 1 3
SwipecartEvents::__construct()
S
83 1 3
Swipecart::__init()
S
75 1 5
TGM_Plugin_Activation::show_tgmpa_version()
S
66 1 10
SC_Installer::__activatePlugin()
S
72 1 5
load_tgm_plugin_activation()
S
80 1 3
TGM_Plugin_Activation::filter_plugin_action_links_deactivate()
S
76 1 4
__SCML::translate_product_cat()
S
78 1 3
SC_BackInStock::__construct()
S
82 1 3
REST_API_v1_Controller::returnCSVArraySanitizeCallback()
S
73 1 5
__SCML::translate_product()
S
78 1 3
TGMPA_List_Table::column_cb()
S
67 1 8
TGMPA_Utils::wrap_in_em()
S
78 1 3
SC_AuthGeneration::__construct()
S
70 1 6
REST_API_v1_Controller::addressIDValidateCallback()
S
72 1 5
REST_API_v1_Controller::filterArrayValidateCallback()
S
80 1 3
TGMPA_List_Table::no_items()
S
73 1 4
Swipecart::__construct()
S
69 1 7
SC_Multilingual::__construct()
S
80 1 3
SwipecartEvents::__initialization()
S
83 1 3
TGM_Plugin_Activation::__set()
S
83 1 3
SC_Installer::__uninstallPlugin()
S
71 1 6
REST_API_v1_Controller::numericPositiveArrayValidateCallback()
S
80 1 3
TGMPA_Bulk_Installer_Skin::before_flush_output()
S
76 1 4
REST_API_v1_Controller::getPublicSiteData()
S
64 1 10
REST_API_v1_Controller::actionValidateCallback()
S
77 1 3
Swipecart_AdminAjax::__construct()
S
79 1 3
TGM_Plugin_Activation::sanitize_key()
S
72 1 5
SC_Installer::registerHooks()
S
65 1 8
SC_BackInStock::__prePostUpdateForProduct()
S
75 1 4
SC_Checkout::__construct()
S
79 1 3
REST_API_v1_Controller::telSanitizeCallback()
S
72 1 5
WC_SC_Integrations::__construct()
S
72 1 5
Swipecart_Notices::__construct()
S
91 1 2
TGM_Plugin_Activation::filter_plugin_action_links_activate()
S
76 1 4
SC_AuthGeneration::updateAuthCombo()
S
66 1 9
TGM_Plugin_Activation::filter_plugin_action_links_update()
S
65 1 9
TGM_Plugin_Activation::update_dismiss()
S
78 1 3
APIClass::GetCollectionsByIds()
S
66 1 9
APIClass::currency()
S
72 1 5
WC_SC_Integrations::enqueueUserScripts()
S
66 1 8
SC_Installer::__construct()
S
66 1 9
Swipecart_AdminPages::__construct()
S
83 1 3
TGMPA_List_Table::get_default_primary_column_name()
S
82 1 3
SC_SVGIcons::getIcons()
S
72 1 6
REST_API_v1_Controller::lineItemsArraySanitizeCallback()
S
66 1 9
Swipecart_RentechDigital_Login::__include_files()
S
81 1 3
Swipecart_User::__construct()
S
91 1 2
SC_Translator::__construct()
S
81 1 3
TGM_Plugin_Activation::__get()
S
81 1 3
TGMPA_List_Table::single_row()
S
74 1 4
SC_Installer::__remoteSetAuth()
S
74 1 5
WC_SC_Integrations::enqueueAdminScripts()
S
66 1 8
REST_API_v1_Controller::orderValidateCallback()
S
74 1 4
SC_AuthGeneration::updateAuth()
S
80 1 3
TGMPA_Bulk_Installer::bulk_upgrade()
S
69 1 6
Utility::__construct()
S
82 1 3
Swipecart_Integrations::__construct()
S
83 1 3
SC_Installer::__createPluginActionLink()
S
70 1 5
WC_SC_Webhook::__construct()
S
81 1 3
REST_API_v1_Controller::__construct()
S
81 1 3
SC_Entry::__construct()
S
76 1 4
TGM_Plugin_Activation::is_plugin_installed()
S
74 1 4
REST_API_v1_Controller::lineItemsArrayValidateCallback()
S
80 1 3
REST_API_v1_Controller::verifyAuthorization()
S
64 1 10
TGM_Plugin_Activation::flush_plugins_cache()
S
81 1 3
TGMPA_List_Table::_get_plugin_data_from_name()
S
75 1 4
REST_API_v1_Controller::storeFrontToken()
S
73 1 5
APIClass::storeFrontToken()
S
73 1 5
Swipecart_RentechDigital_Login::__construct()
S
75 1 5
TGMPA_Bulk_Installer_Skin::after_flush_output()
S
73 1 5
TGMPA_List_Table::column_default()
S
80 1 3
REST_API_v1_Controller::cartVariationSanitizeCallback()
S
66 1 9
SC_Popup::__construct()
S
79 1 3
REST_API_v1_Controller::orderByValidateCallback()
S
70 1 5
Swipecart_RentechDigital_Login::register_main_menu()
S
66 1 7
APIClass::GetProductsByVarientId()
S
65 1 9
TGMPA_Utils::wrap_in_strong()
S
78 1 3
SC_AuthGeneration::generateRandStr()
S
76 1 4
APIClass::GetProductsByIds()
S
66 1 9
TGMPA_List_Table::column_plugin()
S
69 1 7
WC_Swipecart_Integration::getAuthCombo()
S
76 1 4
APIClass::getTermCount()
S
76 1 4
TGM_Plugin_Activation::does_plugin_require_update()
S
72 1 5
Swipecart_Checkout::__construct()
S
69 1 6
TGM_Plugin_Activation::__construct()
S
67 1 7
WC_Swipecart_Integration::admin_options()
S
73 1 5
Swipecart::__globals()
S
64 1 10
TGM_Plugin_Activation::get_tgmpa_status_url()
S
68 1 8
SC_SVGIcons::getEncodedSVGIcon()
S
75 1 4