Code Analysis: Age Gate 2.18.3

Function Rating Maintainability Complexity Lines of code
Age_Gate_Public::is_restricted()
C
32 29 100
Parsedown::lines()
C
33 26 105
Age_Gate_Public_JS::ajax_setup()
B
35 18 77
Age_Gate_Public::_screen_type()
B
45 20 39
Age_Gate_Public::toolbar_link_to_mypage()
B
42 17 46
Age_Gate_Activator::restrictions()
B
43 17 39
Age_Gate_Public::_get_meta()
B
37 13 91
Parsedown::blockTable()
A
38 13 77
Age_Gate_Public::get_age()
A
47 15 34
Parsedown::element()
A
42 13 55
Age_Gate_Activator::messages()
A
42 13 47
Age_Gate_Public::getRedirectUrl()
A
45 12 43
Age_Gate_Presentation::enqueue_scripts()
A
46 12 33
Age_Gate_Import_Export::_import()
A
44 11 45
Age_Gate_Validation::sanitize()
A
49 12 30
Parsedown::line()
A
45 11 43
Parsedown::blockMarkup()
A
46 11 41
Age_Gate_Validation::get_readable_errors()
A
45 11 40
Age_Gate_Activator::appearance()
A
46 11 35
Age_Gate_Output::__construct()
A
49 10 28
Parsedown::inlineMarkup()
A
51 10 27
Parsedown::blockListContinue()
A
46 9 40
Age_Gate_Public_JS::_handle_button_submission()
A
43 8 50
Age_Gate_Public_JS::_handle_input_submission()
A
44 8 47
Age_Gate_Addons::_check_cap()
A
56 10 17
Age_Gate_Messaging::handle_form_submission()
A
47 9 31
Age_Gate_Public_JS::_get_category_info()
A
45 8 45
Parsedown::inlineLink()
A
43 7 57
Age_Gate_Presentation::change_default_title()
A
52 9 22
Age_Gate_Rest::shortCodeTest()
A
49 8 28
Age_Gate_Presentation::enqueue_styles()
A
50 8 26
Age_Gate_Multi_Lingual::is_multi_lingual()
A
53 8 24
Age_Gate_Validation::get_messages()
A
52 8 23
Age_Gate_Advanced::handle_form_submission()
A
51 8 22
Age_Gate_Cron::getDefault()
A
35 3 95
Parsedown::blockComment()
A
56 8 17
Age_Gate_Post_Types::_misc_actions()
S
56 8 15
Age_Gate_Submission::_handle_button_submission()
S
46 6 41
Age_Gate_Submission::_handle_input_submission()
S
47 6 38
Parsedown::blockTableContinue()
S
47 6 37
Age_Gate_Restriction::handle_form_submission()
S
52 7 22
Age_Gate_Activator::advanced()
S
47 6 37
Age_Gate_Submission::_set_cookie()
S
55 7 18
Age_Gate_Public::_get_id()
S
57 7 18
Age_Gate_Shortcode::addShortcode()
S
49 6 32
Age_Gate_Taxonomies::edit_form_input()
S
55 7 17
Age_Gate_Presentation::return_page_title()
S
56 7 15
Age_Gate_Activator::caps()
S
51 6 30
Age_Gate_Admin::ag_toggle()
S
57 7 14
Age_Gate_Activator::activate()
S
51 6 28
Parsedown::blockMarkupContinue()
S
51 6 28
Parsedown::sanitiseElement()
S
52 6 26
Age_Gate_Admin::purge_transients()
S
53 6 23
Age_Gate_Presentation::_compile_css()
S
53 6 21
Age_Gate_Admin::age_gate_admin_notice()
S
55 6 18
Age_Gate_Messaging::display_options_page()
S
56 6 17
Age_Gate_Multi_Lingual::_get_fe_lang_info()
S
56 6 17
Parsedown::blockList()
S
49 5 31
Age_Gate_Post_Types::age_gate_columns_data()
S
56 6 16
log_message()
S
63 7 10
Age_Gate_Admin::_can_age_gate()
S
61 6 14
Age_Gate_Public::age_gate_error()
S
58 6 13
Age_Gate_Admin::_dev_notices()
S
58 6 12
Age_Gate_Presentation::change_page_title()
S
59 6 12
Parsedown::inlineEmphasis()
S
52 5 27
Age_Gate_Update::get_upgrade_magnitude()
S
60 6 12
Parsedown::blockSetextHeader()
S
61 6 11
Parsedown::blockHeader()
S
53 5 23
Age_Gate_Addons::handle_form_submission()
S
51 5 23
Age_Gate_Import_Export::__construct()
S
47 4 37
Parsedown::inlineUrl()
S
53 5 22
Age_Gate_Registration::extend_registration_form_show_errors()
S
53 5 21
Age_Gate::define_admin_hooks()
S
39 2 66
Age_Gate_Public_JS::handle_ajax_form_submission()
S
54 5 21
Parsedown::blockCode()
S
55 5 21
Age_Gate_Post_Types::register_age_gate_bulk_actions()
S
54 5 19
Parsedown::blockQuoteContinue()
S
57 5 17
Age_Gate::define_public_hooks()
S
48 4 32
Age_Gate_Common::_get_translated_setting()
S
64 6 8
Age_Gate_Public::customiser_js_disable()
S
64 6 10
Age_Gate_Admin::editor_scripts()
S
61 6 10
Age_Gate_Submission::__construct()
S
50 4 29
Age_Gate_Restriction::display_options_page()
S
58 5 14
Age_Gate_Post_Types::_set_age()
S
60 5 13
Age_Gate_Taxonomies::_set_age()
S
60 5 13
Age_Gate_Post_Types::save_post()
S
60 5 12
Age_Gate_Admin::website_link()
S
51 4 26
Parsedown::inlineImage()
S
52 4 25
Age_Gate_Access::handle_form_submission()
S
51 4 23
Parsedown::inlineEmailTag()
S
55 4 20
Age_Gate_Post_Types::age_gate_quick_edit()
S
56 4 20
Parsedown::blockFencedCodeContinue()
S
56 4 19
Age_Gate_Public_JS::age_gate_filters()
S
55 4 19
Age_Gate_Registration::extend_registration_user_data()
S
55 4 18
Age_Gate_Rest::calcAge()
S
55 4 18
Parsedown::inlineSpecialCharacter()
S
56 4 17
Parsedown::inlineStrikethrough()
S
57 4 17
Age_Gate_Presentation::_hex2RGB()
S
56 4 16
Age_Gate_Submission::self_post()
S
65 5 8
Age_Gate_Appearance::handle_form_submission()
S
56 4 15
Age_Gate_Public::load_template()
S
63 5 10
Age_Gate_Import_Export::_import_export()
S
58 4 15
Age_Gate_Activator::post_types()
S
58 4 15
Age_Gate_Import_Export::_constructResponse()
S
59 4 14
Age_Gate_Admin::enqueue_scripts()
S
58 4 14
Age_Gate_Activator::cleanUserData()
S
59 4 14
Age_Gate_Messaging::customise_tinymce()
S
59 4 13
Age_Gate_Post_Types::_set_restrict()
S
60 4 13
Age_Gate_Post_Types::_set_bypass()
S
60 4 13
Parsedown::blockListComplete()
S
61 4 13
Age_Gate_Taxonomies::_set_restrict()
S
60 4 13
Age_Gate_Taxonomies::_set_bypass()
S
60 4 13
activate_age_gate()
S
62 4 12
Age_Gate_Submission::flatten()
S
61 4 12
Age_Gate_Appearance::display_options_page()
S
61 4 12
Age_Gate_Public_JS::flatten()
S
61 4 12
Parsedown::blockFencedCode()
S
52 3 26
Age_Gate_Advanced::_validate_css()
S
61 4 11
Age_Gate_Import_Export::_export()
S
55 3 20
Parsedown::blockReference()
S
56 3 19
Age_Gate_Update::in_plugin_update_message()
S
57 3 17
Parsedown::inlineUrlTag()
S
58 3 16
Age_Gate_Ajax::regenerate_serial()
S
57 3 16
Age_Gate_Advanced::enqueue_scripts()
S
61 4 10
Age_Gate_Public::age_gate_set_value()
S
68 4 6
Age_Gate_Registration::__construct()
S
66 4 8
Age_Gate_Appearance::_filter_language_values()
S
64 4 9
Age_Gate_Public::_is_bot()
S
64 4 9
Age_Gate_Messaging::_filter_language_values()
S
64 4 9
Age_Gate_Messaging::_filter_language_validation()
S
64 4 9
Age_Gate_Shortcode::isBot()
S
64 4 9
Age_Gate_Restriction::_filter_language_values()
S
64 4 9
Age_Gate_Activator::rewriteCSS()
S
70 4 5
Age_Gate_Public_JS::register_rest_endpoints()
S
58 3 15
Age_Gate_Common::_get_settings()
S
58 3 15
Age_Gate_Submission::_calc_age()
S
58 3 14
Parsedown::blockCodeContinue()
S
59 3 14
Age_Gate_Public_JS::_calc_age()
S
58 3 14
Age_Gate_Public::_archive_date()
S
60 3 13
Parsedown::blockCommentContinue()
S
62 3 12
Parsedown::li()
S
61 3 12
Age_Gate_Admin::enqueue_styles()
S
61 3 12
Age_Gate_Registration::extend_registration_form()
S
60 3 11
Age_Gate_Public::_filter_errors()
S
61 3 11
Age_Gate_Post_Types::age_gate_action_handler()
S
62 3 11
Age_Gate_Post_Types::_bulk_restrict()
S
62 3 11
Age_Gate_Post_Types::_bulk_unrestrict()
S
62 3 11
Age_Gate_Addons::__construct()
S
62 3 11
Parsedown::filterUnsafeUrlInAttribute()
S
62 3 11
Age_Gate_Submission::_validate()
S
52 2 24
Age_Gate_Public_JS::_validate()
S
53 2 23
Age_Gate::load_dependencies()
S
50 1 32
Age_Gate_Output::_check_filtered()
S
64 3 9
Age_Gate_Access::_update_caps()
S
64 3 10
Age_Gate_Output::display_logo()
S
68 3 6
Age_Gate_Loader::run()
S
66 3 8
Age_Gate_Post_Types::add_restriction_options()
S
67 3 6
Age_Gate_Addons::_addon_icon()
S
69 3 6
Parsedown::inlineCode()
S
58 2 15
Age_Gate_Common::is_dev()
S
65 3 8
Parsedown::inlineEscapeSequence()
S
65 3 9
Age_Gate_Post_Types::age_gate_columns()
S
67 3 7
Age_Gate_Output::_localise_settings()
S
67 3 7
Age_Gate_Access::_filter_values()
S
64 3 9
Age_Gate_Admin::_checkLatest()
S
64 3 10
Age_Gate_Public::__construct()
S
63 3 9
Age_Gate_Output::display_messages()
S
63 3 10
Age_Gate_Multi_Lingual::_get_admin_lang_info()
S
65 3 8
Age_Gate_Public_JS::render_age_gate()
S
59 2 14
Parsedown::blockQuote()
S
61 2 13
Age_Gate_Import_Export::add_settings_page()
S
61 2 13
Age_Gate_Admin::plugin_action_links()
S
59 2 13
Parsedown::unmarkedText()
S
62 2 12
Age_Gate::__construct()
S
62 2 12
Age_Gate_Import_Export::import_export_tab()
S
62 2 12
Parsedown::blockRule()
S
63 2 11
Age_Gate_Post_Types::age_gate_bulk_action_admin_notice()
S
63 2 11
Age_Gate_Submission::handle_form_submission()
S
62 2 11
Age_Gate_Output::_format_options()
S
52 1 26
Parsedown::striAtStart()
S
63 2 11
Age_Gate_Shortcode::formatOptions()
S
52 1 25
Age_Gate_Admin::_localize()
S
54 1 21
Age_Gate_Common::_set_admin_notice()
S
69 2 7
Age_Gate_Registration::register_style()
S
73 2 4
Age_Gate_Public::age_gate_failed()
S
71 2 5
Age_Gate_Common::stripslashes_deep()
S
74 2 4
Age_Gate_Addons::register_addons()
S
70 2 6
Age_Gate_Taxonomies::register_taxonomies_fields()
S
65 2 8
Age_Gate_Taxonomies::test_save_fields()
S
66 2 7
Parsedown::elements()
S
66 2 9
Parsedown::escape()
S
77 2 3
Age_Gate_Admin::force_js()
S
70 2 6
Age_Gate_Common::_get_config()
S
77 2 3
Age_Gate_Public_JS::__construct()
S
66 2 8
Age_Gate_Cron::checkOptions()
S
68 2 7
Age_Gate_Common::get_cookie_name()
S
77 2 3
Age_Gate_Admin::_update_check()
S
67 2 7
Age_Gate_Public::_set_user_age()
S
74 2 4
Age_Gate_Access::_prep_roles()
S
77 2 3
Parsedown::instance()
S
66 2 9
Age_Gate_Multi_Lingual::_uniform_values()
S
68 2 7
Age_Gate_Taxonomies::add_form_input()
S
68 2 7
Age_Gate_Public::generate_unique_id()
S
67 2 7
Age_Gate_Cron::clean()
S
78 2 4
Age_Gate_Submission::_set_error_message()
S
62 2 10
Age_Gate_Messaging::_filter_validation()
S
62 1 12
Age_Gate_Shortcode::getDefaultSettings()
S
62 1 11
Age_Gate_V3::add_settings_page()
S
63 1 11
Age_Gate_Admin::add_menu_section()
S
64 1 11
Age_Gate_Restriction::__construct()
S
81 1 3
Age_Gate_Output::render()
S
80 1 3
Age_Gate_Submission::_test_user_age()
S
80 1 3
Age_Gate_V3::display_options_page()
S
80 1 3
Age_Gate_Post_Types::_filter_values()
S
67 1 8
Age_Gate_Ajax::get_stored_css()
S
76 1 4
Age_Gate_Rest::registerRestEndpoints()
S
68 1 7
Age_Gate_Public_JS::_test_user_age()
S
80 1 3
Age_Gate_Cron::__construct()
S
79 1 3
Age_Gate_Common::__construct()
S
69 1 7
Age_Gate_Import_Export::_filter_values()
S
75 1 4
Age_Gate_Shortcode::__construct()
S
74 1 4
Age_Gate_Public::restrictionStatus()
S
80 1 3
Age_Gate::set_locale()
S
75 1 4
Age_Gate_Loader::add_filter()
S
77 1 3
Age_Gate_Loader::__construct()
S
77 1 4
Age_Gate_Addons::_deny_access()
S
75 1 4
Age_Gate::get_version()
S
77 1 4
Age_Gate::run()
S
82 1 3
Age_Gate_Multi_Lingual::__construct()
S
81 1 3
Parsedown::setUrlsLinked()
S
77 1 4
Age_Gate_Post_Types::__construct()
S
81 1 3
Age_Gate_Common::array_insert()
S
74 1 4
Age_Gate_Addons::addon_page()
S
80 1 3
Age_Gate_Rest::__construct()
S
79 1 3
Age_Gate_Public_JS::_decode_age()
S
80 1 3
Age_Gate::get_loader()
S
82 1 3
Age_Gate_Public_JS::age_gate_filters_rest()
S
79 1 3
Age_Gate_Import_Export::display_options_page()
S
80 1 3
Age_Gate_i18n::load_plugin_textdomain()
S
69 1 7
Age_Gate_Presentation::__construct()
S
81 1 3
Age_Gate_Messaging::_filter_values()
S
75 1 4
age_gate_error()
S
81 1 3
Age_Gate_Ajax::get_text_area()
S
73 1 4
Age_Gate_Loader::add_action()
S
77 1 3
Age_Gate_Public_JS::_hook_data()
S
67 1 8
Age_Gate_Post_Types::misc_actions_metabox()
S
82 1 3
Age_Gate_Messaging::sanitize_content()
S
65 1 8
Age_Gate::get_plugin_name()
S
77 1 4
Age_Gate_Update::__construct()
S
81 1 3
Age_Gate_Post_Types::enqueue_scripts()
S
65 1 8
Age_Gate_Access::display_options_page()
S
71 1 5
Age_Gate_V3::__construct()
S
81 1 3
Age_Gate_Restriction::add_settings_page()
S
65 1 10
Age_Gate_Submission::_hook_data()
S
67 1 8
Age_Gate_Access::__construct()
S
81 1 3
Age_Gate_Advanced::display_options_page()
S
74 1 4
Age_Gate_Update::disable_update()
S
77 1 4
Age_Gate_Update::update_message_major()
S
71 1 5
Parsedown::blockCodeComplete()
S
73 1 5
Age_Gate_Access::add_settings_page()
S
65 1 10
Age_Gate_Ajax::__construct()
S
81 1 3
Age_Gate_Messaging::__construct()
S
81 1 3
Parsedown::setBreaksEnabled()
S
77 1 4
Age_Gate_Common::_is_default_lang()
S
78 1 3
Parsedown::text()
S
65 1 9
Parsedown::setMarkupEscaped()
S
77 1 4
Age_Gate_Appearance::_filter_values()
S
75 1 4
Age_Gate_Update::update_message_minor()
S
74 1 4
Parsedown::isBlockCompletable()
S
78 1 3
Age_Gate_Activator::access()
S
69 1 7
Age_Gate_Ajax::editor_get_css()
S
75 1 4
Age_Gate_Public_JS::age_gate_rest()
S
79 1 3
Age_Gate_Advanced::add_settings_page()
S
65 1 10
Age_Gate_Advanced::__construct()
S
81 1 3
run_age_gate()
S
77 1 4
Parsedown::parse()
S
77 1 4
Age_Gate_Post_Types::test_box()
S
74 1 4
Age_Gate_Appearance::__construct()
S
81 1 3
Age_Gate_Ajax::_format_css()
S
68 1 7
Age_Gate_Addons::addons_tab()
S
66 1 9
age_gate_set_value()
S
81 1 3
Age_Gate_Advanced::_filter_values()
S
75 1 4
Age_Gate_Admin::__construct()
S
77 1 4
Age_Gate_Appearance::add_settings_page()
S
65 1 10
Age_Gate_Shortcode::enqueueShortcode()
S
77 1 3
Age_Gate_Deactivator::deactivate()
S
80 1 3
Age_Gate_Restriction::_filter_values()
S
75 1 4
Parsedown::isBlockContinuable()
S
78 1 3
Age_Gate_Common::render_language_input()
S
79 1 3
Age_Gate_Addons::addons_page()
S
65 1 10
Age_Gate_Admin::in_admin_header()
S
80 1 3
age_gate_status()
S
82 1 3
Parsedown::blockFencedCodeComplete()
S
73 1 5
Parsedown::setSafeMode()
S
77 1 4
Age_Gate_Taxonomies::_filter_values()
S
67 1 8
Parsedown::paragraph()
S
65 1 10
Age_Gate_Taxonomies::__construct()
S
81 1 3
Age_Gate_Messaging::add_settings_page()
S
65 1 10
Age_Gate_Update::update_message_milestone()
S
66 1 7
deactivate_age_gate()
S
76 1 4
Age_Gate_Ajax::set_ag3_hidden()
S
76 1 4
Age_Gate_Registration::_ageTest()
S
68 1 6
Age_Gate_Output::post_to()
S
76 1 4
Age_Gate_Submission::_decode_age()
S
80 1 3
Age_Gate_Loader::add()
S
64 1 10