Code Analysis: WordPress.com Editing Toolkit 3.6007

Function Rating Maintainability Complexity Lines of code
newspack_blocks_render_block_carousel()
D
19
41 252
newspack_blocks_render_block_homepage_articles()
D
28
34 128
Newspack_Blocks::build_articles_query()
C
37 24 71
Newspack_Blocks_API::posts_endpoint()
B
35 19 81
A8C\FSE\Block_Patterns_From_API::register_patterns()
B
39 15 61
render_navigation_menu_block()
A
39 12 70
render_site_description_block()
A
44 11 45
Automattic\Jetpack\Global_Styles\Global_Styles::get_inline_css()
A
44 11 42
Automattic\Jetpack\Global_Styles\Data_Point_Theme::get_value()
A
51 11 30
A8C\FSE\WP_Template_Inserter::insert_default_template_data()
A
40 8 73
A8C\FSE\WP_REST_Sideload_Image_Controller::create_item()
A
43 9 46
A8C\FSE\WP_Template_Inserter::insert_default_pages()
A
40 7 74
WP_REST_Newspack_Articles_Controller::get_items()
A
39 7 71
render_site_title_block()
A
46 9 39
A8C\FSE\WP_Template_Inserter::fetch_template_parts()
A
44 8 48
serialize_block()
A
49 9 27
enqueue_launch_flow_script_and_style()
A
47 8 37
A8C\FSE\Starter_Page_Templates::get_page_templates()
A
49 8 31
enqueue_launch_button_script_and_style()
A
45 7 41
Newspack_Blocks_API::newspack_blocks_get_author_info()
A
48 7 35
get_credit_element()
A
54 8 19
A8C\FSE\Starter_Page_Templates::enqueue_assets()
A
44 6 48
Newspack_Blocks::manage_view_scripts()
A
49 7 31
should_show_coming_soon_page()
S
62 9 10
load_blog_posts_block()
S
58 8 13
newspack_blocks_block_args()
S
43 5 56
A8C\FSE\WP_REST_WPCOM_Block_Editor_NUX_Status_Controller::get_nux_status()
S
51 7 26
WP_REST_Newspack_Articles_Controller::register_routes()
S
36 1 115
Newspack_Blocks::get_term_classes()
S
52 7 24
Newspack_Blocks::get_patterns_for_post_type()
S
52 7 24
Newspack_Blocks::image_size_for_orientation()
S
42 4 68
enqueue_coblocks_gallery_scripts()
S
49 6 31
load_block_patterns_from_api()
S
57 7 16
Newspack_Blocks_API::register_rest_fields()
S
39 1 106
A8C\FSE\Full_Site_Editing::should_merge_template_and_post()
S
63 8 9
Newspack_Blocks::prepare_authors()
S
50 6 28
Newspack_Blocks::get_sponsor_logos()
S
50 6 28
Newspack_Blocks::get_sponsor_byline()
S
50 6 28
Automattic\Jetpack\Global_Styles\Global_Styles::__construct()
S
38 2 88
A8C\FSE\Mailerlite\WPCOM_Widget_Mailerlite::widget()
S
46 5 42
Automattic\Jetpack\Global_Styles\Data_Set::save_data()
S
52 6 24
Newspack_Blocks_API::newspack_blocks_get_primary_category()
S
55 6 20
A8C\FSE\WP_Template_Inserter::register_template_post_types()
S
36 1 94
newspack_blocks_format_byline()
S
49 5 33
A8C\FSE\Block_Patterns_From_API::get_patterns()
S
50 5 32
Newspack_Blocks_API::post_meta_request_params()
S
57 6 17
Automattic\Jetpack\Global_Styles\Global_Styles::maybe_filter_font_list()
S
57 6 17
Newspack_Blocks::enqueue_view_assets()
S
51 5 29
is_full_site_editing_active()
S
61 6 12
A8C\FSE\WPCOM_Block_Editor_Nav_Sidebar::enqueue_script_and_style()
S
48 4 36
Automattic\Jetpack\Global_Styles\Global_Styles::enqueue_block_editor_assets()
S
49 4 35
A8C\FSE\Template_Image_Inserter::update_post_images()
S
49 4 35
render_template()
S
56 5 19
Newspack_Blocks_API::newspack_blocks_sponsor_info()
S
49 4 32
A8C\FSE\Template_Image_Inserter::upload_images()
S
50 4 32
render_post_content_block()
S
57 5 17
Automattic\Jetpack\Global_Styles\Data_Set::build_data_set()
S
57 5 16
Newspack_Blocks_API::specific_posts_endpoint()
S
49 4 31
original_request_url()
S
61 6 10
Newspack_Blocks::block_classes()
S
59 5 13
A8C\FSE\Block_Patterns_From_API::can_register_pattern()
S
61 5 12
A8C\FSE\Template_Image_Inserter::upload_image()
S
53 4 23
enqueue_script_and_style()
S
53 4 23
newspack_blocks_register_carousel()
S
43 1 67
newspack_blocks_inject_amp_state()
S
56 4 21
A8C\FSE\Full_Site_Editing::register_blocks()
S
43 1 65
render_template_block()
S
55 4 20
A8C\FSE\Template_Image_Inserter::copy_images_and_update_posts()
S
58 4 17
A8C\FSE\WP_REST_Sideload_Image_Controller::prepare_for_collection()
S
58 4 16
A8C\FSE\Full_Site_Editing::remove_template_components()
S
57 4 16
A8C\FSE\Full_Site_Editing::enqueue_script_and_style()
S
50 3 30
A8C\FSE\WPCOM_Block_Editor_NUX::enqueue_script_and_style()
S
50 3 30
needs_slider_width_workaround()
S
65 5 9
A8C\FSE\WP_Template::get_template_id()
S
59 4 14
A8C\FSE\WP_Template::get_template_content()
S
61 4 14
register_data_stores()
S
59 4 14
Automattic\Jetpack\Global_Styles\Global_Styles::filter_and_validate_font_options()
S
60 4 13
get_credit_information()
S
61 4 13
Newspack_Blocks_API::newspack_blocks_get_image_src()
S
48 2 41
A8C\FSE\Whats_New::enqueue_script_and_style()
S
52 3 25
A8C\FSE\WP_REST_Sideload_Image_Controller::get_attachment()
S
53 3 24
A8C\FSE\Block_Patterns_Modifications::enqueue_script_and_style()
S
55 3 20
A8C\FSE\WP_Template::output_template_content()
S
56 3 19
Newspack_Blocks::enqueue_block_editor_assets()
S
50 2 33
Newspack_Blocks::script_enqueue_helper()
S
57 3 16
Automattic\Jetpack\Global_Styles\Data_Point_Option::get_value()
S
64 4 10
A8C\FSE\Posts_List_Block::enqueue_scripts()
S
58 3 15
Newspack_Blocks::get_sponsor_label()
S
63 4 10
Newspack_Blocks::filter_excerpt_length()
S
60 3 15
Automattic\Jetpack\Global_Styles\Global_Styles::can_use_global_styles()
S
70 4 6
A8C\FSE\Block_Patterns_From_API::__construct()
S
70 4 5
is_homepage_title_hidden()
S
64 4 9
load_coming_soon()
S
67 4 8
load_wpcom_block_editor_sidebar()
S
67 4 8
add_option_to_new_site()
S
64 4 9
A8C\FSE\Posts_List_Block::enqueue_styles()
S
60 3 14
get_credit_block_classes()
S
60 3 14
enqueue_hide_plugin_buttons_mobile_style()
S
61 3 13
Newspack_Blocks::template_inc()
S
61 3 13
A8C\FSE\Full_Site_Editing::set_block_template()
S
61 3 13
Automattic\Jetpack\Global_Styles\Data_Point_Option::__construct()
S
61 3 13
A8C\FSE\WP_Template_Inserter::fetch_retry()
S
61 3 13
get_iso_639_locale()
S
61 3 12
enqueue_script()
S
61 3 12
A8C\FSE\WP_REST_Sideload_Image_Controller::create_items()
S
61 3 12
A8C\FSE\Full_Site_Editing::get_close_button_label()
S
61 3 12
A8C\FSE\Block_Patterns_Utils::remote_get()
S
61 3 12
enqueue_script_and_style()
S
63 3 11
load_posts_list_block()
S
63 3 11
A8C\FSE\Full_Site_Editing::merge_template_and_post()
S
62 3 11
Automattic\Jetpack\Global_Styles\Global_Styles::get_font_values()
S
64 3 11
Automattic\Jetpack\Global_Styles\Data_Point_Theme::__construct()
S
63 3 11
Newspack_Blocks::enqueue_block_styles_assets()
S
62 3 11
A8C\FSE\WP_REST_Sideload_Image_Controller::register_routes()
S
48 1 39
A8C\FSE\Posts_List_Block::render_a8c_post_list_block()
S
53 2 24
render_fallback_coming_soon_page()
S
53 2 21
WP_REST_Newspack_Articles_Controller::get_attribute_schema()
S
56 2 21
enqueue_script()
S
56 2 19
A8C\FSE\Full_Site_Editing::get_parent_post_id()
S
64 3 10
get_wpcom_redirect_to()
S
69 3 6
A8C\FSE\Full_Site_Editing::toggle_editor_post_title_visibility()
S
71 3 6
A8C\FSE\WP_REST_WPCOM_Block_Editor_NUX_Status_Controller::update_nux_status()
S
64 3 9
A8C\FSE\Full_Site_Editing::is_full_site_page()
S
74 3 4
is_block_editor_screen()
S
79 3 3
A8C\FSE\Full_Site_Editing::restrict_template_drafting()
S
72 3 5
A8C\FSE\Full_Site_Editing::remove_wp_admin_menu_items()
S
63 3 10
Automattic\Jetpack\Global_Styles\Data_Set::is_data_point_updatable()
S
73 3 5
A8C\FSE\WP_Template::get_page_template_content()
S
62 3 10
Newspack_Blocks::is_amp()
S
77 3 3
Automattic\Jetpack\Global_Styles\Data_Set::is_data_point_theme()
S
72 3 5
normalize_theme_slug()
S
65 3 9
Automattic\Jetpack\Global_Styles\Global_Styles::block_editor_settings()
S
65 3 9
blog_posts_block_name()
S
67 3 9
WP_REST_Newspack_Articles_Controller::generate_amp_partial()
S
59 2 15
disable_coming_soon_on_privacy_change()
S
68 3 7
render_site_credit_block()
S
59 2 15
load_starter_page_templates()
S
64 3 10
Automattic\Jetpack\Global_Styles\Data_Set::is_data_point_option()
S
72 3 5
A8C\FSE\WP_REST_Sideload_Image_Controller::prepare_item_for_response()
S
61 2 11
enqueue_style()
S
63 2 11
populate_wp_template_data()
S
63 2 11
Automattic\Jetpack\Global_Styles\JSON_Endpoint::setup()
S
56 1 24
newspack_blocks_carousel_block_autoplay_ui_amp()
S
55 1 23
A8C\FSE\Full_Site_Editing::__construct()
S
53 1 21
Automattic\Jetpack\Global_Styles\Global_Styles::update_plugin_settings()
S
56 1 21
get_footer_credit_options()
S
56 1 21
A8C\FSE\WP_REST_Sideload_Image_Controller::get_collection_params()
S
57 1 18
A8C\FSE\WP_REST_WPCOM_Block_Editor_NUX_Status_Controller::register_rest_route()
S
58 1 18
A8C\FSE\Coming_soon\Coming_Soon_Test::test_disable_coming_soon_on_privacy_change()
S
58 1 18
A8C\FSE\Mailerlite\WPCOM_Widget_Mailerlite::form()
S
56 1 18
A8C\FSE\Block_Patterns_From_Api_Test::setUp()
S
57 1 18
newspack_blocks_register_homepage_articles()
S
58 1 18
A8C\FSE\NewsPack_Test::test_blog_posts_assets_enqueued()
S
58 1 17
A8C\FSE\Starter_Page_Templates::__construct()
S
57 1 17
A8C\FSE\Starter_Page_Templates::pass_error_to_frontend()
S
60 1 17
A8C\FSE\Block_Patterns_From_Api_Test::test_patterns_request_succeeds_with_override_source_site()
S
57 1 17
is_atomic()
S
80 2 3
coming_soon_page()
S
71 2 7
A8C\FSE\Full_Site_Editing::restrict_template_deletion()
S
72 2 5
Newspack_Blocks::add_image_sizes()
S
58 1 15
load_full_site_editing()
S
71 2 7
A8C\FSE\WP_Template::__construct()
S
71 2 6
A8C\FSE\Starter_Page_Templates::clear_sideloaded_image_cache()
S
69 2 6
Automattic\Jetpack\Global_Styles\Data_Set::get_data()
S
66 2 8
Newspack_Blocks::get_all_sponsors()
S
69 2 6
Automattic\Jetpack\Global_Styles\Data_Set::is_data_point_literal()
S
77 2 3
A8C\FSE\Full_Site_Editing::get_instance()
S
71 2 6
A8C\FSE\Starter_Page_Templates::get_verticals_locale()
S
73 2 4
A8C\FSE\Block_Patterns_Modifications::init()
S
72 2 6
Newspack_Blocks::remove_excerpt_length_filter()
S
65 2 10
Automattic\Jetpack\Global_Styles\Data_Point_Literal::__construct()
S
73 2 5
get_onboarding_url()
S
71 2 5
A8C\FSE\WP_Template_Inserter::is_pages_data_inserted()
S
79 2 3
A8C\FSE\REST_Templates_Controller::check_read_permission()
S
68 2 7
A8C\FSE\Block_Patterns_Utils::get_block_patterns_locale()
S
73 2 4
A8C\FSE\Posts_List_Block::get_instance()
S
71 2 6
Newspack_Blocks_API::add_post_title_wildcard_search()
S
71 2 5
fail_if_died()
S
71 2 6
Newspack_Blocks_API::newspack_blocks_post_format()
S
74 2 4
Automattic\Jetpack\Global_Styles\Data_Point_Option::process_data_point()
S
66 2 9
Automattic\Jetpack\Global_Styles\Global_Styles::init()
S
72 2 6
A8C\FSE\Full_Site_Editing::remove_trash_row_action_for_template_post_types()
S
71 2 6
A8C\FSE\WP_Template::get_template_blocks()
S
72 2 5
A8C\FSE\Full_Site_Editing::restrict_template_taxonomy_deletion()
S
73 2 5
A8C\FSE\WPCOM_Block_Editor_NUX::init()
S
72 2 6
Newspack_Blocks_API::newspack_blocks_get_image_caption()
S
77 2 3
A8C\FSE\Starter_Page_Templates::get_instance()
S
71 2 6
A8C\FSE\Full_Site_Editing::insert_default_data()
S
70 2 7
A8C\FSE\Block_Patterns_From_API::get_block_patterns_locale()
S
73 2 4
A8C\FSE\Full_Site_Editing::fse_map_block_to_editor_template_setting()
S
64 2 10
add_crossorigin_to_script_els()
S
71 2 6
A8C\FSE\Full_Site_Editing::get_close_button_url()
S
67 2 8
A8C\FSE\Whats_New::init()
S
72 2 6
newspack_blocks_amp_js_path()
S
71 2 6
add_public_coming_soon_to_settings_endpoint_post()
S
71 2 6
Newspack_Blocks::filter_excerpt_more()
S
72 2 5
admin_body_classes()
S
72 2 6
get_current_locale()
S
74 2 4
get_fallback_navigation_menu()
S
59 1 15
is_theme_supported()
S
74 2 4
user_is_automattician()
S
79 2 3
should_load_assets()
S
79 2 3
A8C\FSE\WPCOM_Block_Editor_Nav_Sidebar::init()
S
72 2 6
A8C\FSE\WP_Template_Inserter::is_template_data_inserted()
S
79 2 3
A8C\FSE\Full_Site_Editing::remove_delete_row_action_for_template_taxonomy()
S
71 2 6
A8C\FSE\Coming_soon\Coming_Soon_Test::test_add_option_to_new_site_with_coming_soon_meta()
S
59 1 14
A8C\FSE\Block_Patterns_From_Api_Test::createBlockPatternsUtilsMock()
S
61 1 14
A8C\FSE\Posts_List_Block::register_blocks()
S
61 1 14
A8C\FSE\Block_Patterns_From_Api_Test::test_patterns_request_succeeds_with_empty_cache()
S
59 1 14
Newspack_Blocks_API::register_video_playlist_endpoint()
S
62 1 13
A8C\FSE\Coming_soon\Coming_Soon_Test::test_add_option_to_new_site_without_coming_soon_meta()
S
61 1 13
dangerously_load_full_site_editing_files()
S
62 1 13
A8C\FSE\Full_Site_Editing::register_footer_credit_setting()
S
62 1 13
A8C\FSE\Starter_Page_Templates::register_meta_field()
S
61 1 13
A8C\FSE\Block_Patterns_Utils::get_patterns_cache_key()
S
64 1 12
A8C\FSE\Block_Patterns_From_Api_Test::test_patterns_request_succeeds_with_set_cache()
S
61 1 12
A8C\FSE\Posts_List_Block::custom_excerpt_read_more()
S
63 1 11
head_error_handler()
S
100 1 11
A8C\FSE\NewsPack_Test::test_carousel_assets_enqueued()
S
64 1 11
Automattic\Jetpack\Global_Styles\Global_Styles::wp_enqueue_scripts()
S
65 1 11
A8C\FSE\Mailerlite\WPCOM_Widget_Mailerlite::__construct()
S
63 1 11
A8C\FSE\Full_Site_Editing::remove_trash_bulk_action_for_template_post_type()
S
76 1 4
A8C\FSE\WP_REST_WPCOM_Block_Editor_NUX_Status_Controller::show_wpcom_welcome_guide()
S
80 1 3
A8C\FSE\Coming_soon\Coming_Soon_Test::test_add_public_coming_soon_to_settings_endpoint_get()
S
65 1 9
did_insert_template_parts()
S
70 1 6
A8C\FSE\WP_Template_Inserter::get_default_footer()
S
82 1 3
Newspack_Blocks::remove_wc_memberships_excerpt_limit()
S
76 1 4
A8C\FSE\Starter_Page_Templates::register_scripts()
S
66 1 9
A8C\FSE\Full_Site_Editing::get_edit_template_base_url()
S
74 1 4
Newspack_Blocks::more_excerpt()
S
81 1 3
load_timeline_block()
S
81 1 3
A8C\FSE\Full_Site_Editing::meta_template_id_auth_callback()
S
80 1 3
A8C\FSE\Posts_List_Block::__construct()
S
72 1 5
Automattic\Jetpack\Global_Styles\JSON_Endpoint::get_data()
S
81 1 3
Newspack_Blocks_API::newspack_blocks_get_cat_tag_classes()
S
79 1 3
A8C\FSE\Coming_soon\Coming_Soon_Test::delete_coming_soon_site_options()
S
77 1 4
A8C\FSE\Whats_New::__construct()
S
78 1 3
A8C\FSE\Block_Patterns_Modifications::__construct()
S
78 1 3
A8C\FSE\WPCOM_Block_Editor_Nav_Sidebar::__construct()
S
78 1 3
A8C\FSE\Coming_soon\Coming_Soon_Test::tearDownAfterClass()
S
77 1 4
A8C\FSE\Full_Site_Editing::register_template_post_types()
S
82 1 3
register_rest_routes()
S
77 1 4
load_global_styles()
S
81 1 3
load_error_reporting()
S
81 1 3
A8C\FSE\WPCOM_Block_Editor_NUX::register_rest_api()
S
73 1 5
A8C\FSE\WP_REST_WPCOM_Block_Editor_NUX_Status_Controller::permission_callback()
S
81 1 3
A8C\FSE\Full_Site_Editing::add_fse_body_class()
S
77 1 4
load_editor_site_launch()
S
81 1 3
Newspack_Blocks_API::newspack_blocks_has_custom_excerpt()
S
75 1 4
load_block_inserter_modifications()
S
81 1 3
_manually_load_plugin()
S
71 1 8
newspack_blocks_format_avatars()
S
66 1 9
get_login_url()
S
74 1 4
Automattic\Jetpack\Global_Styles\JSON_Endpoint::__construct()
S
71 1 6
serialize_blocks()
S
79 1 3
A8C\FSE\WP_Template_Inserter::get_default_header()
S
77 1 5
activate_error_reporting()
S
71 1 5
A8C\FSE\Starter_Page_Templates::register_rest_api()
S
76 1 4
add_public_coming_soon_to_settings_endpoint_get()
S
73 1 5
A8C\FSE\Starter_Page_Templates::clear_templates_cache()
S
81 1 3
Automattic\Jetpack\Global_Styles\Data_Point_Literal::get_value()
S
82 1 3
mailerlite_register_widget()
S
82 1 3
A8C\FSE\WP_REST_Sideload_Image_Controller::get_item_route()
S
79 1 3
enqueue_block_inserter_modifications()
S
76 1 4
load_mailerlite()
S
81 1 3
load_whats_new()
S
81 1 3
A8C\FSE\Coming_soon\Coming_Soon_Test::set_site_as_coming_soon()
S
72 1 5
A8C\FSE\WP_Template::is_supported_template_type()
S
79 1 3
wpcom_gutenberg_enable_custom_line_height()
S
82 1 3
load_wpcom_block_editor_nux()
S
81 1 3
newspack_blocks_carousel_block_autoplay_ui()
S
70 1 7
A8C\FSE\WP_REST_WPCOM_Block_Editor_NUX_Status_Controller::__construct()
S
77 1 4
Automattic\Jetpack\Global_Styles\JSON_Endpoint::update_data()
S
76 1 4
Newspack_Blocks::remove_excerpt_more_filter()
S
78 1 3
A8C\FSE\Block_Patterns_Utils::cache_get()
S
79 1 3
A8C\FSE\Block_Patterns_Utils::cache_add()
S
78 1 3
A8C\FSE\Full_Site_Editing::remove_delete_bulk_action_for_template_taxonomy()
S
76 1 4
WP_REST_Newspack_Articles_Controller::__construct()
S
77 1 4
A8C\FSE\Full_Site_Editing::is_template_post_type()
S
79 1 3
A8C\FSE\Is_FSE_Active_Test::testFunctionExists()
S
76 1 4
A8C\FSE\WP_REST_Sideload_Image_Controller::__construct()
S
73 1 5
A8C\FSE\Mailerlite\WPCOM_Widget_Mailerlite::update()
S
70 1 6
Automattic\Jetpack\Global_Styles\Data_Point_Option::get_option_name()
S
82 1 3
A8C\FSE\WP_Template_Inserter::__construct()
S
69 1 7
Automattic\Jetpack\Global_Styles\Global_Styles::rest_api_init()
S
65 1 10
A8C\FSE\WPCOM_Block_Editor_NUX::__construct()
S
75 1 4
user_in_test_segment()
S
73 1 5
A8C\FSE\Coming_soon\Coming_Soon_Test::test_add_public_coming_soon_to_settings_endpoint_post()
S
67 1 8
footercredit_rel_nofollow_link()
S
79 1 3
Automattic\Jetpack\Global_Styles\JSON_Endpoint::permission_callback()
S
80 1 3
Newspack_Blocks::init()
S
72 1 5
get_default_footer_credit_option()
S
80 1 3
Automattic\Jetpack\Global_Styles\Data_Set::__construct()
S
76 1 4
A8C\FSE\REST_Templates_Controller::get_item_schema()
S
69 1 6
is_site_eligible_for_full_site_editing()
S
79 1 3
get_theme_slug()
S
80 1 3
load_wpcom_block_patterns_modifications()
S
100 1 2
A8C\FSE\WP_Template_Inserter::get_template_locale()
S
75 1 4
load_countdown_block()
S
81 1 3
Newspack_Blocks_API::video_playlist_endpoint()
S
74 1 4