Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\Browser0%
NewfoldLabs\WP\Module\Performance\NFD_WPCLI0%
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\RestApi\RestApi0%
NewfoldLabs\WP\Module\Performance\Images\WPCLI\ImageCommandHandler0%
NewfoldLabs\WP\Module\Performance\JetpackBoost\JetpackBoost0%
NewfoldLabs\WP\Module\Performance\LinkPrefetch\LinkPrefetch0%
NewfoldLabs\WP\Module\Performance\LinkPrefetch\WPCLI\LinkPrefetchCommandHandler0%
NewfoldLabs\WP\Module\Performance\OptionListener0%
NewfoldLabs\WP\Module\Performance\Images\ImageManager0%
NewfoldLabs\WP\Module\Performance\Performance0%
NewfoldLabs\WP\Module\Performance\PerformanceFeature0%
NewfoldLabs\WP\Module\Performance\PerformanceWPCLI0%
NewfoldLabs\WP\Module\Performance\Permissions0%
NewfoldLabs\WP\Module\Performance\RestApi\CacheController0%
NewfoldLabs\WP\Module\Performance\RestApi\JetpackController0%
NewfoldLabs\WP\Module\Performance\RestApi\LinkPrefetchController0%
NewfoldLabs\WP\Module\Performance\RestApi\RestApi0%
NewfoldLabs\WP\Module\Performance\RestApi\Skip404Controller0%
NewfoldLabs\WP\Module\Performance\Services\EventService0%
NewfoldLabs\WP\Module\Performance\Services\I18nService0%
NewfoldLabs\WP\Module\Performance\Images\ImageOptimizedMarker0%
NewfoldLabs\WP\Module\Performance\Images\ImageLimitBanner0%
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\ResponseHeaderManager0%
NewfoldLabs\WP\Module\Performance\Cache\Types\File0%
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\Skip4040%
NewfoldLabs\WP\Module\Performance\Cache\Cache0%
NewfoldLabs\WP\Module\Performance\Cache\CacheExclusion0%
NewfoldLabs\WP\Module\Performance\Cache\CacheFeatureHooks0%
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\Nginx0%
NewfoldLabs\WP\Module\Performance\Images\ImageLazyLoader0%
NewfoldLabs\WP\Module\Performance\Cache\Types\Sitelock0%
NewfoldLabs\WP\Module\Performance\Cache\Types\WPCLI\CacheTypesCommandHandler0%
NewfoldLabs\WP\Module\Performance\Cloudflare\CloudflareFeaturesManager0%
NewfoldLabs\WP\Module\Performance\Data\Constants0%
NewfoldLabs\WP\Module\Performance\Data\Events0%
NewfoldLabs\WP\Module\Performance\Fonts\FontManager0%
NewfoldLabs\WP\Module\Performance\Fonts\FontSettings0%
NewfoldLabs\WP\Module\Performance\HealthChecks0%
NewfoldLabs\WP\Module\Performance\HealthChecks\HealthCheck0%
NewfoldLabs\WP\Module\Performance\HealthChecks\PermalinksHealthCheck0%
NewfoldLabs\WP\Module\Performance\Images\ImageBulkOptimizer0%
NewfoldLabs\WP\Module\Performance\Skip404\Skip4040%

Project Risks

Class CRAP
NewfoldLabs\WP\Module\Performance\Images\ImageSettings4422
NewfoldLabs\WP\Module\Performance\Cache\Types\File3660
NewfoldLabs\WP\Module\Performance\Images\ImageService2652
NewfoldLabs\WP\Module\Performance\Cache\CachePurgingService2070
NewfoldLabs\WP\Module\Performance\Performance992
NewfoldLabs\WP\Module\Performance\Images\WPCLI\ImageCommandHandler756
NewfoldLabs\WP\Module\Performance\Images\ImageLazyLoader702
NewfoldLabs\WP\Module\Performance\Images\ImageManager462
NewfoldLabs\WP\Module\Performance\Cache\Types\Browser420
NewfoldLabs\WP\Module\Performance\NFD_WPCLI420
NewfoldLabs\WP\Module\Performance\Fonts\FontSettings380
NewfoldLabs\WP\Module\Performance\LinkPrefetch\LinkPrefetch380
NewfoldLabs\WP\Module\Performance\LinkPrefetch\WPCLI\LinkPrefetchCommandHandler342
NewfoldLabs\WP\Module\Performance\JetpackBoost\JetpackBoost306
NewfoldLabs\WP\Module\Performance\Cache\Types\Cloudflare306
NewfoldLabs\WP\Module\Performance\Skip404\Skip404240
NewfoldLabs\WP\Module\Performance\Cloudflare\CloudflareFeaturesManager240
NewfoldLabs\WP\Module\Performance\RestApi\JetpackController182
NewfoldLabs\WP\Module\Performance\Services\EventService182
NewfoldLabs\WP\Module\Performance\Cache\ResponseHeaderManager156
NewfoldLabs\WP\Module\Performance\RestApi\Skip404Controller156
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\ResponseHeaderManager156
NewfoldLabs\WP\Module\Performance\Images\ImageUploadListener132
NewfoldLabs\WP\Module\Performance\Cache\Types\WPCLI\CacheTypesCommandHandler132
NewfoldLabs\WP\Module\Performance\Permissions110
NewfoldLabs\WP\Module\Performance\Images\ImageRewriteHandler110
NewfoldLabs\WP\Module\Performance\Cache\Types\Sitelock110
NewfoldLabs\WP\Module\Performance\Images\RestApi\ImagesController90
NewfoldLabs\WP\Module\Performance\Cache\CacheFeatureHooks90
NewfoldLabs\WP\Module\Performance\Cache\CacheManager90
NewfoldLabs\WP\Module\Performance\Cache\Cache56
NewfoldLabs\WP\Module\Performance\RestApi\CacheController56
NewfoldLabs\WP\Module\Performance\Images\ImageOptimizedMarker42
NewfoldLabs\WP\Module\Performance\Services\I18nService42
NewfoldLabs\WP\Module\Performance\Images\ImageLimitBanner42
NewfoldLabs\WP\Module\Performance\HealthChecks42
NewfoldLabs\WP\Module\Performance\Cache\Types\Nginx42
NewfoldLabs\WP\Module\Performance\RestApi\LinkPrefetchController30
NewfoldLabs\WP\Module\Performance\Images\ImageBulkOptimizer30
NewfoldLabs\WP\Module\Performance\HealthChecks\HealthCheck30
NewfoldLabs\WP\Module\Performance\OptionListener30
NewfoldLabs\WP\Module\Performance\BurstSafetyMode\Browser20
NewfoldLabs\WP\Module\Performance\Data\Constants20
NewfoldLabs\WP\Module\Performance\RestApi\RestApi12
NewfoldLabs\WP\Module\Performance\PerformanceWPCLI12
NewfoldLabs\WP\Module\Performance\Images\RestApi\RestApi12
NewfoldLabs\WP\Module\Performance\PerformanceFeature6

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
register_routes0%
webp_preference0%
auto_delete0%
auto_optimize0%
lazy_loading0%
bulk_optimization0%
__construct0%
__construct0%
toggle_setting0%
optimize_image0%
register_routes0%
__construct0%
process_attachment_metadata0%
handle_media_upload0%
track_wp_image_resizes0%
all0%
set_nested_value0%
__construct0%
get_current_settings0%
update_single_setting0%
update_settings0%
get_settings0%
add_defer0%
enqueue_scripts0%
add_to_runtime0%
__construct0%
set_all_values0%
handle_jetpack_boost_default_values0%
prefetch_jetpack_boost0%
is_jetpackpremium_active0%
add_to_runtime0%
__construct0%
validate_status0%
register_hooks0%
is_cloudflare_mirage_enabled0%
active_desktop0%
optimize_image0%
register_webp_as_new_media0%
replace_original_with_webp0%
get_response_message0%
save_file0%
generate_webp_file_path0%
ban_site0%
__construct0%
get_monthly_usage_limit0%
on_image_setting_change0%
on_deactivation0%
on_activation0%
remove_rules0%
add_existing_image_rule0%
add_missing_image_rule0%
delete_original_file0%
get_default_settings0%
is_cloudflare_polish_enabled0%
is_lazy_loading_enabled0%
update0%
get0%
get_monthly_usage0%
is_banned0%
is_webp_preference_enabled0%
is_bulk_optimization_enabled0%
is_auto_delete_enabled0%
__construct0%
is_auto_optimization_enabled0%
is_optimization_enabled0%
maybe_refresh_with_capabilities0%
sanitize_settings0%
initialize_settings0%
register_settings0%
validate_status0%
active_mobile0%
add_media_library_data_attribute0%
get_settings0%
send0%
set_options0%
register_routes0%
register_routes0%
__construct0%
update_settings0%
register_routes0%
validate_action0%
regenerate_critical_css0%
set_options0%
register_routes0%
purge_all0%
update_settings0%
get_settings0%
validate_category0%
validate0%
rest_can_optimize_images0%
get_value0%
on_deactivation0%
on_activation0%
remove_rules0%
add_rules0%
maybe_add_rules0%
on_update_htaccess0%
is_active0%
__construct0%
handle_actions_on_plugins_loaded0%
__construct0%
load_js_translations0%
load_php_translations0%
prepare_and_load_js_translations0%
load_text_domain0%
register_routes0%
can_edit_posts0%
instant_click0%
register_commands0%
onAdd0%
__construct0%
is_executing_wp_cli0%
success0%
error0%
warning0%
add_command0%
onDelete0%
validate_required_string0%
__construct0%
ignore_keywords0%
mobile_behavior0%
hover_delay0%
behavior0%
onUpdate0%
__construct0%
can_manage_media_library0%
initialize_performance_app0%
rest_can_upload_media0%
is_authorized_admin0%
rest_is_authorized_admin0%
__construct0%
initialize0%
register_performance_assets0%
render_performance_app0%
configureContainer0%
add_nfd_subnav0%
add_management_page0%
admin_bar_menu0%
nfd_as_cleanup_batch_size0%
nfd_asr_default0%
remove_epc_settings0%
hooks0%
__construct0%
enqueue_marker_assets0%
addRules0%
set_headers0%
removeRules0%
maybeAddRules0%
exclusionChange0%
on_rewrite0%
__construct0%
should_enable0%
remove_all_headers0%
getFileTypeExpirations0%
remove_header0%
add_headers0%
add_header0%
parse_headers0%
__construct0%
is_public_taxonomy0%
addRules0%
on_activation0%
on_update_comment0%
purge_all0%
on_rewrite0%
exclusionChange0%
__construct0%
should_enable0%
purgeRequest0%
purge_url0%
getCloudflareTier0%
on_deactivation0%
isCoudflareEnabled0%
should_enable0%
__construct0%
getContainer0%
setContainer0%
should_enable0%
on_update_option0%
on_edit_term0%
addRules0%
__construct0%
on_cache_level_change0%
on_rewrite0%
hooks0%
__construct0%
removeRules0%
addRules0%
set_headers0%
__construct0%
remove_all_headers0%
remove_header0%
add_headers0%
add_header0%
parse_headers0%
__construct0%
add_to_runtime0%
add_to_runtime0%
on_save_post0%
enabled_cache_types0%
purge_url0%
purge_all0%
manual_purge_request0%
can_purge0%
__construct0%
get_instances0%
registered_cache_types0%
__construct0%
classMap0%
__construct0%
on_cache_level_change0%
on_deactivation0%
on_activation0%
hooks0%
plugin_hooks0%
maybeAddRules0%
removeRules0%
is_enqueue_allowed0%
__construct0%
enqueue_lazy_loader0%
apply_lazy_loading_to_blocks0%
__construct0%
get_inline_script0%
enqueue_bulk_optimizer_script0%
is_enqueue_allowed0%
test0%
clean_content0%
__construct0%
register_health_check0%
test0%
add_health_checks0%
add_hooks0%
__construct0%
get_inline_script0%
apply_lazy_loading0%
maybe_refresh_with_capabilities0%
maybe_initialize_lazy_loader0%
__construct0%
maybe_initialize_image_limit_banner0%
maybe_initialize_image_rewrite_handler0%
maybe_initialize_marker0%
maybe_initialize_rest_api0%
maybe_initialize_bulk_optimizer0%
initialize_upload_listener0%
__construct0%
initialize_services0%
initialize_settings0%
__construct0%
display_ban_banner0%
display_rate_limit_banner0%
display_admin_banner0%
is_cloudflare_fonts_enabled0%
sanitize_settings0%
maybeGeneratePageCache0%
getStoragePathForRequest0%
purgeRequest0%
purge_url0%
purge_all0%
on_deactivation0%
on_activation0%
getStorageFileForRequest0%
purge_url0%
purge_all0%
purge_all0%
getExpirationTimeframe0%
exclusions0%
shouldCache0%
isCacheable0%
write0%
should_enable0%
purge_url0%
initialize_settings0%
__construct0%
register_settings0%
__construct0%
initialize_settings0%
__construct0%
get_category0%
get_valid_actions0%
update_htaccess_header0%
validate_cache_level0%
on_site_capabilities_change0%
on_fonts_optimization_change0%
on_image_optimization_change0%
__construct0%
exclude0%
skip_4040%
level0%
add_to_runtime0%

Project Risks

Method CRAP
maybe_refresh_with_capabilities420
isCacheable420
optimize_image342
sanitize_settings306
apply_lazy_loading210
replace_original_with_webp182
set_options132
on_save_post110
update_htaccess_header110
maybe_refresh_with_capabilities90
on_update_option90
set_options72
get72
add_to_runtime56
shouldCache56
manual_purge_request42
get_current_settings42
__construct42
add_command42
getCloudflareTier42
optimize_image42
get_monthly_usage_limit42
hooks42
register_commands30
getFileTypeExpirations30
configureContainer30
purge_all30
admin_bar_menu30
write30
validate30
addRules30
handle_jetpack_boost_default_values20
skip_40420
__construct20
register_health_check20
purge_url20
maybe_initialize_image_rewrite_handler20
purgeRequest20
parse_headers20
getExpirationTimeframe20
maybeAddRules20
handle_media_upload20
purgeRequest20
set_nested_value20
__construct20
parse_headers20
on_update_comment20
toggle_setting20
update_settings20
regenerate_critical_css20
on_image_setting_change20
clean_content20
addRules12
get_monthly_usage12
get_default_settings12
initialize_settings12
validate_status12
register_hooks12
set_all_values12
validate_status12
is_jetpackpremium_active12
add_defer12
behavior12
hover_delay12
mobile_behavior12
validate_required_string12
__construct12
update_settings12
send12
validate_category12
on_update_htaccess12
get_response_message12
save_file12
purge_url12
apply_lazy_loading_to_blocks12
purge_url12
add_health_checks12
purge_all12
can_purge12
validate_cache_level12
get_instances12
is_public_taxonomy12
enabled_cache_types12
__construct12
on_cache_level_change12
set_headers12
display_admin_banner12
maybe_initialize_lazy_loader12
maybe_initialize_bulk_optimizer12
maybeGeneratePageCache12
on_cache_level_change12
maybe_initialize_image_limit_banner12
set_headers12
sanitize_settings12
should_enable6
remove_epc_settings6
nfd_as_cleanup_batch_size6
on_edit_term6
register_performance_assets6
onUpdate6
rest_can_optimize_images6
initialize6
rest_is_authorized_admin6
is_authorized_admin6
rest_can_upload_media6
maybeAddRules6
__construct6
register_routes6
__construct6
validate_action6
load_php_translations6
is_active6
is_executing_wp_cli6
generate_webp_file_path6
purge_all6
auto_optimize6
register_webp_as_new_media6
delete_original_file6
enqueue_marker_assets6
maybe_initialize_marker6
maybe_initialize_rest_api6
enqueue_lazy_loader6
process_attachment_metadata6
register_routes6
__construct6
register_routes6
bulk_optimization6
lazy_loading6
auto_delete6
purge_url6
webp_preference6
all6
enqueue_bulk_optimizer_script6
__construct6
initialize_settings6
prefetch_jetpack_boost6
on_site_capabilities_change6
exclude6
level6
getStoragePathForRequest6
add_media_library_data_attribute6
should_enable6
ignore_keywords6
maybe_add_rules6