ADVAIPBL_Main D

Total Complexity 1,068
Dependencies 25
Dependents 15
Total lines 7,386
Lines of code 5,536
Logical lines of code 2,789
Comment lines 1,025
Methods 149
Properties 23

Methods 149

Method Rating Maintainability Complexity Lines of code
handle_admin_actions()
D
16
67 212
run_all_block_checks()
D
25
48 135
send_block_notification()
D
29 32 99
load_admin_scripts()
C
27
25 132
execute_shutdown_block()
C
30 22 111
handle_error()
C
32 23 92
handle_import_settings()
B
36 22 71
register_settings()
B
18
1 378
get_xmlrpc_dependent_plugins()
B
37 21 68
log_specific_error()
B
37 21 63
check_for_endpoint_lockdown()
B
40 20 53
check_for_geo_challenge()
B
44 19 40
get_ip_intelligence()
B
38 17 68
log_settings_change()
B
32 14 97
add_hooks()
B
32 14 95
log_request_signature()
A
35 13 85
detect_http_error_status()
A
44 16 39
block_ip_instantly()
A
41 15 47
resync_block_transients()
A
47 16 30
get_country_list()
A
22
1 249
schedule_cron_jobs()
A
47 15 35
migrate_blocked_ips_to_table()
A
43 14 47
send_telemetry_data()
A
34 10 94
handle_login_action()
A
43 13 44
increment_login_lockdown_counter()
A
40 12 56
log_wp_cron_execution()
A
42 12 50
on_settings_update()
A
46 12 38
add_admin_ip_to_whitelist_on_first_run()
A
49 12 27
handle_export_settings_ajax()
A
44 11 38
validate_recaptcha_response()
A
46 11 36
access_denied_page()
A
43 10 51
is_source_trusted()
A
47 11 35
parse_user_agent()
A
43 9 48
desbloquear_ip()
A
47 10 33
serve_js_challenge()
A
33 4 118
display_2fa_section_in_profile()
A
38 6 87
process_and_send_summary()
A
40 8 56
handle_send_test_email()
A
39 7 68
get_live_attacks_for_feed()
A
43 8 48
send_2fa_notification_email()
A
43 8 48
update_spamhaus_list()
A
48 9 30
intercept_login_step_1()
A
50 9 26
add_to_whitelist_and_unblock()
A
46 8 39
activate_plugin()
A
47 8 34
check_for_malicious_signature()
A
48 8 33
display_force_2fa_setup_notice()
A
48 8 33
is_ip_in_range()
A
51 8 24
add_cron_intervals()
A
47 7 39
migrate_whitelist_format()
A
53 8 21
execute_webhook_send()
A
47 7 36
ajax_whitelist_signature()
A
47 7 31
increment_lockdown_counter()
A
43 6 46
is_valid_ip_or_range()
S
57 8 15
ajax_2fa_activate()
S
56 8 15
prevent_login_hinting()
S
51 7 27
__construct()
S
45 6 40
display_2fa_login_form_step_2()
S
43 5 51
display_2fa_backup_code_form()
S
43 5 51
ajax_verify_api_key()
S
53 7 20
setup_database_tables()
S
37 1 110
is_whitelisted()
S
56 7 18
is_ip_actively_blocked()
S
56 7 17
auto_whitelist_admin_on_login()
S
56 7 16
add_admin_bar_menu()
S
40 4 59
limpiar_ips_expiradas()
S
49 6 29
handle_threat_event()
S
49 6 27
display_telemetry_notice()
S
53 6 24
is_visitor_asn_whitelisted()
S
54 6 23
ajax_handle_telemetry_notice()
S
52 6 23
send_lockdown_notification()
S
46 5 35
execute_threat_score_decay()
S
55 6 19
ajax_test_outbound_connection()
S
54 6 19
get_all_block_type_definitions()
S
37 1 92
ajax_add_ip_to_whitelist()
S
55 6 17
ajax_update_geoip_db()
S
57 6 15
get_server_ip()
S
58 6 14
handle_send_test_push()
S
49 5 29
execute_geoip_db_update()
S
58 6 14
verify_js_challenge()
S
50 5 25
get_default_settings()
S
36 1 81
send_signature_flagged_notification()
S
46 4 35
ajax_reset_threat_score()
S
55 5 18
ajax_get_lockdown_details()
S
55 5 18
admin_menu()
S
43 2 62
ajax_delete_signature()
S
55 5 17
ajax_get_signature_details()
S
56 5 16
ajax_get_score_history()
S
56 5 16
initialize_backend_managers()
S
57 5 15
is_request_uri_excluded()
S
58 5 14
ajax_2fa_generate()
S
59 5 13
disable_rest_api_user_endpoints()
S
63 5 11
print_sortable_header()
S
60 5 11
get_all_blocked_entries()
S
51 4 26
is_visitor_actively_blocked()
S
53 4 24
update_option_autoload_states()
S
49 3 38
get_from_custom_cache()
S
54 4 22
block_xmlrpc_requests_if_disabled()
S
56 4 19
cleanup_legacy_options()
S
49 3 34
handle_clear_cache_action()
S
56 4 15
prevent_author_enumeration_redirect()
S
65 5 8
print_log_sortable_header()
S
60 4 11
print_modal_html_in_footer()
S
49 1 54
enqueue_recaptcha_script()
S
57 3 18
log_event()
S
56 3 18
get_html_email_template()
S
45 1 45
check_database_update()
S
59 3 15
get_formatted_datetime()
S
82 4 1
ajax_2fa_deactivate()
S
63 4 9
prevent_user_enumeration_via_feeds()
S
65 4 9
handle_login_page_restriction()
S
60 3 13
display_admin_notice()
S
60 3 13
cleanup_expired_cache_entries()
S
60 3 12
ajax_get_dashboard_stats()
S
61 3 12
display_recaptcha_field()
S
55 2 23
render_live_feed_shortcode()
S
48 1 37
handle_spamhaus_refresh_action()
S
63 3 9
get_current_admin_username()
S
74 3 4
schedule_notification_cron()
S
65 3 8
conditionally_remove_admin_notices()
S
67 3 7
get_first_public_ip_from_string()
S
64 3 9
render_per_page_selector()
S
59 2 15
sanitize_score_threshold()
S
70 3 6
get_remote_addr()
S
67 3 7
execute_signature_analysis()
S
60 2 13
unblock_all_ips()
S
55 1 20
get_block_message()
S
55 1 18
register_live_feed_api_endpoint()
S
57 1 17
set_in_custom_cache()
S
59 1 16
get_instance()
S
71 2 6
on_waf_rules_update()
S
65 2 9
get_blocked_count()
S
66 2 9
purge_old_logs()
S
64 2 8
get_client_ip()
S
67 2 8
prevent_user_enumeration_via_oembed()
S
68 2 7
save_2fa_section_in_profile()
S
73 2 5
get_current_request_uri()
S
68 2 7
get_user_agent()
S
68 2 7
get_request_method()
S
68 2 7
get_http_referer()
S
68 2 7
add_2fa_hooks()
S
59 1 13
deactivate_plugin()
S
63 1 11
get_live_feed_nonce()
S
73 1 5
set_html_mail_content_type()
S
82 1 3
is_internal_request()
S
89 1 1
registrar_intento_login_fallido()
S
78 1 3
clear_notification_cron()
S
92 1 1
remove_all_other_admin_notices()
S
77 1 4
settings_page_content()
S
82 1 3
clear_blocked_ips_cache()
S
80 1 3