Code Analysis: WooCommerce Weight Based Shipping 5.6.1

Function Rating Maintainability Complexity Lines of code
Wbs\ShippingMethod::_enqueueAssets()
S
44 6 41
Wbs\WpTools::removeScripts()
S
57 7 15
Wbs\RulesMapper::makeChargeCalculator()
S
44 4 51
Wbs\Plugin::setup()
S
48 5 32
Wbs\ShippingMethod::__construct()
S
54 5 21
Wbs\ShippingMethod::getAllLocations()
S
55 4 20
Wbs\RulesMapper::makeDestinationCondition()
S
57 4 17
Wbs\RulesMapper::makePriceCondition()
S
58 4 15
Wbs\Settings::__construct()
S
60 4 13
Wbs\RulesMapper::read()
S
61 4 13
Wbs\RulesMapper::get()
S
61 4 13
Wbs\Migrations\ConfigStorage::forEachRule()
S
66 4 8
Wbs\ShippingMethod::config()
S
60 3 14
Wbs\ShippingMethod::calculate_shipping()
S
55 2 20
Wbs\RulesMapper::makeRule()
S
57 2 18
Wbs\Migrations\Migration_5_2_6::migrateRule()
S
69 3 6
Wbs\ShippingMethod::get_instance_id()
S
77 3 3
Wbs\ShippingMethod::showGlobalSettingsStub()
S
70 3 6
Wbs\RulesMapper::makeWeightCondition()
S
63 2 11
Wbs\Plugin::__resetShippingCache()
S
64 2 11
Wbs\Plugin::shippingUrl()
S
62 2 11
Wbs\ConfigEndpoint::post()
S
62 2 11
Wbs\Plugin::__pluginActionLinks()
S
61 2 11
Wbs\RulesMapper::makeConditions()
S
63 2 11
Wbs\WbsNgGlobalSwitchEndpoint::post()
S
64 2 9
Wbs\WpTools::addActionOrCall()
S
68 2 7
Wbs\ShippingMethod::isWildcardStateCode()
S
79 2 3
Wbs\ShippingMethod::getStateCode()
S
69 2 6
Wbs\Migrations\Migration_5_3_27::preserveOldBehaviorForExistingInstallations()
S
64 2 10
Wbs\RulesMapper::applyModifiers()
S
68 2 7
Wbs\Common\Once::__invoke()
S
69 2 7
Wbs\ShippingMethod::get_admin_options_html()
S
65 2 10
Wbs\Plugin::wc441plus()
S
77 2 3
Wbs\Plugin::setupOnce()
S
68 2 7
Wbs\Plugin::__get()
S
68 2 7
Wbs\Settings::instance()
S
71 2 6
Wbs\PluginMeta::readVersionMeta()
S
71 2 5
Wbs\PluginPaths::__construct()
S
68 2 6
Wbs\ShippingMethod::loadRules()
S
61 1 13
Wbs\ShippingMethod::get_instance_option_key()
S
81 1 3
Wbs\ShippingMethod::admin_options()
S
75 1 4
Wbs\RulesMapper::makeRangeCondition()
S
71 1 6
Wbs\RulesMapper::makeCondition()
S
80 1 3
Wbs\Plugin::createMigrationService()
S
64 1 10
Wbs\Settings::__get()
S
82 1 3
Wbs\ShippingMethod::getAllShippingClasses()
S
65 1 9
Wbs\ShippingMethod::init_instance_settings()
S
82 1 3
Wbs\PluginPaths::getAssetUrl()
S
78 1 3
Wbs\Common\Once::__construct()
S
81 1 3
Wbs\PluginMeta::__construct()
S
75 1 4
Wbs\ShippingMethod::init_settings()
S
75 1 4
Wbs\Plugin::__woocommerceShippingMethods()
S
76 1 4
Wbs\ShippingMethod::get_option_key()
S
69 1 7
Wbs\RulesMapper::__construct()
S
77 1 4
Wbs\Plugin::instance()
S
80 1 3
Wbs\RulesMapper::makeWeightCalculator()
S
65 1 9
Wbs\Api::init()
S
70 1 6
Wbs\ShippingMethod::is_available()
S
81 1 3
Wbs\RulesMapper::readRange()
S
67 1 8
Wbs\Plugin::__construct()
S
70 1 6
Wbs\Migrations\Migration_5_3_27::migrate()
S
81 1 3