Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
WPCOM_REST_API_V2_Endpoint_Guidelines_Banner_Dismissed0%
WPCOM_REST_API_V2_Endpoint_MCP_Settings15%
WPCOM_REST_API_V2_Endpoint_Admin_Bar25%
WPCOM_REST_API_V2_Endpoint_Resolve_Redirect30%
WPCOM_REST_API_V2_Endpoint_Send_Email_Preview32%
WPCOM_REST_API_V2_Endpoint_Mailchimp34%
WPCOM_REST_API_V2_Endpoint_App_Media35%
WPCOM_REST_API_V2_Endpoint_Agent_Guidelines_AI35%
WPCOM_REST_API_V2_Endpoint_Template_Loader36%
WPCOM_REST_API_V2_Endpoint_Gutenberg_Available_Extensions36%
WPCOM_REST_API_V2_Endpoint_Newsletter_Categories_List36%
WPCOM_REST_API_V2_Endpoint_Profile40%
WPCOM_REST_API_V2_Endpoint_Business_Hours42%
WPCOM_REST_API_V2_Endpoint_Related_Posts43%
WPCOM_REST_API_V2_Sites_Posts_Add_Featured_Media_URL45%
WPCOM_REST_API_V2_Endpoint_Blog_Stats46%
WPCOM_REST_API_V2_Endpoint_Following46%
WPCOM_REST_API_V2_Endpoint_Instagram_Gallery48%
WPCOM_REST_API_V2_Endpoint_External_Media50%
WPCOM_REST_API_V3_Endpoint_Blogging_Prompts51%
WPCOM_REST_API_V2_Endpoint_Admin_Color52%
WPCOM_REST_API_V2_Endpoint_Newsletter_Categories_Subscriptions_Count56%
WPCOM_REST_API_V2_Endpoint_Google_Docs57%
WPCOM_REST_API_V2_Endpoint_Podcast_Player57%
WPCOM_REST_API_V2_Endpoint_Goodreads59%
WPCOM_REST_API_V2_Endpoint_Top_Posts67%
WPCOM_REST_API_V2_Endpoint_AI67%
WPCOM_REST_API_V2_Endpoint_Subscribers_List68%
WPCOM_REST_API_V2_Endpoint_Service_API_Keys70%
WPCOM_REST_API_V2_Endpoint_Memberships71%
WPCOM_REST_API_V2_Endpoint_Email_Preview77%
WPCOM_REST_API_V2_Endpoint_Application_Password_Extras79%
WPCOM_REST_API_V2_Endpoint_Subscribers82%
WPCOM_REST_API_V2_Endpoint_Hello84%

Project Risks

Class Coverage Complexity CRAP
WPCOM_REST_API_V2_Endpoint_MCP_Settings15.4%36821
WPCOM_REST_API_V2_Endpoint_External_Media50.6%71679
WPCOM_REST_API_V3_Endpoint_Blogging_Prompts51.3%62506
WPCOM_REST_API_V2_Endpoint_Subscribers_List68.5%86318
WPCOM_REST_API_V2_Endpoint_Memberships71.1%81239
WPCOM_REST_API_V2_Endpoint_Mailchimp34.0%21147
WPCOM_REST_API_V2_Endpoint_Instagram_Gallery48.9%24100
WPCOM_REST_API_V2_Endpoint_Admin_Bar25.0%1384
WPCOM_REST_API_V2_Endpoint_App_Media35.6%1575
WPCOM_REST_API_V2_Endpoint_Agent_Guidelines_AI35.7%1466
WPCOM_REST_API_V2_Endpoint_Send_Email_Preview32.8%1364
WPCOM_REST_API_V2_Endpoint_Guidelines_Banner_Dismissed0.0%756
WPCOM_REST_API_V2_Endpoint_Related_Posts43.5%1555
WPCOM_REST_API_V2_Endpoint_Service_API_Keys70.3%2951
WPCOM_REST_API_V2_Endpoint_Podcast_Player57.8%1635
WPCOM_REST_API_V2_Endpoint_Following46.7%1233
WPCOM_REST_API_V2_Endpoint_Resolve_Redirect30.4%829
WPCOM_REST_API_V2_Endpoint_AI67.8%1828
WPCOM_REST_API_V2_Endpoint_Template_Loader36.4%824
WPCOM_REST_API_V2_Endpoint_Newsletter_Categories_List36.6%615
WPCOM_REST_API_V2_Sites_Posts_Add_Featured_Media_URL45.0%611
WPCOM_REST_API_V2_Endpoint_Profile40.7%510
WPCOM_REST_API_V2_Endpoint_Email_Preview77.9%99
WPCOM_REST_API_V2_Endpoint_Newsletter_Categories_Subscriptions_Count56.1%69
WPCOM_REST_API_V2_Endpoint_Goodreads59.5%68
WPCOM_REST_API_V2_Endpoint_Google_Docs57.1%68
WPCOM_REST_API_V2_Endpoint_Top_Posts67.3%78
WPCOM_REST_API_V2_Endpoint_Subscribers82.9%88
WPCOM_REST_API_V2_Endpoint_Admin_Color52.4%57
WPCOM_REST_API_V2_Endpoint_Application_Password_Extras79.5%66

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
get_localized_week0%
__construct0%
get_item_permissions_check0%
get_item0%
filter_nodes0%
__construct0%
get_item_permissions_check0%
get_item0%
__construct0%
permission_callback0%
suggest_guidelines0%
__construct0%
request_chat_with_site0%
rank_response0%
request_gpt_completion0%
request_dalle_generation0%
request_get_ai_assistance_feature0%
__construct0%
permission_callback0%
sanitize_media0%
validate_media0%
prepare_media_param0%
get_media0%
format_response0%
format_item0%
__construct0%
should_exclude_conditional_link0%
__construct0%
get_blog_stats0%
__construct0%
email_preview0%
__construct0%
get_connection_details0%
delete_connection0%
get_picker_status0%
create_session0%
get_session0%
delete_session0%
proxy_media_request0%
get_wp_filesystem0%
__construct0%
get_following0%
get_recommendations0%
__construct0%
get_goodreads_user_id0%
__construct0%
check_document_visibility0%
__construct0%
register_routes0%
permission_callback0%
is_dismissed0%
set_dismissed0%
__construct0%
get_instagram_connect_url0%
get_instagram_connections0%
get_instagram_gallery0%
__construct0%
is_connected0%
get_mailchimp_status0%
get_mailchimp_groups0%
get_mailchimp_settings0%
__construct0%
permissions_check0%
get_mcp_settings0%
update_mcp_settings0%
__construct0%
get_newsletter_categories0%
__construct0%
get_newsletter_categories_subscriptions_count0%
__construct0%
__construct0%
get_tracks_quantity0%
get_player_data0%
prepare_for_response0%
get_item_schema0%
__construct0%
get_item_permissions_check0%
get_item0%
__construct0%
get_options0%
enable_rp0%
get_related_posts_permissions_check0%
get_related_posts0%
get_post0%
__construct0%
follow_redirect0%
get_item_schema0%
get_response_url0%
__construct0%
permissions_check0%
send_email_preview0%
get_subscribers0%
get_subscriber_totals0%
get_import_jobs0%
get_memberships_products0%
add_comp0%
remove_comp0%
wpcom_get0%
__construct0%
permissions_check0%
validate_template_type0%
get_item0%
__construct0%
get_post_types0%
get_top_posts0%
__construct0%
__construct0%
modify_query0%
map_date_query0%
filter_sql0%
prepare_item_for_response0%
is_in_bloganuary0%
get_bloganuary_id0%
prepare_date_response0%
build_answering_users_sample0%
__construct0%
__construct0%
get_public_item_schema0%
get_items_permission_check0%
__construct0%
get_data0%
prevent_running_outside_of_wpcom0%
list_products_from_wpcom0%
find_product_from_wpcom0%
create_product_from_wpcom0%
update_product_from_wpcom0%
delete_product_from_wpcom0%
validate_tier_references0%
check_duplicate_tier_references0%
__construct0%
get_public_item_schema0%
__construct0%
get_featured_media_url0%
__construct0%
get_items16%
create_item_permissions_check25%
get_item25%
get_abilities28%
create_products30%
get_status30%
copy_external_media38%
list_products44%
delete_product44%
get_external_media45%
update_service_api_key52%
create_product55%
update_product60%
permissions_check61%
get_subscriber_individual62%
get_attachment_data66%
get_subscriber_stats66%
reset_import_state66%
dismiss_item66%
parse_menu_item68%
get_subscriber_count71%
filter_style_elements75%
extract_handle_from_element75%
sideload_media77%
get_item78%
maybe_register_routes80%
should_exclude_asset80%
validate_yearly_tier80%
get_subscriber_counts80%
validate_service_api_key_mapbox81%
should_exclude_inline_asset83%
is_allowed_plugin_handle83%
setup_block_editor_screen85%
should_exclude_conditional_script85%
get_download_url85%
validate_tier_field85%
get_service_api_key85%
delete_service_api_key86%
remove_problematic_plugin_hooks86%
maybe_register_routes87%
enqueue_block_type_editor_assets87%

Project Risks

Method Coverage Complexity CRAP
get_mcp_settings0.0%17306
update_mcp_settings0.0%15240
prepare_item_for_response0.0%15240
check_duplicate_tier_references0.0%10110
get_instagram_connections0.0%990
get_subscribers0.0%990
suggest_guidelines0.0%872
add_comp0.0%872
get_connection_details0.0%756
proxy_media_request0.0%756
get_instagram_connect_url0.0%756
remove_comp0.0%756
filter_nodes0.0%642
get_player_data0.0%642
permissions_check0.0%642
get_subscriber_totals0.0%642
filter_sql0.0%642
build_answering_users_sample0.0%642
prepare_media_param0.0%530
get_following0.0%530
get_mailchimp_status0.0%530
get_mailchimp_groups0.0%530
get_mailchimp_settings0.0%530
wpcom_get0.0%530
map_date_query0.0%530
prepare_date_response0.0%530
get_status30.4%723
get_external_media45.0%922
rank_response0.0%420
get_recommendations0.0%420
check_document_visibility0.0%420
is_connected0.0%420
prepare_for_response0.0%420
get_post0.0%420
send_email_preview0.0%420
find_product_from_wpcom0.0%420
validate_tier_references0.0%420
get_featured_media_url0.0%420
parse_menu_item69.0%1419
remove_problematic_plugin_hooks86.7%1919
copy_external_media38.1%718
create_products30.0%513
get_item0.0%312
request_chat_with_site0.0%312
format_response0.0%312
should_exclude_conditional_link0.0%312
delete_connection0.0%312
get_picker_status0.0%312
create_session0.0%312
get_session0.0%312
delete_session0.0%312
get_goodreads_user_id0.0%312
__construct0.0%312
__construct0.0%312
get_newsletter_categories0.0%312
get_related_posts_permissions_check0.0%312
get_related_posts0.0%312
get_response_url0.0%312
prevent_running_outside_of_wpcom0.0%312
list_products_from_wpcom0.0%312
delete_product_from_wpcom0.0%312
should_exclude_asset80.0%1010
create_item_permissions_check25.0%410
list_products44.4%59
enqueue_block_type_editor_assets87.5%88
should_exclude_inline_asset83.3%88
get_items16.7%38
permissions_check61.5%68
get_subscriber_individual62.5%67
dismiss_item66.7%67
get_item_permissions_check0.0%26
get_item_permissions_check0.0%26
setup_block_editor_screen85.7%66
get_wp_filesystem0.0%26
get_instagram_gallery0.0%26
permissions_check0.0%26
get_tracks_quantity0.0%26
get_item_schema0.0%26
get_item_permissions_check0.0%26
get_options0.0%26
follow_redirect0.0%26
get_import_jobs0.0%26
get_memberships_products0.0%26
permissions_check0.0%26
validate_template_type0.0%26
get_item0.0%26
get_post_types0.0%26
get_top_posts0.0%26
__construct0.0%26
get_item25.0%36
modify_query0.0%26
get_bloganuary_id0.0%26
get_item78.6%66
create_product_from_wpcom0.0%26
update_product_from_wpcom0.0%26
filter_style_elements75.0%55
is_allowed_plugin_handle83.3%55
get_subscriber_stats66.7%55
create_product55.6%45
update_product60.0%45
validate_tier_field85.7%55
get_service_api_key85.7%55
update_service_api_key52.6%45
delete_service_api_key86.4%55
maybe_register_routes87.5%44
reset_import_state66.7%44
delete_product44.4%34
validate_yearly_tier80.0%44
validate_service_api_key_mapbox81.2%44
maybe_register_routes80.0%33
get_abilities28.6%23
should_exclude_conditional_script85.7%33
extract_handle_from_element75.0%22
get_download_url85.7%22
sideload_media77.8%22
get_attachment_data66.7%22
get_subscriber_count71.4%22
get_subscriber_counts80.0%22