Classes

Coverage Distribution

Complexity

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
instance0%
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%
protect_die0%
render_recovery_form0%
render_recovery_success0%
get_html_blocked_login_message0%
get_html_recovery_form0%
display_page0%
instance0%
get_help_url0%
process_generate_math_page0%
skip_password_prompt_shake0%
get_global_allow_list0%
jp_purge_transients0%
jp_purge_transients_activation0%
on_activation0%
on_deactivation0%
enable0%
disable0%
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%
is_current_ip_allowed0%
has_login_ability0%
kill_login0%
check_use_math0%
get_main_blog_id0%
get_main_blog_jetpack_id0%
check_api_key0%
protect_call0%
run_compatibility_migrations0%
default_option_waf_needs_update0%
filter_option_waf_ip_allow_list0%
register_rest_routes0%
waf_permissions_callback0%
instance0%
get_help_url0%
get_blocklog_file_path0%
unserialize_option_value0%
get_daily_block_counts0%
has_blocked_requests0%
get_recent_blocks0%
get_request_headers0%
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%
errorHandler0%
match_targets0%
get_ip_hash0%
is_ip_allowed_for_recovery0%
allow_login_or_prompt_recovery0%
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%
run29%
on_main_site33%
mode35%
update_waf35%
connect_to_wordpress_db36%
block36%
update_waf_after_plugin_upgrade38%
initialize42%
math_authenticate43%
check_login_ability43%
get_daily_summary50%
get_all_time_block_count_value50%
get_default_all_time_stat_value53%
format_allow_list57%
default_option_waf_ip_allow_list62%
__construct66%
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%
save_allow_list68%
automatic_rules_available69%
teardown71%
initialize_waf_directory71%
ip_is_allowed73%
render_field75%
get_all_time_block_count75%
deactivate75%
locate_classmap_file75%
get_local_allow_list76%
utf8_to_unicode77%
generate_ip_rules78%
check_preauth80%
get_local_host80%
generate_rules80%
initialize_filesystem80%
math_form80%
get_url81%
is_supported_environment81%
generate_automatic_rules84%
send_recovery_email85%
log_failed_attempt85%
get_ip_by_header85%
__construct87%
default_option_waf_ip_allow_list_enabled87%
write_has_blocked_row87%
meta88%
migrate_brute_force_protection_ip_allow_list88%
write_blocklog_row88%

Project Risks

Method Coverage Complexity CRAP
update_waf35.7%25191
display_page0.0%11132
protect_call0.0%11132
render_and_die0.0%990
kill_login0.0%990
maybe_update_headers0.0%872
get_protect_key0.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
block36.8%1141
math_authenticate43.3%1238
save_allow_list68.2%2032
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
is_current_ip_allowed0.0%530
check_api_key0.0%530
define_share_data0.0%530
meta88.4%2829
run29.4%724
check_valid_blocked_user0.0%420
is_valid_protect_recovery_key0.0%420
protect_die0.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
check_login_ability43.8%819
get_url81.8%1617
initialize42.9%716
ip_is_allowed73.3%1316
process_recovery_email0.0%312
on_deactivation0.0%312
get_active_plugins0.0%312
set_body_processor0.0%312
get_default_all_time_stat_value53.3%711
mode35.5%511
send_recovery_email85.7%1010
locate_classmap_file75.0%910
generate_rules80.0%99
utf8_to_unicode77.3%99
format_allow_list57.1%68
log_failed_attempt85.7%88
connect_to_wordpress_db36.4%48
get_daily_summary50.0%58
is_supported_environment81.8%88
automatic_rules_available69.2%67
instance0.0%26
instance0.0%26
get_global_allow_list0.0%26
jp_purge_transients_activation0.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
check_use_math0.0%26
get_main_blog_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_all_time_block_count_value50.0%46
get_daily_block_counts0.0%26
get_recent_blocks0.0%26
get_request_headers0.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
on_main_site33.3%35
get_ip_by_header85.7%55
generate_ip_rules78.9%55
render_field75.0%44
math_form81.0%44
check_preauth80.0%44
migrate_brute_force_protection_ip_allow_list88.9%44
default_option_waf_ip_allow_list_enabled87.5%44
write_blocklog_row88.9%44
initialize_waf_directory71.4%44
__construct66.7%33
get_local_allow_list76.9%33
__construct87.5%33
default_option_waf_ip_allow_list62.5%33
write_has_blocked_row87.5%33
teardown71.4%33
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
get_all_time_block_count75.0%22
is_enabled66.7%22
dec_var66.7%22
initialize_filesystem66.7%22