Code Analysis: Shipmondo for WooCommerce 4.0.10

Function Rating Maintainability Complexity Lines of code
WC_Eval_Math::nfx()
D
29
44 105
WC_Eval_Math::pfx()
B
45 18 37
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::searchReplace()
A
46 15 36
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::init_form_fields()
A
30 5 153
WC_Eval_Math::evaluate()
A
45 12 35
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::showShippingMethod()
A
50 12 27
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::getShippingPrice()
A
47 11 35
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::updateOrderMeta()
A
53 12 17
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::migrateDeliveryOptions400()
A
36 7 87
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::add_class_costs()
A
48 10 30
ShipmondoForWooCommerce\Lib\Tools\Autoloader::autoloader()
A
45 8 41
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::getShippingAgents()
A
51 9 26
Field_calculate::calculate()
A
54 9 19
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::getCartTotal()
A
54 8 20
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::getShippingPackage()
S
56 7 18
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::eligibleFreeShipping()
S
56 7 17
ShipmondoForWooCommerce\Plugin\Controllers\BusinessController::validateBusinessNameForPackage()
S
61 8 10
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::isCurrentSelection()
S
54 6 22
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::fee()
S
54 6 22
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::replaceInDB()
S
53 6 21
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::validateServicePointSelection()
S
57 6 17
ShipmondoForWooCommerce\Plugin\Controllers\BusinessController::validateBusinessMethod()
S
57 6 17
ShipmondoForWooCommerce\Lib\Tools\Debug::generateOutput()
S
57 6 16
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::isFrontendKeyValid()
S
60 6 13
WC_Eval_Math::debugPrintCallingFunction()
S
60 6 12
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::getCurrentSelection()
S
56 5 17
shipmondo_is_woocommerce_active()
S
64 6 10
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::getChosenShippingMethodForPackage()
S
57 5 15
ShipmondoForWooCommerce\Plugin\ShipmondoAPI::getServicePoints()
S
57 4 18
ShipmondoForWooCommerce\Lib\Tools\Autoloader::getLocations()
S
57 4 16
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::validateServicePointSelectionForPackage()
S
64 5 8
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::find_shipping_classes()
S
61 4 13
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::updatePriceRanges()
S
60 4 13
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::getServicePointsSelectionHTML()
S
53 3 22
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::calculate_shipping()
S
55 3 21
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::migrate()
S
59 3 16
ShipmondoForWooCommerce\Lib\Abstracts\Project::__construct()
S
58 3 16
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::get_package_item_qty()
S
64 4 9
ShipmondoForWooCommerce\Plugin\Controllers\LegacyController::getWooCommerceVersion()
S
62 3 11
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::getSelectionType()
S
63 3 11
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::evaluate_cost()
S
51 2 26
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::registerAdminScripts()
S
51 2 25
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::getBackupFilePath()
S
58 2 16
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::maybeMigrate()
S
71 3 5
ShipmondoForWooCommerce\Plugin\Controllers\BusinessController::displayBusinessMessage()
S
68 3 6
WC_Eval_Math::trigger()
S
65 3 9
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::includeModalHTML()
S
68 3 8
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::isCheckout()
S
78 3 3
Field_calculate::callback()
S
65 3 9
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::displayServicePointFinder()
S
70 3 6
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::isShippingMethodServicePointDelivery()
S
77 3 3
ShipmondoForWooCommerce\Lib\Abstracts\Project::getData()
S
68 3 7
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::initSettings()
S
52 1 30
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::displayFrontendKeyField()
S
67 3 7
ShipmondoForWooCommerce\Plugin\ShipmondoAPI::callServicePointsAPI()
S
57 2 15
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::getPriceRanges()
S
65 3 8
ShipmondoForWooCommerce\Plugin\Controllers\BusinessController::isShippingMethodBusiness()
S
77 3 3
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::enqueueScripts()
S
59 2 13
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::init()
S
60 2 12
ShipmondoForWooCommerce\Lib\Tools\Autoloader::getPathParts()
S
62 2 11
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::noFrontendKeyNotice()
S
62 2 11
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::noGoogleMapsAPIKeyNotice()
S
62 2 11
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::displaySelectionTypeSelector()
S
59 1 16
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::getFrontendKey()
S
68 2 7
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::isChosenShippingMethod()
S
74 2 4
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::displayServicePointFinder()
S
65 2 8
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::getGoogleMapsAPIKey()
S
68 2 7
ShipmondoForWooCommerce\Lib\Tools\Loader::addAction()
S
73 2 4
ShipmondoForWooCommerce\Lib\Tools\Loader::addFilter()
S
73 2 4
ShipmondoForWooCommerce\PluginInit::init()
S
64 2 9
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::getBackupID()
S
71 2 6
ShipmondoForWooCommerce\Lib\Abstracts\Project::getInfo()
S
71 2 6
ShipmondoForWooCommerce\Lib\Tools\Debug::stacktrace()
S
65 2 9
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::getFreeShippingTotal()
S
71 2 6
ShipmondoForWooCommerce\Lib\Abstracts\Controller::__construct()
S
67 2 9
ShipmondoForWooCommerce\Lib\Tools\Loader::removeAction()
S
73 2 4
ShipmondoForWooCommerce\Lib\Tools\Loader::addAjaxAction()
S
70 2 6
ShipmondoForWooCommerce\Lib\Tools\Loader::removeFilter()
S
73 2 4
WC_Eval_Math_Stack::pop()
S
70 2 7
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::registerShippingMethods()
S
71 2 6
WC_Eval_Math_Stack::last()
S
74 2 4
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::isGoogleMapsAPIKeyValid()
S
74 2 4
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::__construct()
S
62 1 12
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::registerActions()
S
62 1 11
ShipmondoForWooCommerce\Lib\Abstracts\Controller::registerRoutes()
S
91 1 2
ShipmondoForWooCommerce\Plugin\Controllers\LegacyController::checkWooCommerceVersion()
S
78 1 3
ShipmondoForWooCommerce\Plugin\Controllers\LegacyController::registerActions()
S
91 1 2
ShipmondoForWooCommerce\Lib\Abstracts\Project::registerFrameworkActions()
S
91 1 2
ShipmondoForWooCommerce\Plugin\Controllers\ShippingMethodsController::registerActions()
S
67 1 7
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::getShippingAgents()
S
81 1 3
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::registerActions()
S
68 1 7
ShipmondoForWooCommerce\Plugin\Controllers\DibsEasyCompatibilityController::registerActions()
S
72 1 5
ShipmondoForWooCommerce\PluginInit::registerPlugin()
S
75 1 4
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::registerActions()
S
79 1 3
ShipmondoForWooCommerce\Lib\Tools\Autoloader::register()
S
78 1 3
ShipmondoForWooCommerce\Lib\Tools\Loader::registerSchedule()
S
78 1 3
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::displayGoogleMapsAPIKeyField()
S
71 1 6
WC_Eval_Math_Stack::push()
S
76 1 4
ShipmondoForWooCommerce\Lib\Abstracts\Project::getRootURL()
S
77 1 3
ShipmondoForWooCommerce\Lib\Abstracts\Project::registerFrameworkFilters()
S
91 1 2
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::backupData()
S
68 1 6
shipmondo_init()
S
78 1 3
ShipmondoForWooCommerce\Lib\Abstracts\Project::registerActions()
S
91 1 2
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::addAdminMenuPage()
S
77 1 3
ShipmondoForWooCommerce\Lib\Tools\Debug::dump()
S
75 1 4
ShipmondoForWooCommerce\Plugin\Controllers\DibsEasyCompatibilityController::cartCalculateShipping()
S
81 1 3
ShipmondoForWooCommerce\Lib\Tools\Debug::outputPre()
S
79 1 3
ShipmondoForWooCommerce\Lib\Tools\Autoloader::__construct()
S
71 1 6
ShipmondoForWooCommerce\Lib\Abstracts\Controller::registerFiltersAdmin()
S
91 1 2
ShipmondoForWooCommerce\Plugin\Controllers\ServicePointsController::setSelectionSession()
S
65 1 9
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::migrateDeliveryOptions300()
S
74 1 4
ShipmondoForWooCommerce\Lib\Abstracts\Project::getVersion()
S
80 1 3
ShipmondoForWooCommerce\Lib\Abstracts\Project::getAdminClassName()
S
100 1 0
ShipmondoForWooCommerce\Lib\Abstracts\Project::isPlugin()
S
79 1 3
ShipmondoForWooCommerce\Lib\Tools\Loader::registerScheduleInterval()
S
79 1 3
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::getShippingProduct()
S
80 1 3
ShipmondoForWooCommerce\Lib\Abstracts\Project::isTheme()
S
79 1 3
ShipmondoForWooCommerce\Lib\Tools\Debug::log()
S
75 1 4
ShipmondoForWooCommerce\Lib\Abstracts\Controller::registerActionsAdmin()
S
91 1 2
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::settingsSectionCallback()
S
75 1 4
ShipmondoForWooCommerce\Lib\Abstracts\Controller::registerFilters()
S
91 1 2
ShipmondoForWooCommerce\Lib\Tools\Scheduler::register()
S
81 1 3
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::migrateUserMeta300()
S
78 1 3
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::isBusiness()
S
80 1 3
ShipmondoForWooCommerce\Plugin\Controllers\SettingsController::displayAdminMenuPage()
S
73 1 5
ShipmondoForWooCommerce\Lib\Abstracts\Project::getRoot()
S
78 1 3
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::migratePluginOptions300()
S
72 1 5
Field_calculate::compute()
S
74 1 4
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::isServicePointDelivery()
S
78 1 3
ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo::getShippingAgent()
S
80 1 3
ShipmondoForWooCommerce\Lib\Abstracts\Controller::registerActions()
S
91 1 2
ShipmondoForWooCommerce\Lib\Abstracts\Project::registerClasses()
S
91 1 2
ShipmondoForWooCommerce\Plugin\Controllers\MigrationsController::migrateOrderItemMeta300()
S
78 1 3
ShipmondoForWooCommerce\Lib\Tools\Autoloader::unregister()
S
80 1 3
ShipmondoForWooCommerce\Lib\Abstracts\Project::readProjectData()
S
100 1 0
ShipmondoForWooCommerce\Plugin\Controllers\BusinessController::registerActions()
S
72 1 5
ShipmondoForWooCommerce\Lib\Abstracts\Project::registerFilters()
S
91 1 2
ShipmondoForWooCommerce\Lib\Tools\Debug::dd()
S
74 1 4
ShipmondoForWooCommerce\Lib\Abstracts\Project::setInfo()
S
79 1 3
ShipmondoForWooCommerce\Lib\Abstracts\Project::getTextDomain()
S
80 1 3