Code Analysis: Age Gate 3.0.0

Function Rating Maintainability Complexity Lines of code
AgeGate\Update\Migration\Migrate::mapSimpleSettings()
B
39 16 62
AgeGate\Presentation\Form::getStyleOptions()
A
40 15 56
AgeGate\Admin\Tools\Import::action()
A
41 15 52
AgeGate\Admin\Post\Edit::store()
A
45 15 37
AgeGate\Admin\Taxonomy\Term::store()
A
47 14 34
AgeGate\Admin\Admin::notices()
A
45 12 36
AgeGate\Admin\Controller\ContentController::optionStored()
A
48 12 32
AgeGate\Admin\Controller\AccessController::store()
A
47 10 35
AgeGate\Update\Activate::activate()
A
43 9 44
AgeGate\Routes\Rest\Media::response()
A
43 8 50
AgeGate\Admin\Tools\Export::action()
A
47 9 33
AgeGate\Shortcode\Shortcode::registerShortcode()
A
44 8 45
AgeGate\Controller\StandardController::__construct()
A
48 8 31
AgeGate\Admin\Post\ListTable::bulk()
S
54 7 23
AgeGate\Controller\JsController::assets()
S
48 6 31
AgeGate\Admin\Controller\ContentController::rules()
S
58 7 15
AgeGate\Enqueue\Enqueue::assets()
S
52 6 23
AgeGate\Update\Activate::setCapabilities()
S
55 6 21
AgeGate\Admin\Taxonomy\Term::index()
S
55 6 18
AgeGate\Controller\ViewController::__construct()
S
44 4 44
AgeGate\Admin\Update::getMagnitude()
S
60 6 12
AgeGate\Admin\Controller\RestrictionController::register()
S
59 6 12
AgeGate\Update\Migration\Migrate::getInherited()
S
54 5 21
AgeGate\Enqueue\Enqueue::admin()
S
55 5 19
AgeGate\Integration\Discover::__construct()
S
55 5 19
AgeGate\Admin\Post\ListTable::actionHandler()
S
58 5 17
AgeGate\Presentation\Form::customStyle()
S
57 5 16
AgeGate\Presentation\Preload::assets()
S
59 5 14
AgeGate\Admin\Tools\Reset::resetSettings()
S
58 5 14
AgeGate\Shortcode\Shortcode::status()
S
61 5 13
AgeGate\Admin\Controller\ToolsController::register()
S
53 4 25
AgeGate\Admin\Update::updateWarnings()
S
53 4 24
AgeGate\Shortcode\Shortcode::getOptions()
S
54 4 20
AgeGate\Update\Uninstall::uninstall()
S
55 4 20
AgeGate\Controller\ViewController::getOptions()
S
54 4 20
AgeGate\Admin\Post\ListTable::actions()
S
55 4 19
AgeGate\Admin\Tools\Reset::resetPosts()
S
59 4 13
AgeGate\Controller\StandardController::init()
S
60 4 12
age_gate_activate()
S
63 4 11
AgeGate\Shortcode\Shortcode::view()
S
45 2 41
AgeGate\Presentation\Template::__construct()
S
52 3 24
AgeGate\Admin\User\Toolbar::toolbarLink()
S
48 2 37
AgeGate\Presentation\FocusTrap::assets()
S
57 3 17
AgeGate\Update\Activate::getDefaultSettings()
S
56 3 17
AgeGate\Legacy\Deprecated::__construct()
S
56 3 16
AgeGate\Admin\Controller\ToolsController::required()
S
77 4 3
AgeGate\Integration\Divi::init()
S
66 4 8
AgeGate\Integration\Elementor::init()
S
68 4 7
AgeGate\Admin\Post\Edit::addMetaBox()
S
60 3 14
AgeGate\Admin\Ajax::removeLegacyCss()
S
59 3 14
AgeGate\App\AgeGate::init()
S
60 3 14
AgeGate\Admin\Controller\PostController::enqueue()
S
59 3 13
AgeGate\Routes\Rest\Developer::response()
S
61 3 12
AgeGate\Admin\Admin::websiteLink()
S
58 2 16
AgeGate\Admin\Post\ListTable::column()
S
65 3 8
AgeGate\Presentation\Title::__construct()
S
63 3 9
AgeGate\Routes\Rest\Media::postsWhere()
S
63 3 10
AgeGate\Controller\JsController::init()
S
62 3 10
AgeGate\Update\Migration\Migrate::getDateFormat()
S
67 3 9
AgeGate\Controller\JsController::user()
S
74 3 5
AgeGate\Controller\StandardController::template()
S
66 3 8
AgeGate\Legacy\Deprecated::transformMeta()
S
50 1 29
AgeGate\Routes\Rest\Developer::register()
S
61 2 14
AgeGate\Admin\Taxonomy\Term::registerFields()
S
61 2 12
AgeGate\Admin\Post\ListTable::__construct()
S
61 2 11
AgeGate\Routes\Rest\Media::register()
S
63 2 11
AgeGate\Admin\Controller\AppearanceController::rules()
S
55 1 22
AgeGate\Admin\Controller\MessageController::rules()
S
55 1 22
AgeGate\Admin\Controller\RestrictionController::rules()
S
57 1 18
AgeGate\Admin\Admin::__construct()
S
56 1 18
AgeGate\Admin\Update::updateCheck()
S
72 2 5
AgeGate\Legacy\Deprecated::addLegacyValidators()
S
72 2 6
AgeGate\Presentation\Attribute::getInstance()
S
71 2 6
AgeGate\Admin\Post\ListTable::data()
S
67 2 8
AgeGate\Admin\Controller\ContentController::data()
S
79 2 3
AgeGate\Admin\User\Toolbar::enqueue()
S
69 2 6
AgeGate\Presentation\Title::returnPageTitle()
S
72 2 6
AgeGate\Presentation\Template::renderVideo()
S
69 2 6
AgeGate\Presentation\Title::changePageTitle()
S
66 2 9
AgeGate\Admin\Controller\MessageController::data()
S
78 2 3
AgeGate\Admin\User\Toolbar::required()
S
75 2 4
AgeGate\Presentation\Title::changeDefaultTitle()
S
72 2 6
AgeGate\Update\Activate::getUserSettings()
S
68 2 7
AgeGate\Update\Migration\Migrate::getMethod()
S
79 2 3
AgeGate\Admin\Controller\AdvancedController::data()
S
79 2 3
AgeGate\Controller\JsController::getScriptDependencies()
S
69 2 8
AgeGate\Controller\StandardController::assets()
S
67 2 7
AgeGate\Admin\Controller\AdvancedController::rules()
S
60 1 15
AgeGate\Integration\Customizer::init()
S
71 2 6
AgeGate\Admin\Controller\ToolsController::data()
S
65 2 9
AgeGate\Admin\Controller\AppearanceController::data()
S
79 2 3
AgeGate\Integration\Sub\Blah::init()
S
79 2 4
AgeGate\Integration\Divi::pauseDiviCssCache()
S
60 1 12
AgeGate\Routes\Rest\Check::register()
S
64 1 11
AgeGate\Integration\Elementor::exists()
S
80 1 3
age_gate_template_subheadline()
S
83 1 3
AgeGate\Admin\Update::getDevMessage()
S
70 1 5
age_gate_uninstall()
S
80 1 3
AgeGate\Admin\Update::getUnknownMessage()
S
91 1 2
age_gate_content()
S
80 1 3
AgeGate\Routes\Rest\Developer::__construct()
S
79 1 3
AgeGate\Admin\Admin::actionLinks()
S
67 1 7
AgeGate\Legacy\Deprecated::addLegacyAfter()
S
79 1 3
age_gate_template_fields()
S
82 1 3
AgeGate\Admin\Controller\AppearanceController::required()
S
80 1 3
AgeGate\Admin\Controller\MessageController::fields()
S
81 1 3
AgeGate\Admin\Tools\Reset::auth()
S
74 1 4
AgeGate\Presentation\Template::remember()
S
80 1 3
AgeGate\Presentation\Template::extraWrapperOpen()
S
81 1 3
AgeGate\Admin\Update::__construct()
S
74 1 4
AgeGate\Legacy\Deprecated::addLegacyMessages()
S
79 1 3
age_gate_template_submit()
S
83 1 3
AgeGate\App\I18n::__construct()
S
79 1 3
AgeGate\Admin\Controller\PostController::required()
S
82 1 3
AgeGate\Admin\Controller\AdvancedController::register()
S
79 1 3
AgeGate\Admin\Controller\PostController::register()
S
73 1 5
AgeGate\Admin\Controller\PostController::fields()
S
82 1 3
AgeGate\Presentation\Template::extraWrapperClose()
S
82 1 3
AgeGate\Presentation\Template::rta()
S
81 1 3
AgeGate\Update\Activate::__construct()
S
91 1 2
AgeGate\Controller\JsController::template()
S
69 1 6
AgeGate\Admin\Controller\RestrictionController::required()
S
80 1 3
AgeGate\Admin\Update::getMinorMessage()
S
71 1 5
AgeGate\Admin\Ajax::__construct()
S
79 1 3
AgeGate\Admin\Controller\RestrictionController::data()
S
79 1 3
AgeGate\Admin\Controller\AccessController::rules()
S
78 1 3
AgeGate\Admin\Controller\RestrictionController::fields()
S
81 1 3
AgeGate\Admin\Controller\AdvancedController::fields()
S
81 1 3
AgeGate\Presentation\FocusTrap::__construct()
S
78 1 3
AgeGate\Presentation\Template::hidden()
S
81 1 3
AgeGate\Presentation\Form::optionStyle()
S
71 1 5
AgeGate\Admin\Tools\Export::__construct()
S
79 1 3
AgeGate\Admin\Controller\TroubleShootingController::register()
S
79 1 3
AgeGate\Legacy\Deprecated::addLegacyRestricted()
S
74 1 4
AgeGate\Admin\Controller\RestrictionController::enqueue()
S
81 1 3
age_gate_deactivate()
S
80 1 3
AgeGate\Presentation\Template::close()
S
81 1 3
AgeGate\Presentation\Form::__construct()
S
80 1 3
Age_Gate_Validation::add_validator()
S
78 1 3
AgeGate\Admin\Post\Edit::__construct()
S
69 1 6
AgeGate\Integration\Customizer::exists()
S
81 1 3
AgeGate\Admin\Controller\TroubleShootingController::required()
S
80 1 3
AgeGate\Integration\Divi::exists()
S
80 1 3
age_gate_status()
S
83 1 3
AgeGate\Enqueue\Enqueue::__construct()
S
74 1 4
AgeGate\Shortcode\ShortcodeContent::__construct()
S
74 1 5
AgeGate\Admin\Controller\MessageController::enqueue()
S
91 1 2
AgeGate\Admin\User\Toolbar::register()
S
74 1 4
AgeGate\Admin\Controller\ToolsController::rules()
S
70 1 7
AgeGate\Legacy\Deprecated::addLegacyRules()
S
80 1 3
AgeGate\Presentation\Attribute::__construct()
S
81 1 3
age_gate_set_value()
S
83 1 3
AgeGate\Legacy\Deprecated::addLegacyUnrestricted()
S
74 1 4
AgeGate\Presentation\Template::submit()
S
80 1 3
AgeGate\Admin\Controller\AppearanceController::register()
S
79 1 3
AgeGate\Presentation\Template::open()
S
81 1 3
AgeGate\Presentation\Template::additional()
S
80 1 3
AgeGate\Admin\Controller\AccessController::register()
S
79 1 3
AgeGate\Routes\Rest\Check::response()
S
73 1 5
AgeGate\App\AgeGate::__construct()
S
78 1 3
AgeGate\Admin\Controller\AdvancedController::required()
S
80 1 3
AgeGate\Presentation\Template::age()
S
80 1 3
AgeGate\Admin\Controller\PostController::data()
S
82 1 3
AgeGate\Admin\Post\Edit::render()
S
65 1 9
AgeGate\Presentation\Interaction::__construct()
S
78 1 3
AgeGate\Admin\Controller\TroubleShootingController::data()
S
82 1 3
AgeGate\Admin\Taxonomy\Term::__construct()
S
72 1 5
AgeGate\Integration\Sub\Blah::exists()
S
82 1 3
AgeGate\Presentation\Preload::__construct()
S
74 1 4
AgeGate\Legacy\Deprecated::addLegacyNames()
S
79 1 3
AgeGate\Admin\Controller\ContentController::required()
S
80 1 3
AgeGate\Admin\Controller\MessageController::required()
S
80 1 3
AgeGate\Presentation\Template::form()
S
81 1 3
AgeGate\Admin\Controller\MessageController::register()
S
79 1 3
AgeGate\Controller\ViewController::getView()
S
82 1 3
AgeGate\Routes\Rest\Check::__construct()
S
79 1 3
AgeGate\Presentation\Interaction::assets()
S
74 1 4
AgeGate\Controller\ViewController::render()
S
78 1 4
AgeGate\Controller\FormController::__construct()
S
91 1 2
AgeGate\Admin\User\Toolbar::data()
S
82 1 3
AgeGate\Presentation\Template::subheadline()
S
80 1 3
AgeGate\Presentation\Template::logo()
S
80 1 3
AgeGate\Update\Migration\Migrate::getMarkdown()
S
73 1 4
AgeGate\Admin\Update::getMajorMessage()
S
66 1 7
AgeGate\Presentation\Template::headline()
S
80 1 3
AgeGate\Controller\ViewController::setErrors()
S
80 1 3
AgeGate\Legacy\Deprecated::addLegacyLogged()
S
74 1 4
AgeGate\Admin\User\Toolbar::fields()
S
82 1 3
age_gate_is_restricted()
S
79 1 3
AgeGate\Presentation\Template::fields()
S
79 1 3
AgeGate\App\I18n::registerDomain()
S
69 1 7
age_gate_template_additional()
S
83 1 3
age_gate_error()
S
83 1 3
AgeGate\Presentation\Template::errors()
S
80 1 3
AgeGate\Update\Deactivate::deactivate()
S
95 1 1
AgeGate\Admin\Controller\TroubleShootingController::fields()
S
82 1 3
AgeGate\Admin\Controller\ContentController::fields()
S
81 1 3
AgeGate\Admin\Controller\AccessController::fields()
S
82 1 3
AgeGate\Presentation\Form::variable()
S
79 1 3
AgeGate\Legacy\Deprecated::filterLegacyCookie()
S
79 1 3
age_gate_template_headline()
S
83 1 3
age_gate_has_restriction()
S
79 1 3
age_gate_template_logo()
S
83 1 3
age_gate_add_attribute()
S
78 1 3
age_gate_template_errors()
S
83 1 3
age_gate_template_age_field()
S
83 1 3
age_gate_template_remember()
S
83 1 3
AgeGate\Presentation\Title::getTitle()
S
79 1 3
AgeGate\Admin\Update::disableUpdate()
S
82 1 3
AgeGate\Admin\Controller\AccessController::data()
S
69 1 7
AgeGate\Legacy\Deprecated::addLegacyBefore()
S
79 1 3
AgeGate\Routes\Rest\Media::__construct()
S
74 1 4
AgeGate\Admin\Tools\Reset::__construct()
S
75 1 4
AgeGate\Admin\Controller\ContentController::register()
S
70 1 6
AgeGate\Presentation\Form::enqueue()
S
77 1 4
AgeGate\Admin\Controller\AccessController::required()
S
80 1 3
AgeGate\Admin\Tools\Import::__construct()
S
79 1 3
AgeGate\App\AgeGate::getContent()
S
80 1 3
AgeGate\Admin\Controller\AppearanceController::fields()
S
81 1 3
AgeGate\Admin\Update::getPatchMessage()
S
78 1 3
AgeGate\Admin\Controller\ToolsController::fields()
S
81 1 3