WPMR_Init D

Total Complexity 892
Dependencies 11
Dependents 1
Total lines 5,890
Lines of code 5,485
Logical lines of code 1,967
Comment lines 183
Methods 183
Properties 8

Methods 183

Method Rating Maintainability Complexity Lines of code
scripts()
D
10
9 1,685
db_scan_batch()
D
26
33 146
set_args()
D
44 35 31
wpmr_scan_files()
C
32 24 101
waf()
B
42 22 50
update_definitions_cli()
B
38 17 71
meta_box_updates()
B
36 16 84
meta_box_diagnostics()
B
31 11 149
bootstrap()
B
36 15 81
wpmr_cli_register()
B
38 15 70
wpmr_scan_file_threats()
B
39 15 64
db_scan()
A
38 14 62
deactivate_pro()
A
44 15 42
activate_pro()
A
44 15 38
meta_box_license()
A
43 14 46
wpmr_get_stats()
A
44 13 44
wpmr_web_register()
A
44 12 42
save_gsc_profile()
A
52 13 22
admin_notice()
A
42 10 58
wpmr_license_page()
A
43 10 54
get_all_files()
A
48 11 35
get_pro_checksums()
A
46 11 34
get_definitions()
A
47 10 40
glob_files()
A
44 9 53
get_plugin_checksums()
A
46 10 37
is_advanced_edition()
A
48 10 34
meta_box_logs()
A
43 9 44
request_file_scan_threats()
A
42 7 54
check_definitions()
A
47 8 38
update_cached_checksums()
A
54 9 21
get_plugin_data()
A
47 8 34
meta_box_results()
A
45 6 61
wpmr_help_page()
A
43 3 105
get_checksums()
A
52 8 28
scanner_page()
A
39 1 132
ajax_shuffle_salts()
A
46 7 41
update_definitions()
A
46 7 40
wpmr_skip_dir()
A
55 8 19
get_theme_checksums()
S
49 7 29
build_files()
S
58 8 13
check_redirect_hijack()
S
50 7 27
generate_salt()
S
50 7 27
sha256_get_core_checksums()
S
51 7 26
wpmr_ajax_request()
S
52 7 25
meta_box_inspect()
S
56 6 25
check_page_hack()
S
52 6 24
repair_file()
S
52 6 24
wpmr_delete_file()
S
53 6 22
prioritise_core_files()
S
54 6 20
fails_checksum()
S
55 6 19
init()
S
39 3 64
wpmr_scan_db()
S
48 5 34
reset()
S
56 6 18
response_file_scan_threats()
S
56 6 18
raise_limits_conditionally()
S
60 6 12
automate_routines()
S
62 6 11
plugin_update_message()
S
52 5 23
wpmr_clean_file()
S
54 5 22
admin_body_classes()
S
56 5 19
get_home_dir()
S
56 5 16
sanitize_fw()
S
60 5 15
build_server()
S
63 6 9
build_request()
S
63 6 9
rglob()
S
60 5 14
path_included_in_only_scan_dirs()
S
60 5 13
checksums_delete_invalid()
S
61 5 12
malcure_dashboard_widget()
S
53 4 25
db_stats()
S
47 3 39
malcure_user_sessions()
S
48 3 33
patch_wp_config()
S
55 4 18
wpmr_whitelist_file()
S
57 4 16
get_file_web()
S
57 4 16
path_excluded_by_skipdirs()
S
63 5 10
redirect_hijack()
S
64 5 9
check_string_hack()
S
59 4 15
whitelist()
S
67 5 7
may_be_filter_suspicious()
S
65 5 8
is_scannable_file()
S
70 5 5
get_cached_checksums()
S
63 5 10
wpmr_unwhitelist_file()
S
58 4 15
fetch_file_contents()
S
59 4 15
build_plugin_file_url()
S
61 5 10
is_invalid_file()
S
73 5 4
settings_menu()
S
56 4 14
destroy_sessions()
S
60 4 13
update_setting()
S
61 4 12
flog()
S
60 4 12
process_only_scan_dirs()
S
61 4 12
is_core_wp_file()
S
61 4 11
remove_metaboxes()
S
63 4 11
wpmr_ad_common()
S
57 2 41
get_definitions_update_url()
S
55 3 20
meta_box_pro()
S
56 2 31
get_file_type()
S
62 4 10
render_whitelist()
S
63 4 10
is_deletable()
S
67 4 8
timezone_string_compat()
S
59 3 14
get_locale()
S
61 3 12
unpatch_wp_config()
S
62 3 12
wpmr_logs_page()
S
52 1 40
wpmr_hardening_page()
S
53 1 34
get_definitions_check_url()
S
56 2 18
set_status()
S
60 2 16
is_repairable()
S
65 3 9
attack_info()
S
66 3 7
get_fw_setting()
S
66 3 8
get_wp_config_path()
S
65 3 9
build_theme_file_url()
S
65 3 8
debug()
S
73 3 5
title_hack()
S
65 3 9
get_remote_response()
S
65 3 10
update_wpmr_def_auto_update()
S
64 3 10
get_definition_version()
S
70 3 6
path_begins_with_any()
S
69 3 7
is_in_core_wp_dir()
S
67 3 7
get_diag_data()
S
54 1 20
register_settings()
S
57 1 18
get_setting()
S
72 2 5
realpath()
S
70 2 7
get_definition_count()
S
67 2 8
llog()
S
66 2 9
maybe_load_default_definitions()
S
63 2 10
delete_setting()
S
67 2 8
wpmr_inspect_file()
S
65 2 9
plugin_meta_links()
S
65 2 10
firewall_section_ui()
S
68 2 8
get_last_updated_ago()
S
66 2 8
handle_screen()
S
70 2 7
wpmr_iscli()
S
80 2 3
map_core_checksums()
S
66 2 8
definition_updates_available()
S
65 2 10
delete_wpmr_logs()
S
68 2 7
is_excluded()
S
66 2 8
get_instance()
S
68 2 8
prompt_register()
S
71 2 6
dashboard_widget()
S
69 2 6
wpmr_add_metaboxes()
S
58 1 14
wpmr_add_admin_inline_styles()
S
100 1 14
get_users_loggedin()
S
69 1 8
fw_block_path_traversal_ui()
S
72 1 6
fw_disable_php_upload_ui()
S
72 1 6
get_rel_wppath()
S
72 1 5
fw_disable_restapi_user_listing_ui()
S
72 1 6
fw_disable_user_enumeration_ui()
S
72 1 6
render_branding()
S
80 1 3
add_action_meta_boxes()
S
79 1 3
wpmr_fw_settings_defaults()
S
67 1 9
screen_obj_fix()
S
75 1 4
do_action_meta_boxes()
S
80 1 3
get_wpmr_option()
S
79 1 3
get_config_search()
S
83 1 3
deactivate()
S
74 1 5
wpmr_clear_infection_stats()
S
73 1 5
meta_box_hardening()
S
69 1 9
get_checksums_values()
S
71 1 6
wpmr_enqueue_js_dependencies()
S
72 1 6
decode()
S
78 1 3
reset_flog()
S
72 1 5
delete_core_checksums()
S
82 1 3
is_file_blacklisted()
S
80 1 3
return_all_files()
S
77 1 4
str_starts_with()
S
78 1 3
is_in_root_dir()
S
79 1 3
is_file_binary()
S
68 1 6
mc_get_bool()
S
80 1 3
decode_filename()
S
80 1 3
unleadingslashit()
S
80 1 3
get_excluded()
S
72 1 3
get_fileext()
S
73 1 4
wpmr_init_scan()
S
76 1 4
encode()
S
78 1 3
is_valid_file()
S
80 1 3
unset_validation()
S
77 1 4
set_validation()
S
75 1 4
wpmr_admin_styles()
S
78 1 3
plugin_action_links()
S
72 1 5
delete_generated_checksums()
S
82 1 3
reset_logs()
S
72 1 6
set_plugin_data()
S
79 1 3
get_whitelist()
S
81 1 3
meta_box_logs_test()
S
100 1 5
is_registered()
S
81 1 3
__construct()
S
91 1 2