WPMR_Init D

Total Complexity 915
Dependencies 12
Dependents 1
Total lines 6,006
Lines of code 5,571
Logical lines of code 2,014
Comment lines 199
Methods 186
Properties 8

Methods 186

Method Rating Maintainability Complexity Lines of code
scripts()
D
10
9 1,688
db_scan_batch()
D
26
33 146
set_args()
D
44 35 31
wpmr_scan_files()
C
32 24 102
waf()
B
42 22 50
meta_box_diagnostics()
B
30 14 151
bootstrap()
B
35 16 89
update_definitions_cli()
B
38 17 71
meta_box_updates()
B
36 16 84
meta_box_license()
B
40 17 55
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
wpmr_get_stats()
A
44 13 44
admin_notice()
A
40 11 66
wpmr_web_register()
A
44 12 42
save_gsc_profile()
A
52 13 22
wpmr_license_page()
A
43 10 54
get_all_files()
A
46 11 38
is_advanced_edition()
A
48 11 34
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
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
wpmr_scan_db()
S
47 6 37
meta_box_inspect()
S
56 6 25
repair_file()
S
52 6 24
check_page_hack()
S
52 6 24
wpmr_delete_file()
S
53 6 22
get_server_load()
S
54 6 21
prioritise_core_files()
S
54 6 20
init()
S
39 3 64
fails_checksum()
S
55 6 19
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 17
sanitize_fw()
S
60 5 15
destroy_sessions()
S
59 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
48 3 38
malcure_user_sessions()
S
48 3 33
patch_wp_config()
S
55 4 18
get_file_web()
S
57 4 16
wpmr_whitelist_file()
S
57 4 16
may_be_filter_suspicious()
S
65 5 8
is_invalid_file()
S
73 5 4
path_excluded_by_skipdirs()
S
63 5 10
get_cached_checksums()
S
63 5 10
is_scannable_file()
S
70 5 5
wpmr_unwhitelist_file()
S
58 4 15
whitelist()
S
67 5 7
build_plugin_file_url()
S
61 5 10
check_string_hack()
S
59 4 15
redirect_hijack()
S
64 5 9
fetch_file_contents()
S
59 4 15
settings_menu()
S
56 4 14
update_setting()
S
61 4 12
flog()
S
60 4 12
process_only_scan_dirs()
S
61 4 12
remove_metaboxes()
S
63 4 11
wpmr_ad_common()
S
57 2 41
is_core_wp_file()
S
61 4 11
get_definitions_update_url()
S
55 3 20
meta_box_pro()
S
56 2 31
is_deletable()
S
67 4 8
get_file_type()
S
62 4 10
render_whitelist()
S
63 4 10
default_uploads_path()
S
60 3 14
timezone_string_compat()
S
59 3 14
build_theme_file_url()
S
61 3 12
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
get_wp_config_path()
S
65 3 9
debug()
S
77 3 4
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_remote_response()
S
65 3 10
title_hack()
S
65 3 9
is_repairable()
S
65 3 9
get_fw_setting()
S
66 3 8
attack_info()
S
66 3 7
update_wpmr_def_auto_update()
S
64 3 10
get_diag_data()
S
54 1 20
register_settings()
S
57 1 18
llog()
S
66 2 9
plugin_meta_links()
S
65 2 10
get_setting()
S
72 2 5
handle_screen()
S
70 2 7
delete_setting()
S
67 2 8
wpmr_inspect_file()
S
65 2 9
definition_updates_available()
S
65 2 10
render_branding()
S
66 2 9
dashboard_widget()
S
69 2 6
prompt_register()
S
71 2 6
is_advanced_edition_expired()
S
71 2 5
maybe_load_default_definitions()
S
63 2 10
get_instance()
S
68 2 8
get_definition_count()
S
67 2 8
get_last_updated_ago()
S
66 2 8
firewall_section_ui()
S
68 2 8
wpmr_iscli()
S
80 2 3
map_core_checksums()
S
66 2 8
delete_wpmr_logs()
S
68 2 7
normalise_path()
S
70 2 7
is_excluded()
S
66 2 8
wpmr_add_admin_inline_styles()
S
100 1 14
wpmr_add_metaboxes()
S
58 1 14
fw_block_path_traversal_ui()
S
72 1 6
decode()
S
78 1 3
encode()
S
78 1 3
wpmr_fw_settings_defaults()
S
67 1 9
get_config_search()
S
83 1 3
is_registered()
S
81 1 3
fw_disable_php_upload_ui()
S
72 1 6
fw_disable_restapi_user_listing_ui()
S
72 1 6
get_wpmr_option()
S
79 1 3
fw_disable_user_enumeration_ui()
S
72 1 6
__construct()
S
91 1 2
reset_flog()
S
72 1 5
set_validation()
S
75 1 4
get_users_loggedin()
S
69 1 8
deactivate()
S
74 1 5
wpmr_clear_infection_stats()
S
73 1 5
screen_obj_fix()
S
75 1 4
meta_box_hardening()
S
69 1 9
do_action_meta_boxes()
S
80 1 3
add_action_meta_boxes()
S
79 1 3
meta_box_logs_test()
S
100 1 5
get_whitelist()
S
81 1 3
set_plugin_data()
S
79 1 3
reset_logs()
S
72 1 6
wpmr_enqueue_js_dependencies()
S
72 1 6
plugin_action_links()
S
72 1 5
wpmr_admin_styles()
S
78 1 3
unset_validation()
S
77 1 4
get_fileext()
S
73 1 4
wpmr_init_scan()
S
76 1 4
unleadingslashit()
S
80 1 3
decode_filename()
S
80 1 3
mc_get_bool()
S
80 1 3
is_in_root_dir()
S
79 1 3
str_starts_with()
S
78 1 3
return_all_files()
S
77 1 4
is_valid_file()
S
80 1 3
is_file_blacklisted()
S
80 1 3
get_checksums_values()
S
71 1 6
delete_generated_checksums()
S
82 1 3
delete_core_checksums()
S
82 1 3
is_file_binary()
S
68 1 6
get_excluded()
S
72 1 3
normalize_host()
S
79 1 3