Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
Automattic\Jetpack\My_Jetpack\Products\Starter0%
Automattic\Jetpack\My_Jetpack\Red_Bubble_Notifications10%
Automattic\Jetpack\My_Jetpack\Initializer16%
Automattic\Jetpack\My_Jetpack\Jetpack_Manage25%
Automattic\Jetpack\My_Jetpack\Historically_Active_Modules30%
Automattic\Jetpack\My_Jetpack\REST_Purchases31%
Automattic\Jetpack\My_Jetpack\Products\Jetpack_Ai32%
Automattic\Jetpack\My_Jetpack\Products\Complete34%
Automattic\Jetpack\My_Jetpack\Products46%
Automattic\Jetpack\My_Jetpack\Products\Security47%
Automattic\Jetpack\My_Jetpack\Products\Videopress47%
Automattic\Jetpack\My_Jetpack\REST_Recommendations_Evaluation49%
Automattic\Jetpack\My_Jetpack\REST_Zendesk_Chat50%
Automattic\Jetpack\My_Jetpack\Products\Growth50%
Automattic\Jetpack\My_Jetpack\Products\Backup53%
Automattic\Jetpack\My_Jetpack\Products\Newsletter53%
Automattic\Jetpack\My_Jetpack\Products\Related_Posts53%
Automattic\Jetpack\My_Jetpack\Products\Site_Accelerator53%
Automattic\Jetpack\My_Jetpack\Hybrid_Product53%
Automattic\Jetpack\My_Jetpack\Products\Stats55%
Automattic\Jetpack\My_Jetpack\Products\Search_Stats57%
Automattic\Jetpack\My_Jetpack\Products\Scan60%
Automattic\Jetpack\My_Jetpack\REST_Products61%
Automattic\Jetpack\My_Jetpack\Module_Product67%
Automattic\Jetpack\My_Jetpack\Products\Protect70%
Automattic\Jetpack\My_Jetpack\Products\Crm72%
Automattic\Jetpack\My_Jetpack\Products\Extras72%
Automattic\Jetpack\My_Jetpack\Product77%
Automattic\Jetpack\My_Jetpack\Products\Search79%
Automattic\Jetpack\My_Jetpack\Products\Anti_Spam82%
Automattic\Jetpack\My_Jetpack\Wpcom_Products82%
Automattic\Jetpack\My_Jetpack\Products\Social82%

Project Risks

Class Coverage Complexity CRAP
Automattic\Jetpack\My_Jetpack\Red_Bubble_Notifications10.8%804626
Automattic\Jetpack\My_Jetpack\Initializer16.6%813885
Automattic\Jetpack\My_Jetpack\Products\Jetpack_Ai32.7%862344
Automattic\Jetpack\My_Jetpack\Products\Starter0.0%25650
Automattic\Jetpack\My_Jetpack\Product77.3%157446
Automattic\Jetpack\My_Jetpack\Products\Backup53.2%54353
Automattic\Jetpack\My_Jetpack\Products\Complete34.9%32314
Automattic\Jetpack\My_Jetpack\Products46.2%37249
Automattic\Jetpack\My_Jetpack\Jetpack_Manage25.0%21207
Automattic\Jetpack\My_Jetpack\Products\Stats55.6%39172
Automattic\Jetpack\My_Jetpack\Products\Videopress47.9%28138
Automattic\Jetpack\My_Jetpack\Products\Security47.2%27134
Automattic\Jetpack\My_Jetpack\Products\Growth50.0%26110
Automattic\Jetpack\My_Jetpack\Hybrid_Product53.7%28106
Automattic\Jetpack\My_Jetpack\REST_Products61.7%35103
Automattic\Jetpack\My_Jetpack\Historically_Active_Modules30.0%1261
Automattic\Jetpack\My_Jetpack\Wpcom_Products82.7%4657
Automattic\Jetpack\My_Jetpack\Products\Search_Stats57.3%2051
Automattic\Jetpack\My_Jetpack\Products\Search79.6%3850
Automattic\Jetpack\My_Jetpack\Module_Product67.6%2443
Automattic\Jetpack\My_Jetpack\Products\Protect70.3%2643
Automattic\Jetpack\My_Jetpack\REST_Recommendations_Evaluation49.3%1439
Automattic\Jetpack\My_Jetpack\Products\Scan60.0%1838
Automattic\Jetpack\My_Jetpack\REST_Zendesk_Chat50.0%1230
Automattic\Jetpack\My_Jetpack\REST_Purchases31.0%828
Automattic\Jetpack\My_Jetpack\Products\Newsletter53.3%1123
Automattic\Jetpack\My_Jetpack\Products\Related_Posts53.3%1123
Automattic\Jetpack\My_Jetpack\Products\Site_Accelerator53.3%1123
Automattic\Jetpack\My_Jetpack\Products\Crm72.2%1621
Automattic\Jetpack\My_Jetpack\Products\Social82.9%1718
Automattic\Jetpack\My_Jetpack\Products\Anti_Spam82.1%1313

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
permissions_callback0%
update_historically_active_jetpack_modules0%
rest_trigger_historically_active_modules_update0%
queue_historically_active_jetpack_modules_update0%
add_my_jetpack_menu_item0%
admin_init0%
add_onboarding_admin_body_class0%
can_use_analytics0%
enqueue_scripts0%
get_installed_jetpack_plugins0%
get_active_modules0%
is_jetpack_user_new0%
get_my_jetpack_flags0%
get_seo_opt_in_state0%
admin_page0%
permissions_callback0%
setup_historically_active_jetpack_modules_sync0%
get_site0%
get_site_info0%
is_registered0%
dismiss_welcome_banner0%
has_file_system_write_access0%
get_idc_container_id0%
maybe_show_red_bubble0%
enqueue_red_bubble_script0%
get_recommended_modules0%
permissions_callback0%
is_agency_account0%
get_jetpack_manage_data0%
get_not_shown_products0%
get_products_by_ownership0%
get_all_plugin_filenames0%
get_product_data_schema0%
get_interstitials_state0%
update_interstitials_state0%
permissions_callback0%
get_paid_plans_plugins_requirements0%
check_for_broken_modules0%
alert_if_missing_connection0%
alert_if_last_backup_failed0%
alert_if_protect_has_threats0%
alert_if_paid_plan_expiring0%
alert_if_paid_plan_requires_plugin_install_or_activation0%
add_red_bubble_alerts0%
get_cached_alerts0%
get_red_bubble_alerts0%
rest_api_get_red_bubble_alerts0%
get_products_schema0%
get_interstitials_schema0%
permissions_callback0%
get_products0%
get_products_by_ownership0%
install_plugins0%
get_interstitials_state0%
update_interstitials_state0%
permissions_callback0%
get_site_current_purchases0%
permissions_callback0%
evaluate_site_recommendations0%
save_evaluation_recommendations0%
dismiss_evaluation_recommendations0%
chat_authentication_permissions_callback0%
get_chat_authentication0%
get_chat_availability0%
get_site_current_plan0%
get_name0%
get_title0%
is_upgradable_by_bundle0%
get_manage_url0%
get_name0%
get_title0%
get_disclaimers0%
get_post_checkout_url0%
permissions_callback0%
get_site_backup_undo_event0%
is_upgradable_by_bundle0%
get_name0%
get_title0%
is_module_active0%
do_product_specific_activation0%
is_active0%
has_required_plan0%
get_supported_products0%
get_manage_url0%
get_name0%
get_title0%
get_manage_url0%
get_wpcom_product_slug0%
get_wpcom_biyearly_product_slug0%
get_wpcom_monthly_product_slug0%
get_name0%
get_title0%
get_post_activation_url0%
get_manage_url0%
is_upgradable_by_bundle0%
get_name0%
get_title0%
is_active0%
get_manage_url0%
activate_plugin0%
get_name0%
get_title0%
is_module_active0%
do_product_specific_activation0%
is_active0%
has_required_plan0%
get_supported_products0%
get_manage_url0%
get_plugin_slug0%
get_plugin_filename0%
get_name0%
get_title0%
get_wpcom_monthly_product_slug0%
get_wpcom_bi_yearly_product_slug0%
get_post_checkout_url0%
get_post_activation_url0%
get_manage_url0%
admin_enqueue_scripts0%
add_ai_block0%
get_name0%
get_title0%
is_active0%
get_manage_url0%
activate_plugin0%
get_ai_assistant_feature0%
get_post_checkout_url0%
has_trial_support0%
is_upgradable_by_bundle0%
get_plugin_actions_links0%
permissions_callback0%
get_name0%
get_title0%
get_post_checkout_url0%
get_post_checkout_urls_by_feature0%
get_manage_url0%
get_manage_urls_by_feature0%
is_upgradable_by_bundle0%
get_site_protect_data0%
get_name0%
get_title0%
is_active0%
get_manage_url0%
activate_plugin0%
get_name0%
get_title0%
is_active0%
do_product_specific_activation0%
is_module_active0%
is_upgradable_by_bundle0%
get_post_activation_url0%
get_manage_url0%
get_post_checkout_url0%
get_stats_from_wpcom0%
queue_post_count_query_from_wpcom0%
get_name0%
get_title0%
get_post_checkout_url0%
do_product_specific_activation0%
is_upgradable_by_bundle0%
get_name0%
get_title0%
is_module_active0%
do_product_specific_activation0%
is_active0%
has_required_plan0%
get_supported_products0%
get_manage_url0%
get_name0%
get_title0%
is_active0%
get_manage_url0%
activate_plugin0%
get_name0%
get_title0%
get_post_checkout_url0%
is_upgradable_by_bundle0%
get_name0%
get_title0%
get_description0%
get_long_description0%
get_features0%
get_pricing_for_ui0%
get_wpcom_product_slug0%
is_module_active0%
do_product_specific_activation0%
is_active0%
has_required_plan0%
get_paid_plan_product_slugs0%
is_bundle_product0%
get_supported_products0%
get_manage_url0%
get_name0%
get_title0%
get_wpcom_pwyw_product_slug0%
get_wpcom_free_product_slug0%
has_trial_support0%
get_manage_url0%
is_upgradable_by_bundle0%
permissions_callback0%
get_name0%
get_title0%
get_post_checkout_url0%
is_upgradable_by_bundle0%
get_videopress_stats0%
get_site_videopress_data0%
get_features_by_tier3%
add_submenu_jetpack14%
get_pricing_for_ui_by_usage_tier15%
get_ai_assistant_feature16%
could_use_jp_manage20%
do_product_specific_activation20%
get_pricing_for_ui22%
get_feature_status22%
get_url_product_type22%
is_upgradable23%
does_module_need_attention28%
check_products_argument28%
get_next_usage_tier28%
does_module_need_attention30%
get_tiers33%
has_paid_plan_for_product37%
has_free_plan_for_product37%
get_paid_bundles_that_include_product38%
activate_plugin40%
install_and_activate_standalone40%
deactivate_products41%
install_and_activate_standalone50%
get_site_features_from_wpcom52%
build_check_hash53%
activate_products55%
do_activation58%
edit_permissions_callback60%
has_paid_plan_for_product60%
get_raw_post_type_breakdown63%
is_commercial_site66%
get_long_description_by_usage_tier66%
are_tier_plans_enabled66%
does_site_have_feature66%
get_status68%
get_current_usage_tier71%
get_products72%
is_upgradable72%
should_initialize75%
has_free_plan_for_product75%
is_module_active75%
deactivate75%
get_paid_plan_expiration_date75%
get_paid_plan_expiration_status75%
extend_plugin_action_links75%
get_status75%
get_status75%
check_products_string76%
do_product_specific_activation77%
get_site_current_purchases80%
do_product_specific_activation80%
get_manage_paid_plan_purchase_url80%
get_renew_paid_plan_purchase_url80%
populate_with_discount81%
get_state_from_wpcom82%
get_latest_backups82%
get_status83%
is_paid_plan_expired83%
get_product_pricing85%
is_licensing_ui_enabled85%
is_cache_old85%
is_new_pricing_20220885%
register_rest_endpoints87%
get_related_plan_slugs87%
has_paid_plan_for_product87%
is_owned87%
get_post_type_breakdown88%
get_pricing_from_wpcom89%

Project Risks

Method Coverage Complexity CRAP
alert_if_paid_plan_expiring0.0%22506
do_product_specific_activation0.0%12156
does_module_need_attention28.2%18137
check_for_broken_modules0.0%11132
get_videopress_stats0.0%11132
maybe_show_red_bubble0.0%10110
admin_init0.0%990
get_status68.4%3780
is_agency_account0.0%872
get_paid_plans_plugins_requirements0.0%872
alert_if_last_backup_failed0.0%872
get_site_backup_undo_event0.0%872
add_ai_block0.0%872
is_upgradable23.5%1165
get_pricing_for_ui_by_usage_tier15.4%958
get_url_product_type22.2%1057
is_jetpack_user_new0.0%756
has_required_plan0.0%756
has_required_plan0.0%756
do_product_specific_activation20.0%950
update_historically_active_jetpack_modules0.0%642
enqueue_scripts0.0%642
has_file_system_write_access0.0%642
alert_if_paid_plan_requires_plugin_install_or_activation0.0%642
evaluate_site_recommendations0.0%642
get_chat_authentication0.0%642
has_required_plan0.0%642
do_product_specific_activation0.0%642
has_required_plan0.0%642
get_products_by_ownership0.0%530
alert_if_protect_has_threats0.0%530
rest_api_get_red_bubble_alerts0.0%530
get_site_current_purchases0.0%530
do_product_specific_activation0.0%530
do_product_specific_activation0.0%530
get_ai_assistant_feature16.7%626
could_use_jp_manage20.0%624
get_feature_status22.2%622
setup_historically_active_jetpack_modules_sync0.0%420
get_site_info0.0%420
get_all_plugin_filenames0.0%420
alert_if_missing_connection0.0%420
add_red_bubble_alerts0.0%420
install_plugins0.0%420
get_features_by_tier3.4%418
has_paid_plan_for_product37.5%614
get_next_usage_tier28.6%514
has_free_plan_for_product37.5%614
does_module_need_attention30.4%513
queue_historically_active_jetpack_modules_update0.0%312
get_active_modules0.0%312
admin_page0.0%312
get_site0.0%312
get_red_bubble_alerts0.0%312
dismiss_evaluation_recommendations0.0%312
get_chat_availability0.0%312
get_site_current_plan0.0%312
is_upgradable72.7%1012
get_manage_url0.0%312
do_product_specific_activation0.0%312
do_product_specific_activation0.0%312
get_pricing_for_ui22.2%411
get_paid_bundles_that_include_product38.5%510
install_and_activate_standalone40.0%510
build_check_hash53.8%69
has_paid_plan_for_product87.5%99
add_submenu_jetpack14.3%38
install_and_activate_standalone50.0%58
do_activation58.3%68
get_pricing_from_wpcom89.3%88
deactivate_products41.2%47
get_seo_opt_in_state0.0%26
get_recommended_modules0.0%26
get_products0.0%26
update_interstitials_state0.0%26
permissions_callback0.0%26
permissions_callback0.0%26
save_evaluation_recommendations0.0%26
chat_authentication_permissions_callback0.0%26
is_active0.0%26
is_active0.0%26
activate_plugin0.0%26
is_owned87.5%66
get_site_protect_data0.0%26
activate_plugin0.0%26
get_post_checkout_url0.0%26
get_stats_from_wpcom0.0%26
queue_post_count_query_from_wpcom0.0%26
get_raw_post_type_breakdown63.6%56
is_active0.0%26
activate_plugin0.0%26
is_active0.0%26
get_products72.7%55
edit_permissions_callback60.0%45
activate_products55.6%45
get_site_current_purchases80.0%55
get_site_features_from_wpcom52.6%45
has_paid_plan_for_product60.0%45
check_products_string76.2%44
populate_with_discount81.8%44
activate_plugin40.0%34
get_long_description_by_usage_tier66.7%44
are_tier_plans_enabled66.7%44
get_status83.3%44
do_product_specific_activation77.8%44
is_new_pricing_20220885.7%44
is_commercial_site66.7%33
check_products_argument28.6%23
is_cache_old85.7%33
get_product_pricing85.0%33
has_free_plan_for_product75.0%33
get_state_from_wpcom82.4%33
get_latest_backups82.4%33
do_product_specific_activation80.0%33
get_tiers33.3%23
get_current_usage_tier71.4%33
does_site_have_feature66.7%33
is_paid_plan_expired83.3%33
get_manage_paid_plan_purchase_url80.0%33
get_renew_paid_plan_purchase_url80.0%33
get_post_type_breakdown88.2%33
get_status75.0%33
is_licensing_ui_enabled85.7%22
should_initialize75.0%22
register_rest_endpoints87.5%22
is_module_active75.0%22
deactivate75.0%22
get_related_plan_slugs87.5%22
get_paid_plan_expiration_date75.0%22
get_paid_plan_expiration_status75.0%22
extend_plugin_action_links75.0%22
get_status75.0%22