Disable_Comments D

Total Complexity 328
Dependencies 2
Dependents 0
Total lines 1,190
Lines of code 879
Logical lines of code 520
Comment lines 176
Methods 65
Properties 8

Methods 65

Method Rating Maintainability Complexity Lines of code
disable_comments_settings()
D
34 37 69
delete_comments()
B
36 18 72
init_wploaded_filters()
B
41 18 50
__construct()
B
41 16 54
check_db_upgrades()
A
45 14 37
delete_comments_settings()
A
47 13 31
get_sub_sites()
A
45 10 37
init_filters()
A
49 8 27
is_exclude_by_role()
S
57 8 15
setup_notice()
S
56 8 15
admin_notice()
S
60 8 12
is_network_admin()
S
65 8 7
get_all_post_types()
S
59 7 13
settings_page()
S
54 5 21
get_disabled_sites()
S
55 5 19
get_all_comments_number()
S
56 5 18
get_all_comment_types()
S
57 5 17
_get_all_comment_types()
S
56 5 16
check_comment_template()
S
63 6 9
filter_admin_menu()
S
60 5 13
get_disabled_post_types()
S
62 5 11
check_upgrades()
S
62 5 11
start_plugin_usage_tracking()
S
55 4 19
settings_menu()
S
64 5 8
tools_menu()
S
61 5 10
check_compatibility()
S
63 5 9
is_configured()
S
67 5 7
is_xmlrpc_rest()
S
65 5 9
filter_rest_endpoints()
S
63 4 12
settings_page_assets()
S
50 3 27
filter_gutenberg_blocks()
S
70 4 6
remove_network_comment_links()
S
65 4 9
discussion_notice()
S
62 4 10
update_options()
S
66 4 8
plugin_actions_links()
S
61 3 12
get_roles()
S
56 2 18
filter_comments_number()
S
74 3 4
filter_comment_status()
S
74 3 4
settings_page_url()
S
73 3 4
filter_existing_comments()
S
74 3 4
tools_page_url()
S
73 3 4
filter_admin_bar()
S
67 3 8
is_post_type_disabled()
S
70 3 6
is_remove_everywhere()
S
67 3 9
discussion_settings_allowed()
S
73 3 5
get_form_array_escaped()
S
63 3 10
get_instance()
S
72 2 6
filter_query()
S
72 2 5
set_plugin_meta()
S
67 2 8
admin_css()
S
70 1 11
redirectToMainSettingsPage()
S
76 1 4
dummy_comments_template()
S
79 1 3
optimize_table()
S
75 1 4
__get_comment_count()
S
75 1 4
single_site_deactivate()
S
81 1 3
enable_cli()
S
76 1 4
register_text_domain()
S
77 1 3
disable_xmlrc_comments()
S
76 1 4
filter_wp_headers()
S
76 1 4
disable_rest_API_comments()
S
83 1 3
disable_comments_script()
S
77 1 3
tools_page()
S
83 1 3
filter_dashboard()
S
79 1 3
disable_rc_widget()
S
76 1 4
truncate_table()
S
75 1 4