Code Analysis: Disable Comments 2.5.0

Function Rating Maintainability Complexity Lines of code
Disable_Comments::disable_comments_settings()
D
34 37 69
DisableComments_Plugin_Tracker::send_data()
C
34 31 80
Disable_Comments::delete_comments()
B
36 18 72
Disable_Comments::init_wploaded_filters()
B
41 18 50
DisableComments_Plugin_Tracker::get_data()
B
39 16 60
Disable_Comments::__construct()
B
41 16 55
Disable_Comment_Command::disable()
B
39 15 63
DisableComments_Plugin_Tracker::deactivate_reasons_form()
A
28
7 171
Disable_Comments::check_db_upgrades()
A
45 14 37
Disable_Comments\Classes\EB_Promotion_Notice::essential_block_optin()
A
34 7 136
Disable_Comments::delete_comments_settings()
A
47 13 31
Disable_Comments\Classes\EB_Promotion_Notice::__construct()
A
56 12 16
Disable_Comments::get_sub_sites()
A
45 10 37
DisableComments_Plugin_Tracker::clicked()
A
51 10 26
Disable_Comments\Classes\EB_Promotion_Notice::essential_blocks_promo_admin_js_template()
A
35 3 119
DisableComments_Plugin_Tracker::set_is_tracking_allowed()
A
54 9 22
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::ajax_install_plugin()
A
50 8 28
Disable_Comments::init_filters()
A
49 8 27
Disable_Comment_Command::__construct()
A
37 3 101
Disable_Comment_Command::delete()
A
50 8 26
Disable_Comments::setup_notice()
S
56 8 15
Disable_Comments::is_exclude_by_role()
S
57 8 15
DisableComments_Plugin_Tracker::__construct()
S
57 8 14
Disable_Comments::admin_notice()
S
60 8 12
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::install_plugin()
S
52 7 25
Disable_Comments::is_network_admin()
S
65 8 7
Disable_Comments::get_all_post_types()
S
59 7 13
DisableComments_Plugin_Tracker::notice()
S
45 4 52
DisableComments_Plugin_Tracker::deactivate_this_plugin()
S
54 5 21
Disable_Comments::settings_page()
S
54 5 21
DisableComments_Plugin_Tracker::remote_post()
S
54 5 19
Disable_Comments\Classes\EB_Promotion_Notice::essential_blocks_banner_promo_admin_js_template()
S
47 3 49
Disable_Comments::get_disabled_sites()
S
55 5 19
Disable_Comments::get_all_comments_number()
S
56 5 18
Disable_Comments::get_all_comment_types()
S
57 5 17
Disable_Comments::_get_all_comment_types()
S
56 5 16
Disable_Comments::check_comment_template()
S
63 6 9
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::ajax_activate_plugin()
S
57 5 15
DisableComments_Plugin_Tracker::diff()
S
60 5 14
Disable_Comments::filter_admin_menu()
S
60 5 13
DisableComments_Plugin_Tracker::do_tracking()
S
61 5 13
Disable_Comments::check_upgrades()
S
62 5 11
Disable_Comments::get_disabled_post_types()
S
62 5 11
Disable_Comments::start_plugin_usage_tracking()
S
55 4 19
DisableComments_Plugin_Tracker::redirect_to()
S
55 4 18
Disable_Comments::check_compatibility()
S
63 5 9
Disable_Comments::is_xmlrpc_rest()
S
65 5 9
Disable_Comments::settings_menu()
S
64 5 8
Disable_Comments::tools_menu()
S
61 5 10
Disable_Comments::is_configured()
S
67 5 7
Disable_Comments\Classes\EB_Promotion_Notice::get_local_plugin_data()
S
61 4 13
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::get_local_plugin_data()
S
61 4 13
Disable_Comments::filter_rest_endpoints()
S
63 4 12
DisableComments_Plugin_Tracker::update_block_notice()
S
62 4 12
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::ajax_upgrade_plugin()
S
60 4 12
Disable_Comments::settings_page_assets()
S
50 3 27
DisableComments_Plugin_Tracker::has_user_opted_out()
S
63 4 11
DisableComments_Plugin_Tracker::deactivate_action_links()
S
62 4 11
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::get_remote_plugin_data()
S
54 3 23
Disable_Comments::remove_network_comment_links()
S
65 4 9
Disable_Comments::update_options()
S
66 4 8
DisableComments_Plugin_Tracker::is_time_to_track()
S
70 4 5
Disable_Comments::discussion_notice()
S
61 4 10
Disable_Comments::filter_gutenberg_blocks()
S
70 4 6
DisableComments_Plugin_Tracker::deactivate_reasons_form_submit()
S
60 3 13
Disable_Comments::plugin_actions_links()
S
61 3 12
DisableComments_Plugin_Tracker::is_tracking_allowed()
S
63 3 11
Disable_Comments::get_roles()
S
56 2 18
Disable_Comments::discussion_settings_allowed()
S
73 3 5
Disable_Comments::is_post_type_disabled()
S
70 3 6
Disable_Comments::filter_comment_status()
S
74 3 4
DisableComments_Plugin_Tracker::schedule_tracking()
S
67 3 8
Disable_Comments::eb_promotion_notice()
S
64 3 10
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::ajax_deactivate_plugin()
S
63 3 9
Disable_Comments::get_form_array_escaped()
S
63 3 10
Disable_Comments::filter_admin_bar()
S
67 3 8
Disable_Comments::filter_comments_number()
S
74 3 4
Disable_Comments::is_remove_everywhere()
S
67 3 9
Disable_Comments::tools_page_url()
S
73 3 4
Disable_Comments::settings_page_url()
S
73 3 4
Disable_Comments::filter_existing_comments()
S
74 3 4
DisableComments_Plugin_Tracker::deactivation_reasons()
S
55 1 20
Disable_Comments\Classes\EB_Promotion_Notice::essential_blocks_banner_promo_enqueue_scripts()
S
65 2 8
Disable_Comments::get_instance()
S
72 2 6
Disable_Comments\Classes\EB_Promotion_Notice::dc_eb_banner_promo_dismiss()
S
66 2 8
Disable_Comments\Classes\EB_Promotion_Notice::dc_gb_eb_popup_dismiss()
S
66 2 8
DisableComments_Plugin_Tracker::plugin_data()
S
68 2 7
Disable_Comments::filter_query()
S
72 2 5
Disable_Comments\Classes\EB_Promotion_Notice::dc_eb_optin_notice_dismiss()
S
66 2 8
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::upgrade_plugin()
S
63 2 10
Disable_Comments\Classes\EB_Promotion_Notice::essential_blocks_promo_enqueue_scripts()
S
65 2 8
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::ajax_auto_active_even_not_installed()
S
67 2 8
Disable_Comments::set_plugin_meta()
S
67 2 8
DisableComments_Plugin_Tracker::activate_this_plugin()
S
70 2 7
DisableComments_Plugin_Tracker::get_instance()
S
71 2 6
Disable_Comments::admin_css()
S
70 1 11
Disable_Comments::truncate_table()
S
75 1 4
Disable_Comments::single_site_deactivate()
S
81 1 3
Disable_Comments::filter_wp_headers()
S
76 1 4
Disable_Comments\Classes\EB_Promotion_Notice::eb_admin_notice_init()
S
74 1 4
Disable_Comments\Classes\WPDeveloper_Plugin_Installer::__construct()
S
67 1 7
Disable_Comments::filter_dashboard()
S
79 1 3
DisableComments_Plugin_Tracker::set_notice_options()
S
65 1 9
DisableComments_Plugin_Tracker::set_track_time()
S
72 1 5
Disable_Comments::disable_comments_script()
S
77 1 3
Disable_Comments::disable_rest_API_comments()
S
83 1 3
Disable_Comments\Classes\EB_Promotion_Notice::eb_popup_promo_init()
S
75 1 4
Disable_Comments::redirectToMainSettingsPage()
S
76 1 4
DisableComments_Plugin_Tracker::force_tracking()
S
81 1 3
Disable_Comments::dummy_comments_template()
S
79 1 3
Disable_Comments::register_text_domain()
S
77 1 3
Disable_Comments::disable_rc_widget()
S
76 1 4
Disable_Comments::__get_comment_count()
S
75 1 4
Disable_Comments::disable_xmlrc_comments()
S
76 1 4
Disable_Comments::tools_page()
S
83 1 3
Disable_Comments::optimize_table()
S
75 1 4
Disable_Comments::enable_cli()
S
76 1 4
DisableComments_Plugin_Tracker::init()
S
65 1 8
Disable_Comments\Classes\EB_Promotion_Notice::dc_eb_banner_promo_init()
S
75 1 4