Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\Browser0%
NewfoldLabs\WP\Module\Performance\Images\RestApi\RestApi0%
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\ResponseHeaderManager0%
NewfoldLabs\WP\Module\Performance\Images\Fragments\ExistingImageRedirectFragment0%
NewfoldLabs\WP\Module\Performance\Images\Fragments\MissingImageRedirectFragment0%
NewfoldLabs\WP\Module\Performance\Images\ImageBulkOptimizer0%
NewfoldLabs\WP\Module\Performance\Images\ImageLimitBanner0%
NewfoldLabs\WP\Module\Performance\Images\ImageManager0%
NewfoldLabs\WP\Module\Performance\Images\ImageOptimizedMarker0%
NewfoldLabs\WP\Module\Performance\Images\ImageRewriteHandler0%
NewfoldLabs\WP\Module\Performance\Images\ImageService0%
NewfoldLabs\WP\Module\Performance\Images\ImageSettings0%
NewfoldLabs\WP\Module\Performance\Images\ImageUploadListener0%
NewfoldLabs\WP\Module\Performance\Images\RestApi\ImagesController0%
NewfoldLabs\WP\Module\Performance\Images\WPCLI\ImageCommandHandler0%
NewfoldLabs\WP\Module\Performance\Helpers\RedisCredentialsProvisioner0%
NewfoldLabs\WP\Module\Performance\JetpackBoost\JetpackBoost0%
NewfoldLabs\WP\Module\Performance\LinkPrefetch\LinkPrefetch0%
NewfoldLabs\WP\Module\Performance\LinkPrefetch\WPCLI\LinkPrefetchCommandHandler0%
NewfoldLabs\WP\Module\Performance\NFD_WPCLI0%
NewfoldLabs\WP\Module\Performance\OptionListener0%
NewfoldLabs\WP\Module\Performance\Performance0%
NewfoldLabs\WP\Module\Performance\PerformanceFeature0%
NewfoldLabs\WP\Module\Performance\PerformanceLifecycleHooks0%
NewfoldLabs\WP\Module\Performance\PerformanceWPCLI0%
NewfoldLabs\WP\Module\Performance\Services\EventService0%
NewfoldLabs\WP\Module\Performance\Services\I18nService0%
NewfoldLabs\WP\Module\Performance\Skip404\Fragments\Skip404Fragment0%
NewfoldLabs\WP\Module\Performance\Helpers\RedisEnv0%
NewfoldLabs\WP\Module\Performance\Helpers\SiteApisConfig0%
NewfoldLabs\WP\Module\Performance\Helpers\HostingUapiClient0%
NewfoldLabs\WP\Module\Performance\Cache\Types\Nginx0%
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\Skip4040%
NewfoldLabs\WP\Module\Performance\Cache\Cache0%
NewfoldLabs\WP\Module\Performance\Cache\CacheManager0%
NewfoldLabs\WP\Module\Performance\Cache\CachePurgingService0%
NewfoldLabs\WP\Module\Performance\Cache\ResponseHeaderManager0%
NewfoldLabs\WP\Module\Performance\Cache\Types\Browser0%
NewfoldLabs\WP\Module\Performance\Cache\Types\CacheBase0%
NewfoldLabs\WP\Module\Performance\Cache\Types\Cloudflare0%
NewfoldLabs\WP\Module\Performance\Cache\Types\File0%
NewfoldLabs\WP\Module\Performance\Cache\Types\Fragments\BrowserCacheFragment0%
NewfoldLabs\WP\Module\Performance\Helpers\HiiveHelper0%
NewfoldLabs\WP\Module\Performance\Cache\Types\Fragments\FileCacheFragment0%
NewfoldLabs\WP\Module\Performance\Cache\Types\PhpRedisPinger0%
NewfoldLabs\WP\Module\Performance\Data\Events0%
NewfoldLabs\WP\Module\Performance\HealthChecks\PermalinksHealthCheck0%
NewfoldLabs\WP\Module\Performance\HealthChecks\HealthCheck0%
NewfoldLabs\WP\Module\Performance\HealthChecks0%
NewfoldLabs\WP\Module\Performance\Fonts\FontManager0%
NewfoldLabs\WP\Module\Performance\Fonts\FontSettings0%
NewfoldLabs\WP\Module\Performance\Data\Constants0%
NewfoldLabs\WP\Module\Performance\Cloudflare\Fragments\CloudflareOptimizationHeaderFragment0%
NewfoldLabs\WP\Module\Performance\Cloudflare\CloudflareFeaturesManager0%
NewfoldLabs\WP\Module\Performance\Cache\Types\WPCLI\CacheTypesCommandHandler0%
NewfoldLabs\WP\Module\Performance\Cache\Types\Sitelock0%
NewfoldLabs\WP\Module\Performance\Skip404\Skip4040%
NewfoldLabs\WP\Module\Performance\Cache\Types\ObjectCache6%
NewfoldLabs\WP\Module\Performance\RestApi\Skip404Controller16%
NewfoldLabs\WP\Module\Performance\Images\ImageLazyLoader22%
NewfoldLabs\WP\Module\Performance\RestApi\JetpackController23%
NewfoldLabs\WP\Module\Performance\Permissions33%
NewfoldLabs\WP\Module\Performance\Cache\CacheExclusion40%
NewfoldLabs\WP\Module\Performance\RestApi\LinkPrefetchController41%
NewfoldLabs\WP\Module\Performance\RestApi\CacheController56%
NewfoldLabs\WP\Module\Performance\Cache\Types\ObjectCachePreflight79%

Project Risks

Class CRAP
NewfoldLabs\WP\Module\Performance\Cache\Types\ObjectCache24005
NewfoldLabs\WP\Module\Performance\Cache\Types\PhpRedisPinger4970
NewfoldLabs\WP\Module\Performance\Images\ImageSettings4422
NewfoldLabs\WP\Module\Performance\Cache\Types\File3906
NewfoldLabs\WP\Module\Performance\Images\ImageService2652
NewfoldLabs\WP\Module\Performance\Cache\CachePurgingService2162
NewfoldLabs\WP\Module\Performance\Performance1640
NewfoldLabs\WP\Module\Performance\Images\WPCLI\ImageCommandHandler756
NewfoldLabs\WP\Module\Performance\PerformanceLifecycleHooks702
NewfoldLabs\WP\Module\Performance\Images\ImageManager462
NewfoldLabs\WP\Module\Performance\Skip404\Skip404420
NewfoldLabs\WP\Module\Performance\NFD_WPCLI420
NewfoldLabs\WP\Module\Performance\Fonts\FontSettings380
NewfoldLabs\WP\Module\Performance\LinkPrefetch\LinkPrefetch380
NewfoldLabs\WP\Module\Performance\Helpers\HostingUapiClient380
NewfoldLabs\WP\Module\Performance\JetpackBoost\JetpackBoost342
NewfoldLabs\WP\Module\Performance\Cache\Types\Browser342
NewfoldLabs\WP\Module\Performance\LinkPrefetch\WPCLI\LinkPrefetchCommandHandler342
NewfoldLabs\WP\Module\Performance\Cache\Types\Cloudflare306
NewfoldLabs\WP\Module\Performance\Images\ImageLazyLoader203
NewfoldLabs\WP\Module\Performance\Services\EventService182
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\ResponseHeaderManager156
NewfoldLabs\WP\Module\Performance\Images\ImageRewriteHandler156
NewfoldLabs\WP\Module\Performance\Cache\ResponseHeaderManager156
NewfoldLabs\WP\Module\Performance\Cloudflare\CloudflareFeaturesManager156
NewfoldLabs\WP\Module\Performance\Helpers\HiiveHelper132
NewfoldLabs\WP\Module\Performance\Images\ImageUploadListener132
NewfoldLabs\WP\Module\Performance\Cache\Types\WPCLI\CacheTypesCommandHandler132
NewfoldLabs\WP\Module\Performance\Cache\Types\Fragments\BrowserCacheFragment110
NewfoldLabs\WP\Module\Performance\Cache\Types\Sitelock110
NewfoldLabs\WP\Module\Performance\Helpers\RedisCredentialsProvisioner110
NewfoldLabs\WP\Module\Performance\RestApi\Skip404Controller95
NewfoldLabs\WP\Module\Performance\Cache\CacheManager90
NewfoldLabs\WP\Module\Performance\Images\RestApi\ImagesController90
NewfoldLabs\WP\Module\Performance\Helpers\RedisEnv90
NewfoldLabs\WP\Module\Performance\RestApi\JetpackController88
NewfoldLabs\WP\Module\Performance\Cache\Types\Fragments\FileCacheFragment72
NewfoldLabs\WP\Module\Performance\Cache\Cache56
NewfoldLabs\WP\Module\Performance\RestApi\CacheController44
NewfoldLabs\WP\Module\Performance\Images\ImageOptimizedMarker42
NewfoldLabs\WP\Module\Performance\Images\ImageLimitBanner42
NewfoldLabs\WP\Module\Performance\Services\I18nService42
NewfoldLabs\WP\Module\Performance\HealthChecks42
NewfoldLabs\WP\Module\Performance\Cache\Types\Nginx42
NewfoldLabs\WP\Module\Performance\Permissions39
NewfoldLabs\WP\Module\Performance\OptionListener30
NewfoldLabs\WP\Module\Performance\HealthChecks\HealthCheck30
NewfoldLabs\WP\Module\Performance\Images\ImageBulkOptimizer30
NewfoldLabs\WP\Module\Performance\Data\Constants20
NewfoldLabs\WP\Module\Performance\Helpers\SiteApisConfig20
NewfoldLabs\WP\Module\Performance\PerformanceWPCLI12
NewfoldLabs\WP\Module\Performance\Images\RestApi\RestApi12
NewfoldLabs\WP\Module\Performance\Cache\Types\ObjectCachePreflight10
NewfoldLabs\WP\Module\Performance\RestApi\LinkPrefetchController9
NewfoldLabs\WP\Module\Performance\PerformanceFeature6

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
is_auto_optimization_enabled0%
update0%
get0%
get_monthly_usage0%
is_banned0%
is_webp_preference_enabled0%
is_bulk_optimization_enabled0%
is_lazy_loading_enabled0%
is_auto_delete_enabled0%
is_optimization_enabled0%
is_cloudflare_mirage_enabled0%
maybe_refresh_with_capabilities0%
sanitize_settings0%
initialize_settings0%
register_settings0%
__construct0%
get_default_settings0%
get_monthly_usage_limit0%
delete_original_file0%
register_webp_as_new_media0%
is_cloudflare_polish_enabled0%
__construct0%
get_response_message0%
lazy_loading0%
__construct0%
validate_status0%
set_all_values0%
set_nested_value0%
toggle_setting0%
all0%
webp_preference0%
auto_delete0%
auto_optimize0%
bulk_optimization0%
register_hooks0%
__construct0%
register_routes0%
__construct0%
optimize_image0%
register_routes0%
__construct0%
process_attachment_metadata0%
handle_media_upload0%
track_wp_image_resizes0%
replace_original_with_webp0%
save_file0%
is_jetpackpremium_active0%
get_inline_script0%
__construct0%
display_ban_banner0%
display_rate_limit_banner0%
display_admin_banner0%
__construct0%
clean_content0%
get_inline_script0%
enqueue_lazy_loader0%
apply_lazy_loading_to_blocks0%
enqueue_bulk_optimizer_script0%
initialize_services0%
is_enqueue_allowed0%
__construct0%
patches0%
render0%
is_enabled0%
exclusive0%
priority0%
id0%
__construct0%
initialize_settings0%
initialize_upload_listener0%
generate_webp_file_path0%
add_missing_image_rule0%
ban_site0%
optimize_image0%
__construct0%
apply_rules_from_option0%
on_image_setting_change0%
on_deactivation0%
on_activation0%
remove_rules0%
add_existing_image_rule0%
__construct0%
maybe_initialize_lazy_loader0%
add_media_library_data_attribute0%
enqueue_marker_assets0%
is_enqueue_allowed0%
__construct0%
maybe_initialize_image_limit_banner0%
maybe_initialize_image_rewrite_handler0%
maybe_initialize_marker0%
maybe_initialize_rest_api0%
maybe_initialize_bulk_optimizer0%
add_to_runtime0%
prefetch_jetpack_boost0%
addRules0%
can_edit_posts0%
set_options0%
update_settings0%
get_settings0%
regenerate_critical_css0%
set_options0%
purge_all0%
get_settings0%
rest_can_optimize_images0%
can_manage_media_library0%
validate_category0%
is_authorized_admin0%
__construct0%
nfd_sync_epc_from_brand0%
nfd_force_disable_epc_options0%
get_response_header_manager0%
on_cache_level_change0%
on_deactivation0%
purge_object_cache_on_shutdown0%
clear_plugin_cache_on_shutdown0%
send0%
validate_action0%
on_activation0%
render0%
add_to_runtime0%
remove_rules0%
add_rules0%
maybe_add_rules0%
on_update_htaccess0%
get_value0%
is_active0%
__construct0%
patches0%
is_enabled0%
validate0%
exclusive0%
priority0%
id0%
__construct0%
load_js_translations0%
load_php_translations0%
prepare_and_load_js_translations0%
load_text_domain0%
__construct0%
delete_plugin_list_option_cache0%
hooks0%
handle_jetpack_boost_default_values0%
active_mobile0%
register_commands0%
add_command0%
validate_required_string0%
__construct0%
ignore_keywords0%
mobile_behavior0%
hover_delay0%
behavior0%
instant_click0%
active_desktop0%
error0%
validate_status0%
update_single_setting0%
update_settings0%
get_settings0%
add_defer0%
enqueue_scripts0%
add_to_runtime0%
get_current_settings0%
__construct0%
warning0%
success0%
plugin_hooks0%
admin_bar_menu0%
__construct0%
initialize0%
handle_performance_redirect0%
initialize_lazy_loader0%
register_performance_assets0%
initialize_performance_app0%
add_nfd_subnav0%
tools_performance0%
add_management_page0%
nfd_as_cleanup_batch_size0%
is_executing_wp_cli0%
nfd_asr_default0%
remove_epc_settings0%
hooks0%
configureContainer0%
__construct0%
onDelete0%
onUpdate0%
onAdd0%
__construct0%
patches0%
render0%
is_enabled0%
purge_all0%
addRules0%
maybeAddRules0%
on_rewrite0%
exclusionChange0%
__construct0%
should_enable0%
purgeRequest0%
purge_url0%
getCloudflareTier0%
maybeGeneratePageCache0%
isCoudflareEnabled0%
should_enable0%
__construct0%
getContainer0%
setContainer0%
should_enable0%
on_deactivation0%
on_activation0%
getFileTypeExpirations0%
removeRules0%
write0%
removeRules0%
id0%
exclusive0%
priority0%
id0%
__construct0%
patches0%
render0%
is_enabled0%
exclusive0%
priority0%
__construct0%
isCacheable0%
on_deactivation0%
on_activation0%
getStorageFileForRequest0%
getStoragePathForRequest0%
purge_url0%
purge_all0%
getExpirationTimeframe0%
exclusions0%
shouldCache0%
addRules0%
maybeAddRules0%
render0%
removeRules0%
classMap0%
__construct0%
add_to_runtime0%
__construct0%
add_to_runtime0%
on_cache_level_change0%
on_rewrite0%
hooks0%
__construct0%
addRules0%
enabled_cache_types0%
__construct0%
set_headers0%
remove_all_headers0%
remove_header0%
add_headers0%
add_header0%
parse_headers0%
__construct0%
removeRules0%
registered_cache_types0%
get_instances0%
exclusionChange0%
__construct0%
on_rewrite0%
__construct0%
should_enable0%
set_headers0%
remove_all_headers0%
remove_header0%
add_headers0%
add_header0%
parse_headers0%
is_public_taxonomy0%
__construct0%
on_update_option0%
on_update_comment0%
on_edit_term0%
on_save_post0%
purge_url0%
purge_all0%
purge_page_caches0%
manual_purge_request0%
can_purge0%
is_enabled0%
patches0%
exclusive0%
render0%
register_settings0%
__construct0%
initialize_settings0%
__construct0%
get_category0%
get_valid_actions0%
__construct0%
patches0%
is_enabled0%
sanitize_settings0%
exclusive0%
priority0%
id0%
__construct0%
update_htaccess_header0%
on_site_capabilities_change0%
on_fonts_optimization_change0%
on_image_optimization_change0%
__construct0%
initialize_settings0%
maybe_refresh_with_capabilities0%
purge_all0%
extract_customer_error0%
priority0%
id0%
__construct0%
hosting_uapi_request_timeout_seconds0%
hiive_request_timeout_seconds0%
hosting_uapi_base_url0%
string_value0%
provision_enable_redis_via_hosting_api0%
snippet0%
put_site_performance_redis0%
is_cloudflare_fonts_enabled0%
send_request0%
__construct0%
test0%
__construct0%
register_health_check0%
test0%
add_health_checks0%
add_hooks0%
__construct0%
exclude0%
skip_4040%
level0%
get_dropin_source_url0%
map_wp_error_to_enable_result0%
parse_wp_config_redis_acl_password0%
parse_wp_config_scalar0%
get_wp_config_transformer_readonly0%
maybe_define_redis_constants_from_environment0%
bootstrap_redis_connection_constants_for_preflight0%
run_connectivity_preflight0%
default_local_dropin_path0%
maybe_restore_dropin0%
validate_cache_level0%
on_deactivation0%
disable0%
enable0%
get_state0%
constants_visible_this_request0%
bust_wp_config_cache0%
is_configured_in_wp_config0%
purgeRequest0%
purge_url0%
maybe_restore_on_activation0%
bootstrap_register0%
normalize_to_bool0%
remove_our_dropin_file_and_disable_preference0%
purge_url0%
purge_all0%
should_enable0%
redis_auth_secret_string0%
phpredis_auth0%
build_parameters_from_constants0%
normalize_ping_result0%
build_cluster_seeds0%
ping_single0%
ping_cluster0%
ping_shards0%
ping0%
flush_and_clear_on_shutdown0%
clear_options_object_cache0%
flush_object_cache0%
delete_dropin_file0%
delete_our_drop_in_file_if_ours0%
maybe_remove_dropin_if_unavailable30%
apply_lazy_loading39%
update_settings53%
reconcile_non_ours_dropin55%
is_available75%
snapshot79%
is_our_drop_in83%

Project Risks

Method CRAP
enable552
maybe_refresh_with_capabilities420
isCacheable420
optimize_image342
sanitize_settings306
bootstrap_redis_connection_constants_for_preflight210
ping_single182
replace_original_with_webp182
disable182
set_options132
ping_cluster110
provision_enable_redis_via_hosting_api110
on_save_post110
build_parameters_from_constants90
maybe_refresh_with_capabilities90
ping90
on_update_option90
string_value90
is_configured_in_wp_config90
normalize_ping_result72
put_site_performance_redis72
get72
parse_wp_config_scalar72
extract_customer_error72
parse_wp_config_redis_acl_password72
redis_auth_secret_string72
phpredis_auth72
set_options72
send_request72
add_to_runtime56
shouldCache56
__construct56
maybe_restore_dropin56
update_htaccess_header56
delete_our_drop_in_file_if_ours42
add_command42
get_wp_config_transformer_readonly42
manual_purge_request42
get_current_settings42
map_wp_error_to_enable_result42
get_monthly_usage_limit42
__construct42
getCloudflareTier42
optimize_image42
hooks42
update_settings37
register_commands30
flush_object_cache30
delete_dropin_file30
purge_all30
validate30
nfd_force_disable_epc_options30
write30
handle_jetpack_boost_default_values30
admin_bar_menu30
get_dropin_source_url30
configureContainer30
getFileTypeExpirations30
apply_lazy_loading22
toggle_setting20
purge_url20
handle_media_upload20
skip_40420
__construct20
register_health_check20
set_nested_value20
clean_content20
on_update_comment20
build_cluster_seeds20
render20
parse_headers20
maybe_initialize_image_rewrite_handler20
on_cache_level_change20
purgeRequest20
handle_performance_redirect20
maybeAddRules20
regenerate_critical_css20
register_performance_assets20
on_image_setting_change20
getExpirationTimeframe20
purgeRequest20
__construct20
get_state20
maybe_define_redis_constants_from_environment20
clear_options_object_cache20
flush_and_clear_on_shutdown20
parse_headers20
maybe_remove_dropin_if_unavailable18
reconcile_non_ours_dropin16
register_hooks12
get_response_message12
get_monthly_usage12
initialize_settings12
get_default_settings12
hover_delay12
set_all_values12
purge_object_cache_on_shutdown12
on_update_htaccess12
validate_category12
send12
update_settings12
__construct12
nfd_sync_epc_from_brand12
initialize_lazy_loader12
validate_status12
validate_required_string12
mobile_behavior12
behavior12
validate_status12
add_defer12
is_jetpackpremium_active12
save_file12
apply_lazy_loading_to_blocks12
purge_page_caches12
addRules12
__construct12
snippet12
validate_cache_level12
remove_our_dropin_file_and_disable_preference12
sanitize_settings12
set_headers12
is_public_taxonomy12
purge_url12
__construct12
can_purge12
run_connectivity_preflight12
set_headers12
addRules12
display_admin_banner12
maybe_initialize_lazy_loader12
maybe_initialize_bulk_optimizer12
get_instances12
constants_visible_this_request12
maybe_initialize_image_limit_banner12
enabled_cache_types12
maybeGeneratePageCache12
on_cache_level_change12
purge_url12
add_health_checks12
snapshot10
__construct6
generate_webp_file_path6
initialize6
should_enable6
plugin_hooks6
should_enable6
purge_url6
on_deactivation6
purge_all6
maybeAddRules6
remove_epc_settings6
is_authorized_admin6
rest_can_optimize_images6
on_edit_term6
__construct6
validate_action6
load_php_translations6
is_active6
maybe_add_rules6
nfd_as_cleanup_batch_size6
ignore_keywords6
getStoragePathForRequest6
auto_optimize6
add_media_library_data_attribute6
enqueue_marker_assets6
register_webp_as_new_media6
delete_original_file6
maybe_initialize_marker6
maybe_initialize_rest_api6
enqueue_lazy_loader6
enqueue_bulk_optimizer_script6
process_attachment_metadata6
register_routes6
hosting_uapi_base_url6
register_routes6
bulk_optimization6
lazy_loading6
auto_delete6
render6
webp_preference6
all6
__construct6
initialize_settings6
prefetch_jetpack_boost6
on_site_capabilities_change6
exclude6
level6
normalize_to_bool6
apply_rules_from_option6
is_executing_wp_cli6
onUpdate6
bootstrap_register6
is_our_drop_in4
is_available3