Classes

Coverage Distribution

Complexity

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
instance0%
__construct0%
add_args_to_lostpassword_redirect_url0%
add_args_to_lostpassword_url0%
add_args_to_login_post_url0%
add_args_to_login_url0%
check_valid_blocked_user0%
is_blocked_user_valid0%
is_valid_protect_recovery_key0%
render_and_die0%
render_blocked_login_message0%
process_recovery_email0%
send_recovery_email0%
protect_die0%
render_recovery_form0%
render_recovery_success0%
get_html_blocked_login_message0%
get_html_recovery_form0%
display_page0%
instance0%
get_help_url0%
__construct0%
time_window0%
math_authenticate0%
generate_math_page0%
process_generate_math_page0%
math_form0%
format_allow_list0%
get_local_allow_list0%
get_global_allow_list0%
create_ip_object0%
save_allow_list0%
jp_purge_transients0%
jp_purge_transients_activation0%
instance0%
__construct0%
on_activation0%
on_deactivation0%
enable0%
disable0%
maybe_get_protect_key0%
maybe_update_headers0%
maybe_display_security_warning0%
prepare_jetpack_protect_multisite_notice0%
ajax_dismiss_handler0%
admin_jetpack_manage_notice0%
get_active_plugins0%
deactivate_plugin0%
get_protect_key0%
modules_loaded0%
log_successful_login0%
check_preauth0%
get_headers0%
ip_allow_list_enabled0%
ip_is_allowed0%
check_login_ability0%
is_current_ip_allowed0%
has_login_ability0%
get_cached_status0%
block_with_math0%
kill_login0%
check_use_math0%
get_main_blog_id0%
get_main_blog_jetpack_id0%
check_api_key0%
protect_call0%
get_transient_name0%
set_transient0%
get_transient0%
run_compatibility_migrations0%
default_option_waf_needs_update0%
filter_option_waf_ip_allow_list0%
default_option_waf_ip_allow_list0%
register_rest_routes0%
waf_permissions_callback0%
instance0%
get_help_url0%
get_blocklog_file_path0%
serialize_option_value0%
unserialize_option_value0%
get_current_day_block_count0%
get_thirty_days_block_counts0%
get_all_time_block_count0%
get_request_headers0%
mode0%
setup0%
teardown0%
generate_rules0%
define_share_data0%
define_brute_force_api_host0%
on_brute_force_protection_activation0%
on_brute_force_protection_deactivation0%
check_for_updates0%
remove_module_on_unsupported_environments0%
pm0%
get_multi_string_matcher0%
get_body0%
add_hooks0%
schedule_rules_cron0%
update_rules_cron0%
reactivate_on_rules_option_change0%
add_hooks0%
disable0%
errorHandler0%
match_targets0%
get_ip_hash0%
is_ip_allowed_for_recovery0%
allow_login_or_prompt_recovery0%
block0%
redirect0%
set_body_processor0%
normalize_header_name0%
is_ip_in_array0%
get_blocked_requests0%
is_global_stats_cache_expired0%
should_use_global_stats_cache0%
fetch_global_stats_from_api0%
get_global_stats_from_options0%
get_global_stats0%
cmd_line0%
sql_hex_decode0%
remove_comments_char0%
url_decode_uni0%
js_decode0%
uppercase0%
initialize15%
get_daily_summary25%
get_all_time_block_count_value25%
connect_to_wordpress_db27%
get_default_all_time_stat_value30%
run31%
delete_transient33%
close_db_connection33%
write_blocklog_row33%
update_waf35%
update_waf_after_plugin_upgrade38%
initialize42%
write_daily_summary_row44%
write_all_time_block_count_row50%
get_ip_allow_list_enabled_option_name66%
get_ip_block_list_enabled_option_name66%
default_option_waf_automatic_rules66%
default_option_waf_ip_block_list_enabled66%
is_enabled66%
dec_var66%
initialize_filesystem66%
automatic_rules_available69%
initialize_waf_directory71%
locate_autoloader_file72%
generate_rules75%
deactivate75%
utf8_to_unicode77%
generate_ip_rules78%
get_local_host80%
initialize_filesystem80%
get_url81%
is_supported_environment81%
generate_automatic_rules84%
log_failed_attempt85%
get_ip_by_header85%
is_allowed_mode85%
default_option_waf_ip_allow_list_enabled87%
meta88%
migrate_brute_force_protection_ip_allow_list88%

Project Risks

Method Coverage Complexity CRAP
save_allow_list0.0%18342
ip_is_allowed0.0%14210
update_waf35.7%25191
display_page0.0%11132
protect_call0.0%11132
math_authenticate0.0%10110
render_and_die0.0%990
send_recovery_email0.0%990
kill_login0.0%990
block0.0%990
format_allow_list0.0%872
maybe_update_headers0.0%872
get_protect_key0.0%872
check_login_ability0.0%872
match_targets0.0%872
maybe_display_security_warning0.0%756
get_global_stats0.0%756
add_args_to_login_post_url0.0%642
add_args_to_login_url0.0%642
is_blocked_user_valid0.0%642
jp_purge_transients0.0%642
check_for_updates0.0%642
is_ip_in_array0.0%642
update_waf_after_plugin_upgrade38.9%1032
add_args_to_lostpassword_redirect_url0.0%530
add_args_to_lostpassword_url0.0%530
process_generate_math_page0.0%530
check_preauth0.0%530
is_current_ip_allowed0.0%530
check_api_key0.0%530
mode0.0%530
define_share_data0.0%530
meta88.4%2829
check_valid_blocked_user0.0%420
is_valid_protect_recovery_key0.0%420
protect_die0.0%420
math_form0.0%420
on_activation0.0%420
deactivate_plugin0.0%420
has_login_ability0.0%420
initialize15.4%520
fetch_global_stats_from_api0.0%420
get_default_all_time_stat_value30.0%618
get_url81.8%1617
run31.2%617
get_daily_summary25.0%515
process_recovery_email0.0%312
__construct0.0%312
get_local_allow_list0.0%312
create_ip_object0.0%312
__construct0.0%312
initialize42.9%612
on_deactivation0.0%312
maybe_get_protect_key0.0%312
get_active_plugins0.0%312
get_headers0.0%312
set_transient0.0%312
get_transient0.0%312
default_option_waf_ip_allow_list0.0%312
set_body_processor0.0%312
locate_autoloader_file72.2%1012
connect_to_wordpress_db27.3%410
get_all_time_block_count_value25.0%410
generate_rules75.0%910
utf8_to_unicode77.3%99
log_failed_attempt85.7%88
write_blocklog_row33.3%48
is_supported_environment81.8%88
automatic_rules_available69.2%67
instance0.0%26
instance0.0%26
generate_math_page0.0%26
get_global_allow_list0.0%26
jp_purge_transients_activation0.0%26
instance0.0%26
enable0.0%26
disable0.0%26
prepare_jetpack_protect_multisite_notice0.0%26
ajax_dismiss_handler0.0%26
admin_jetpack_manage_notice0.0%26
log_successful_login0.0%26
get_cached_status0.0%26
block_with_math0.0%26
check_use_math0.0%26
get_main_blog_id0.0%26
get_main_blog_jetpack_id0.0%26
get_local_host80.0%66
default_option_waf_needs_update0.0%26
filter_option_waf_ip_allow_list0.0%26
register_rest_routes0.0%26
waf_permissions_callback0.0%26
instance0.0%26
get_thirty_days_block_counts0.0%26
get_all_time_block_count0.0%26
get_request_headers0.0%26
setup0.0%26
teardown0.0%26
generate_rules0.0%26
define_brute_force_api_host0.0%26
remove_module_on_unsupported_environments0.0%26
pm0.0%26
get_multi_string_matcher0.0%26
get_body0.0%26
schedule_rules_cron0.0%26
update_rules_cron0.0%26
reactivate_on_rules_option_change0.0%26
generate_automatic_rules84.6%66
is_ip_allowed_for_recovery0.0%26
allow_login_or_prompt_recovery0.0%26
is_global_stats_cache_expired0.0%26
should_use_global_stats_cache0.0%26
sql_hex_decode0.0%26
delete_transient33.3%35
get_ip_by_header85.7%55
generate_ip_rules78.9%55
migrate_brute_force_protection_ip_allow_list88.9%44
default_option_waf_ip_allow_list_enabled87.5%44
write_daily_summary_row44.4%34
write_all_time_block_count_row50.0%34
initialize_waf_directory71.4%44
close_db_connection33.3%23
initialize_filesystem80.0%33
deactivate75.0%33
get_ip_allow_list_enabled_option_name66.7%22
get_ip_block_list_enabled_option_name66.7%22
default_option_waf_automatic_rules66.7%22
default_option_waf_ip_block_list_enabled66.7%22
is_allowed_mode85.7%22
is_enabled66.7%22
dec_var66.7%22
initialize_filesystem66.7%22