Code Analysis: Conditional Add To Cart 0.2.4

Function Rating Maintainability Complexity Lines of code
ConditionalAddToCart\Front::applyConditions()
B
33 10 138
ConditionalAddToCart\Front::parse_html()
A
42 11 50
ConditionalAddToCart\Core\Utility\Hook::replaceCallback()
A
53 9 21
ConditionalAddToCart\Conditions\ConditionCartContainsProduct::match()
S
54 7 20
ConditionalAddToCart\Admin::renderSettings()
S
43 3 61
ConditionalAddToCart\Core\Utility\Hook::restoreCallback()
S
57 6 16
ConditionalAddToCart\Conditions\ConditionCartSubtotal::match()
S
58 5 16
ConditionalAddToCart\Conditions\ConditionCartTotal::match()
S
58 5 16
ConditionalAddToCart\Conditions\ConditionCategory::match()
S
57 5 16
ConditionalAddToCart\Core\Utility\Condition::match()
S
57 5 16
ConditionalAddToCart\Conditions\ConditionCartQuantity::match()
S
58 5 16
ConditionalAddToCart\Admin::preUpdateSettings()
S
58 5 16
ConditionalAddToCart\Conditions\ConditionSessionStatus::match()
S
63 6 10
ConditionalAddToCart\Conditions\ConditionProduct::match()
S
60 5 14
ConditionalAddToCart\Front::defineHooks()
S
59 4 15
ConditionalAddToCart\Core\Utility\Condition::prepareSearchFieldValue()
S
62 4 11
ConditionalAddToCart\Front::is_frontend_ajax()
S
64 4 10
ConditionalAddToCart\Core\Utility\Condition::parseSearchValueField()
S
61 3 13
ConditionalAddToCart\Conditions\ConditionProduct::getValueFieldArgs()
S
52 2 26
ConditionalAddToCart\Admin::ajaxChangeCondition()
S
57 2 16
ConditionalAddToCart\Front::is_frontend()
S
68 3 9
ConditionalAddToCart\Conditions\ConditionUserRole::match()
S
63 3 10
ConditionalAddToCart\Core\Utility\Condition::findConditionEntry()
S
64 3 10
ConditionalAddToCart\Core\Utility\Settings::get()
S
65 3 9
ConditionalAddToCart\Core\Utility\Settings::findNested()
S
64 3 9
ConditionalAddToCart\Conditions\ConditionCountry::match()
S
64 3 9
ConditionalAddToCart\Admin::enqueueScripts()
S
61 2 11
ConditionalAddToCart\Admin::ajaxConditionSearchOptions()
S
61 2 11
ConditionalAddToCart\Conditions\ConditionCartContainsProduct::getValueFieldArgs()
S
53 1 24
ConditionalAddToCart\Conditions\ConditionCategory::getValueFieldArgs()
S
53 1 24
ConditionalAddToCart\Core\Utility\Settings::getAll()
S
59 1 16
ConditionalAddToCart\Admin::instance()
S
71 2 6
ConditionalAddToCart\Core\Utility\Arr::findCallback()
S
74 2 4
ConditionalAddToCart\Front::maybe_process_buffer()
S
76 2 4
ConditionalAddToCart\Core\Utility\Condition::getCondition()
S
65 2 8
ConditionalAddToCart\Core\Utility\Debug::isOn()
S
79 2 3
ConditionalAddToCart\Core\Utility\Debug::printErrors()
S
69 2 7
ConditionalAddToCart\Core\Utility\Settings::find()
S
74 2 4
ConditionalAddToCart\Plugin::instance()
S
71 2 6
ConditionalAddToCart\Front::instance()
S
71 2 6
ConditionalAddToCart\Admin::define_hooks()
S
61 1 11
ConditionalAddToCart\Core\Utility\Settings::clearAll()
S
80 1 3
ConditionalAddToCart\Conditions\ConditionCartSubtotal::__construct()
S
73 1 5
ConditionalAddToCart\Conditions\ConditionCartSubtotal::getValueFieldArgs()
S
72 1 6
ConditionalAddToCart\Conditions\ConditionCartContainsProduct::__construct()
S
73 1 5
ConditionalAddToCart\Conditions\ConditionCartSubtotal::getOperators()
S
71 1 5
ConditionalAddToCart\Front::replaceAddToCartButton()
S
75 1 4
ConditionalAddToCart\Conditions\ConditionCartQuantity::getValueFieldArgs()
S
72 1 6
ConditionalAddToCart\Front::changeAddToCartButtonText()
S
75 1 4
ConditionalAddToCart\Admin::settingsPageTemplate()
S
80 1 3
ConditionalAddToCart\Conditions\ConditionCartTotal::__construct()
S
73 1 5
ConditionalAddToCart\Conditions\ConditionCartTotal::getOperators()
S
71 1 5
ConditionalAddToCart\Conditions\ConditionCartTotal::getValueFieldArgs()
S
72 1 6
ConditionalAddToCart\Plugin::getUri()
S
82 1 3
ConditionalAddToCart\Conditions\ConditionCategory::__construct()
S
73 1 5
ConditionalAddToCart\Conditions\ConditionCategory::getOperators()
S
72 1 5
ConditionalAddToCart\Plugin::getPath()
S
82 1 3
ConditionalAddToCart\Plugin::getVersion()
S
82 1 3
ConditionalAddToCart\Conditions\ConditionCategory::isDefault()
S
82 1 3
ConditionalAddToCart\Conditions\ConditionCountry::__construct()
S
73 1 5
ConditionalAddToCart\Conditions\Condition::getOperators()
S
66 1 8
ConditionalAddToCart\Conditions\ConditionCartQuantity::__construct()
S
73 1 5
ConditionalAddToCart\Conditions\ConditionUserRole::isDefault()
S
82 1 3
ConditionalAddToCart\Conditions\Condition::getValueFieldArgs()
S
67 1 8
ConditionalAddToCart\Conditions\ConditionProduct::getOperators()
S
72 1 5
ConditionalAddToCart\Conditions\ConditionSessionStatus::getOperators()
S
72 1 5
ConditionalAddToCart\Conditions\ConditionProduct::isDefault()
S
82 1 3
ConditionalAddToCart\Exceptions\ClassNotFoundException::__construct()
S
78 1 3
ConditionalAddToCart\Conditions\Condition::match()
S
82 1 3
ConditionalAddToCart\Core\Utility\Condition::getSupportedConditions()
S
63 1 10
ConditionalAddToCart\Conditions\ConditionUserRole::getOperators()
S
72 1 5
ConditionalAddToCart\Conditions\ConditionSessionStatus::getValueFieldArgs()
S
64 1 10
ConditionalAddToCart\Conditions\ConditionUserRole::getValueFieldArgs()
S
68 1 7
ConditionalAddToCart\Conditions\ConditionSessionStatus::isDefault()
S
82 1 3
ConditionalAddToCart\Front::run()
S
83 1 3
ConditionalAddToCart\Conditions\ConditionProduct::__construct()
S
73 1 5
ConditionalAddToCart\Conditions\Condition::isDefault()
S
82 1 3
ConditionalAddToCart\Conditions\ConditionUserRole::__construct()
S
73 1 5
ConditionalAddToCart\Core\Utility\Condition::getAllConditionsClassFiles()
S
78 1 3
ConditionalAddToCart\Conditions\ConditionSessionStatus::__construct()
S
73 1 5
ConditionalAddToCart\Core\Utility\Condition::getDefaultCondition()
S
74 1 5
ConditionalAddToCart\Admin::ajaxAddConditionGroup()
S
69 1 7
ConditionalAddToCart\Conditions\ConditionCartContainsProduct::getOperators()
S
72 1 5
ConditionalAddToCart\Plugin::getBaseName()
S
82 1 3
ConditionalAddToCart\Front::maybe_capture_buffer()
S
80 1 3
ConditionalAddToCart\Conditions\ConditionCountry::getValueFieldArgs()
S
63 1 10
ConditionalAddToCart\Admin::editPluginLinks()
S
69 1 6
ConditionalAddToCart\Conditions\ConditionCountry::getOperators()
S
72 1 5
ConditionalAddToCart\Core\Utility\Hook::isClosure()
S
79 1 3
ConditionalAddToCart\Plugin::run()
S
78 1 4
ConditionalAddToCart\Conditions\Condition::getName()
S
82 1 3
ConditionalAddToCart\Core\Utility\CaseConverter::convertSnakeCaseToPascalCase()
S
72 1 5
ConditionalAddToCart\Conditions\Condition::__construct()
S
91 1 2
ConditionalAddToCart\Admin::addMenu()
S
66 1 10
ConditionalAddToCart\Conditions\Condition::getSlug()
S
82 1 3
ConditionalAddToCart\Plugin::__construct()
S
70 1 6
ConditionalAddToCart\Conditions\ConditionCartQuantity::getOperators()
S
71 1 5
ConditionalAddToCart\Core\Utility\Plugin::getNamespace()
S
78 1 3
ConditionalAddToCart\Admin::run()
S
83 1 3
ConditionalAddToCart\Admin::ajaxAddCondition()
S
66 1 8