Code Analysis: eShipper Commerce 2.16.9

Function Rating Maintainability Complexity Lines of code
eshipper_shippingmethod::admin_options()
D
6
42 1,012
eshipper_shipments::display_create_shipment()
D
9
50 541
eshipper_shipments::create_shipment_summary()
D
28
48 108
eshipper_shipments::parse_shipment_values()
D
32 47 69
eshipper_orderdetails::display_shipment_rows()
D
26
41 140
eshipper_shipments::get_shipment_data()
D
33 44 69
eshipper_shipments::create_shipment_form()
D
31 33 87
eshipper_r::resource()
C
41 34 39
eshipper_shipments::shipment_label_pdf()
C
39 26 51
ShippingCalculator::calculateShipping()
B
29
19 131
eshipper_shippingmethod::calculate_shipping()
B
30 20 114
eshipper_orderdetails::display_shipping_view()
B
38 20 65
eshipper_shipments::save_shipment()
B
42 21 41
eshipper_shipments::estimate_package()
B
39 19 58
eshipper_products::save_product_variation()
B
48 21 26
eshipper_shipments::shipment_refund()
B
41 19 48
eshipper_shipments::save_shipment_data()
B
50 20 23
eshipper_products::add_product_shipping_box_variation()
B
36 16 78
eshipper_products::save_product_shipping()
B
45 18 34
fix_eshipper_plugin()
B
38 15 76
eshipper_shipments::display_view_shipment()
B
40 16 59
eshipper_products::add_product_shipping_box()
B
37 15 74
PluginHealthHelper::validateStoreAddress()
A
48 16 30
eshipper_shipments::delete_shipment_draft()
A
53 16 20
get_rates_for_shipping_calculator()
A
40 13 61
eshipper_shipments::shipment_log_display()
A
46 14 35
eshipper_orderdetails::order_add_shipping()
A
45 13 37
eshipper_shippingmethod::init()
A
30 6 140
update_carrier_services()
A
42 10 56
PluginHealthHelper::validateAccessKeys()
A
46 11 40
eshipper_shippingmethod::insert_carrier_service()
A
42 10 52
eshipper_shipments::save_draft_shipment()
A
51 12 22
keycloak_authentication()
A
48 11 32
eshipper_resources::resource()
A
55 12 17
eshipper_shipments::display_refund_complete()
A
49 11 29
eshipper_update::validate_upgrades()
A
50 11 26
PluginHealthHelper::getPluginHealth()
A
44 9 43
eshipper_orderdetails::order_actions_ajax()
A
51 10 23
eshipper_update::dismiss_update_notice()
A
53 10 22
eshipper_shipments::shipment_remove()
A
52 10 21
eshipper_shipments::display_refund_form()
A
45 8 46
markOrderShipped()
A
44 8 45
eshipper_orderdetails::init()
A
40 7 58
eshipper_shipments::get_product_customs()
A
58 10 12
update_shipping_margin()
A
48 8 35
eshipperCalls::fetchRateList()
A
49 8 31
woocommerce_eshipper::leadtime_to_delivery()
A
57 9 15
eshipper_update::update_token()
A
48 8 29
save_shipping_address()
A
39 5 72
curlHandler::sendCurlRequest()
A
46 7 41
pluginLifeCycle::addCarrierServices()
A
46 7 39
eshipper_update::api_request()
A
53 8 20
eshipper_shipments::init()
A
46 7 31
pluginLifeCycle::createEshipperWebhooks()
S
39 4 75
eshipper_health_check_admin_notice()
S
46 6 42
eshipper_location::distance_postal()
S
54 7 19
eshipper_location::distance()
S
55 7 18
eshipperCalls::fetchCarriersList()
S
50 6 29
markOrderFulfilled()
S
50 6 29
markOrderFailed()
S
50 6 29
eshipper_update::plugins_api_filter()
S
59 7 13
eshipperCalls::sendFeedback()
S
51 6 26
eshipperCalls::keycloakAuthentication()
S
45 5 40
eshipper_shipments::save_shipment_template()
S
46 5 39
es_select_products()
S
52 6 24
eshipper_shippingmethod::process_admin_options()
S
54 6 20
woocommerce_eshipper::get_css_class_package_type()
S
58 6 16
eshipper_resources::convert()
S
58 6 14
eshipper_shipments::save_shipment_post()
S
59 6 14
eshipper_update::display_update_notice()
S
60 6 12
eshipper_shipments::shipment_ajax_security()
S
62 6 11
es_select_country_states()
S
53 5 23
eshipperCalls::checkIfStoreIsConnected()
S
54 5 21
uninstallEshipperPlugin()
S
47 4 35
PluginHealthHelper::validateCarrierServices()
S
56 5 18
eshipper_orderdetails::group_products()
S
58 5 17
eshipper_update::upgrade_reg()
S
65 6 8
eshipper_products::init()
S
55 5 14
eshipper_shipments::save_log()
S
58 5 14
deactivation_feedback()
S
58 5 14
PluginHealthHelper::validatePluginHealth()
S
60 5 13
eshipper_plugin::eshipper_upgrades()
S
59 5 13
pluginLifeCycle::getEshipperSettingsLink()
S
60 5 12
PluginHealthHelper::createEshipperPluginHealthTable()
S
52 4 23
eshipperCalls::deactivateAccount()
S
53 4 23
pluginLifeCycle::sendDeactivationFeedback()
S
53 4 23
pluginLifeCycle::on_plugin_deactivation()
S
53 4 22
PluginHealthHelper::validateWebhooks()
S
56 4 18
eshipper_update::__construct()
S
56 4 15
woocommerce_eshipper::get_destination_from_service()
S
60 4 14
woocommerce_eshipper::get_destination_country_code_from_service()
S
60 4 14
eshipper_update::display_license()
S
60 4 13
plugin_health_db_update()
S
51 3 28
eshipper_shipments::shipment_template()
S
60 4 12
eshipper_orderdetails::get_product_ids()
S
62 4 12
PluginHealthHelper::getPluginHealthTableName()
S
62 4 11
PluginHealthHelper::initTable()
S
56 3 18
eshipper_plugin::runPostUpdateTasks()
S
55 3 18
eshipper_shipments::shipment_template_remove()
S
58 3 16
pluginLifeCycle::storeAccessTokens()
S
50 2 31
eshipper_update::get_update_url()
S
68 4 6
eshipper_plugin::shipping_init()
S
63 4 10
eshipper_shipments::cp_cardtype()
S
67 4 8
pluginLifeCycle::postLoginActivities()
S
67 4 7
eshipper_location::distance_state()
S
65 4 8
PluginHealthHelper::setStatus()
S
58 3 14
eshipper_orderdetails::add_shipping_details_box()
S
59 3 14
eshipper_db::get_collate()
S
63 3 11
eshipper_orderdetails::checkout_order_add_shipping()
S
62 3 11
eshipper_shipments::delete_expired_transients()
S
62 3 11
eshipper_plugin::eshipper_db()
S
62 3 11
pluginLifeCycle::initStoreAddressFromWoocommerce()
S
54 2 22
eshipper_plugin::load()
S
53 2 21
eshipper_plugin::wp_eshipper_display_update_notice()
S
58 2 16
eshipper_plugin::shipments_init()
S
65 3 9
eshipper_orderdetails::order_processed()
S
69 3 6
eshipper_shippingmethod::wpml_woocommerce_init()
S
70 3 6
eshipper_shipments::get_tracking_exists()
S
65 3 9
eshipper_location::lookup_postal_location()
S
73 3 4
eshipper_plugin::eshipper_require_postal_code()
S
62 3 10
eshipper_orderdetails::order_shipping_info_reset()
S
68 3 8
add_eshipper_login_popup()
S
70 3 7
eshipper_shipments::get_order_details()
S
62 3 10
eshipper_plugin::eshipper_shipping_method_label()
S
69 3 6
eshipper_plugin::load_product_options()
S
66 3 8
eshipper_plugin::eshipper_load_update()
S
70 3 6
eshipper_location::lookup_zip_location()
S
73 3 4
eshipperCalls::extractShopNameFromDomain()
S
65 3 9
eshipper_shipments::ensure_subdir_security()
S
67 3 8
add_shipped_to_order_statuses()
S
64 3 10
eshipper_location::lookup_state_location()
S
73 3 4
eshipper_shippingmethod::hide_service()
S
77 3 3
eshipper_plugin::wp_eshipper_display_install_notice()
S
60 2 14
pluginLifeCycle::updateTable()
S
59 2 13
eshipper_orderdetails::get_product_array()
S
62 2 11
pluginLifeCycle::createWooCommerceApiKeys()
S
52 1 25
pluginLifeCycle::createEshipperShippingAddressTable()
S
58 1 20
pluginLifeCycle::getWoocommerceStoreAddess()
S
56 1 17
pluginLifeCycle::createEshipperCarrierServicesTable()
S
60 1 16
eshipper_shippingmethod::get_admin_options_html()
S
67 2 8
eshipper_db::db_datetime()
S
71 2 6
eshipper_shipments::get_product_variation()
S
68 2 7
PluginHealthHelper::validateAuth()
S
64 2 9
eshipper_plugin::eshipper_init()
S
70 2 6
pluginLifeCycle::on_plugin_activation()
S
68 2 7
pluginLifeCycle::setMarginFixed()
S
70 2 6
eshipper_shipments::remove_special_chars()
S
68 2 7
eshipper_products::truncate()
S
65 2 9
pluginLifeCycle::updateDB()
S
67 2 8
pluginLifeCycle::createEshipperAccessTokensTable()
S
61 1 15
eshipper_location::postal_prefix()
S
77 2 3
eshipper_update::update_version()
S
71 2 6
eshipper_plugin::orderdetails_init()
S
68 2 7
woocommerce_eshipper::get_service_name()
S
71 2 6
eshipper_shipments::order_prop()
S
69 2 7
eshipper_plugin::eshipper_load_pluginsettings()
S
72 2 4
eshipper_orderdetails::display_product_variation()
S
70 2 6
eshipper_shipments::truncate()
S
65 2 9
pluginLifeCycle::setMarginPercentage()
S
70 2 6
PluginHealthHelper::getDisplayName()
S
60 1 14
woocommerce_eshipper::init_available_services()
S
60 1 13
eshipper_orderdetails::get_resource()
S
100 1 0
woocommerce_eshipper_shipments::create_nc_shipment()
S
82 1 3
eshipper_shipments::nc_shipment_refund()
S
100 1 0
eshipper_plugin::load_localisation()
S
71 1 5
eshipper_plugin::eshipper_init_require_postal_code()
S
78 1 3
eshipper_shipments::get_shipping_label()
S
100 1 0
woocommerce_eshipper_shipments::nc_shipment_refund()
S
82 1 3
ShippingCalculator::searchProductsByName()
S
70 1 6
woocommerce_eshipper_shipments::get_shipping_label()
S
82 1 3
eshipper_resources::round_decimal()
S
77 1 3
eshipper_shipments::get_manifest()
S
100 1 0
woocommerce_eshipper_shipments::get_resource()
S
80 1 3
eshipper_shipments::init_shippingmethod()
S
76 1 4
woocommerce_eshipper_shipments::ct_shipment_getdetails()
S
80 1 3
woocommerce_eshipper_orderdetails::get_resource()
S
81 1 3
eshipper_db::setup()
S
76 1 4
woocommerce_eshipper_plugin::get_resource()
S
81 1 3
PluginHealthHelper::recordBackendSyncStatus()
S
78 1 3
woocommerce_eshipper::call_validate_api_credentials()
S
91 1 2
woocommerce_eshipper_db::get_resource()
S
81 1 3
eshipper_shippingmethod::get_resource()
S
100 1 0
eshipper_shippingmethod::__construct()
S
81 1 3
eshipper_plugin::eshipper_rates_log_display()
S
74 1 5
ShippingCalculator::getAllProducts()
S
71 1 6
pluginLifeCycle::getMarginFixed()
S
78 1 3
eshipper_shippingmethod::init_available_services()
S
100 1 0
woocommerce_eshipper_update::__construct()
S
79 1 3
PluginHealthHelper::validateBackendSync()
S
79 1 3
eshipper_plugin::add_method()
S
77 1 4
woocommerce_eshipper_update::get_resource()
S
81 1 3
eshipper_shipments::nc_shipment_getdetails()
S
100 1 0
eshipper_shippingmethod::get_destination_country_code_from_service()
S
100 1 0
pluginLifeCycle::getCurrentAdminUrl()
S
78 1 3
eshipper_shipments::ct_shipment_getdetails()
S
100 1 0
eshipper_plugin::eshipper_shipment_log_display()
S
74 1 5
curlHandler::log()
S
77 1 3
eshipper_plugin::woocommerce_eshipper_validate()
S
74 1 5
eshipper_products::__construct()
S
83 1 3
PluginHealthHelper::recordStoreAddressStatus()
S
78 1 3
eshipper_shipments::__construct()
S
83 1 3
PluginHealthHelper::getEnabledAttributes()
S
68 1 9
eshipper_location::geo_distance()
S
65 1 8
eshipper_shipments::shipment_template_list()
S
72 1 6
eshipper_resources::save_weight()
S
77 1 3
woocommerce_eshipper_shipments::nc_shipment_getdetails()
S
82 1 3
wpex_wc_register_post_statuses()
S
64 1 10
eshipper_shipments::init_orderdetails()
S
80 1 3
woocommerce_eshipper::get_rates()
S
91 1 2
wpex_wc_add_order_statuses()
S
75 1 4
eshipperCalls::getLoggedInUser()
S
66 1 9
eshipper_orderdetails::order_shipping_info()
S
80 1 3
eshipper_update::get_resource()
S
100 1 0
eshipper_products::get_resource()
S
100 1 0
eshipper_resources::display_unit()
S
77 1 3
eshipper_orderdetails::__construct()
S
82 1 3
eshipper_plugin::get_resource()
S
100 1 0
eshipper_resources::save_unit()
S
77 1 3
PluginHealthHelper::recordAccessKeysStatus()
S
78 1 3
eshipper_shipments::create_nc_shipment()
S
100 1 0
eshipper_shipments::load_shipment_template_list()
S
78 1 3
eshipper_plugin::__construct()
S
82 1 3
eshipper_resources::display_unit_cubed()
S
77 1 3
eshipper_shippingmethod::get_destination_from_service()
S
100 1 0
eshipper_plugin::eshipper_settings_link()
S
67 1 7
woocommerce_eshipper::get_resource()
S
80 1 3
eshipper_shipments::create_ct_shipment()
S
100 1 0
eshipper_shipments::get_resource()
S
100 1 0
PluginHealthHelper::recordCarrierServicesStatus()
S
78 1 3
eshipper_db::get_resource()
S
100 1 0
eshipper_plugin::newFeatureUpdates()
S
75 1 6
woocommerce_eshipper_products::get_resource()
S
81 1 3
eshipper_resources::display_weight()
S
77 1 3
load_eShipper_resources()
S
64 1 9
PluginHealthHelper::recordWebhooksStatus()
S
78 1 3
PluginHealthHelper::recordAuthStatus()
S
78 1 3
ShippingCalculator::getProductsById()
S
73 1 5
woocommerce_eshipper_shipments::get_manifest()
S
100 1 2
woocommerce_eshipper_shipments::create_ct_shipment()
S
78 1 3
pluginLifeCycle::getMarginPercentage()
S
78 1 3
curlHandler::__construct()
S
80 1 3
eshipper_shipments::custom_upload_subdir()
S
70 1 6