Code Analysis: PWA 0.8.0

Function Rating Maintainability Complexity Lines of code
WP_Service_Worker_Navigation_Routing_Component::serve()
C
27
24 149
WP_Service_Worker_Scripts_Integration::register()
B
39 18 62
WP_Service_Worker_Styles_Integration::register()
B
39 18 61
WP_Web_App_Manifest::manifest_link_and_meta()
B
42 16 50
WP_Service_Worker_Custom_Header_Integration::register()
B
40 15 61
pwa_register_service_worker_integrations()
A
38 12 70
wp_print_service_workers()
A
42 13 51
WP_Service_Worker_Caching_Routes::normalize_configuration()
A
39 10 77
WP_Service_Worker_Scripts::get_validated_file_path()
A
44 12 43
WP_Service_Worker_Caching_Routes::register()
A
47 11 37
pwa_locate_template()
A
50 11 29
WP_Web_App_Manifest::render_short_name_settings_field()
A
41 7 80
WP_Service_Worker_Configuration_Component::get_script()
A
44 8 44
WP_Web_App_Manifest::get_manifest()
A
48 8 32
print_admin_pointer()
A
43 6 56
WP_Web_App_Manifest::validate_site_icon()
A
52 8 23
WP_Web_App_Manifest::get_icons()
S
50 7 29
WP_Service_Workers::serve_request()
S
46 6 39
WP_Service_Worker_Custom_Logo_Integration::register()
S
48 6 34
WP_Service_Worker_Caching_Routes::prepare_strategy_args_for_js_export()
S
49 6 30
WP_Service_Worker_Uploaded_Image_Caching_Component::serve()
S
46 5 42
WP_Service_Worker_Site_Icon_Integration::register()
S
48 5 37
wp_service_worker_offline_page_reload()
S
49 3 66
pwa_parse_query_for_error_template()
S
55 6 19
WP_Web_App_Manifest::get_theme_color()
S
59 6 15
WP_Service_Worker_Theme_Asset_Caching_Component::serve()
S
50 5 28
WP_Web_App_Manifest::test_short_name_present_in_manifest()
S
43 3 58
WP_Service_Worker_Scripts::do_item()
S
53 5 22
WP_Web_App_Manifest::test_site_icon()
S
47 4 36
wp_get_service_worker_url()
S
55 5 20
_pwa_check_disabled_navigation_preload()
S
45 3 49
WP_Service_Worker_Precaching_Routes::register()
S
58 5 15
WP_Service_Worker_Custom_Background_Integration::register()
S
51 4 29
WP_Service_Worker_Admin_Assets_Integration::register()
S
47 3 38
WP_Service_Worker_Core_Asset_Caching_Component::serve()
S
53 4 22
WP_Service_Worker_Plugin_Asset_Caching_Component::serve()
S
53 4 22
WP_Service_Worker_Scripts::register()
S
55 4 21
wp_service_worker_loaded()
S
61 4 13
_pwa_filter_template_include()
S
63 4 12
WP_Service_Worker_Precaching_Routes::register_emoji_script()
S
61 4 12
pwa_filter_document_title_parts()
S
63 4 11
WP_Service_Worker_Caching_Routes::convert_camel_case_array_keys_to_snake_case()
S
63 4 10
WP_Service_Worker_Caching_Routes::convert_snake_case_array_keys_to_camel_case()
S
63 4 10
WP_Service_Worker_Admin_Assets_Integration::get_tinymce_file_list()
S
58 3 15
wp_unauthenticate_error_template_requests()
S
73 4 5
WP_Service_Worker_Admin_Assets_Integration::get_routes_from_file_list()
S
59 3 14
WP_Service_Worker_Base_Integration::is_local_file_url()
S
60 3 13
WP_Service_Worker_Fonts_Integration::register()
S
48 1 42
pwa_customize_register_site_icon_maskable()
S
53 2 25
WP_Service_Workers::__construct()
S
54 2 22
WP_Service_Worker_Caching_Routes_Component::get_script()
S
58 2 17
WP_Service_Worker_Precaching_Routes_Component::get_script()
S
58 2 16
WP_Service_Worker_Navigation_Routing_Component::get_navigation_route_denylist_patterns()
S
57 2 16
wp_disable_script_concatenation()
S
64 3 10
pwa_filter_body_class()
S
65 3 10
is_offline()
S
65 3 8
is_500()
S
65 3 8
WP_Service_Worker_Navigation_Routing_Component::get_nav_menu_locations_hash()
S
65 3 9
WP_Service_Worker_Admin_Assets_Integration::flag_admin_assets_with_precache()
S
68 3 7
wp_filter_robots_for_error_template()
S
71 3 6
wp_add_error_template_no_robots()
S
74 3 5
pwa_customize_controls_enqueue_site_icon_script()
S
56 1 20
render_offline_browsing_setting_field()
S
57 1 19
_pwa_incorrect_plugin_slug_admin_notice()
S
60 1 18
WP_Service_Worker_Admin_Assets_Integration::get_woff_file_list()
S
60 1 16
pwa_load_service_worker_integrations()
S
69 2 7
WP_Web_App_Manifest::rest_permission()
S
69 2 6
WP_Service_Worker_Base_Integration::get_attachment_image_urls()
S
70 2 6
wp_service_worker_error_details_template()
S
66 2 8
WP_Service_Worker_Scripts::init()
S
64 2 9
WP_Service_Workers::get_current_scope()
S
79 2 3
pwa_filter_pre_handle_404_for_error_template_requests()
S
72 2 6
WP_Service_Worker_Navigation_Routing_Component::replace_exported_variable()
S
71 2 6
wp_service_workers()
S
70 2 7
WP_Web_App_Manifest::is_name_short()
S
71 2 5
WP_Web_App_Manifest::sanitize_short_name()
S
68 2 7
pwa_get_header()
S
64 2 10
pwa_get_footer()
S
64 2 10
pwa_get_query_template()
S
64 2 9
_pwa_print_php_version_admin_notice()
S
64 1 14
_pwa_print_build_needed_notice()
S
64 1 14
WP_Web_App_Manifest::register_short_name_setting()
S
62 1 12
WP_Web_App_Manifest::add_short_name_settings_field()
S
63 1 12
wp_service_worker_get_error_messages()
S
63 1 11
WP_Web_App_Manifest::add_pwa_site_health_tests()
S
62 1 11
WP_Web_App_Manifest::register_manifest_rest_route()
S
64 1 11
WP_Service_Worker_Base_Integration::__construct()
S
82 1 3
WP_Service_Worker_Styles_Integration::define_scope()
S
81 1 3
WP_Service_Worker_Custom_Background_Integration::define_scope()
S
81 1 3
WP_Service_Workers::get_registry()
S
82 1 3
wp_service_worker_styles()
S
80 1 3
WP_Service_Worker_Precaching_Routes_Component::__construct()
S
81 1 3
register_offline_browsing_setting()
S
66 1 10
WP_Service_Worker_Precaching_Routes_Component::get_priority()
S
81 1 3
wp_service_worker_skip_waiting()
S
79 1 3
wp_ajax_wp_service_worker()
S
78 1 4
pwa_add_rewrite_rules()
S
67 1 8
WP_Service_Worker_Uploaded_Image_Caching_Component::get_priority()
S
82 1 3
WP_Service_Worker_Precaching_Routes::get_all()
S
82 1 3
WP_Service_Worker_Scripts_Integration::define_scope()
S
81 1 3
wp_register_service_worker_caching_route()
S
79 1 3
pwa_add_public_query_vars()
S
77 1 4
WP_Service_Worker_Custom_Logo_Integration::define_scope()
S
81 1 3
WP_Service_Worker_Configuration_Component::serve()
S
69 1 8
WP_Service_Worker_Caching_Routes_Component::__construct()
S
81 1 3
_pwa_deactivate_plugin()
S
73 1 5
wp_register_service_worker_script()
S
80 1 3
WP_Service_Worker_Precaching_Routes_Component::serve()
S
67 1 9
pwa_serve_admin_error_template()
S
73 1 5
WP_Service_Worker_Styles_Integration::__construct()
S
77 1 4
WP_Service_Worker_Site_Icon_Integration::define_scope()
S
81 1 3
wp_register_service_worker_precaching_route()
S
80 1 3
WP_Web_App_Manifest::rest_serve_manifest()
S
72 1 5
WP_Service_Worker_Scripts::__construct()
S
71 1 6
WP_Service_Worker_Theme_Asset_Caching_Component::get_priority()
S
82 1 3
WP_Service_Worker_Scripts::caching_routes()
S
82 1 3
WP_Service_Worker_Configuration_Component::get_priority()
S
81 1 3
get_500_template()
S
70 1 7
WP_Service_Worker_Navigation_Routing_Component::get_priority()
S
82 1 3
WP_Web_App_Manifest::get_url()
S
79 1 3
WP_Service_Worker_Scripts_Integration::__construct()
S
77 1 4
WP_Web_App_Manifest::init()
S
66 1 8
get_offline_template()
S
70 1 7
wp_service_worker_update_node()
S
80 1 3
WP_Service_Worker_Base_Integration::get_scope()
S
82 1 3
WP_Service_Worker_Fonts_Integration::define_scope()
S
81 1 3
_pwa_activate_plugin()
S
78 1 4
wp_service_worker_json_encode()
S
74 1 4
WP_Service_Worker_Caching_Routes::get_all()
S
82 1 3
wp_service_worker_error_message_placeholder()
S
83 1 3
WP_Service_Worker_Caching_Routes_Component::get_priority()
S
82 1 3
WP_Service_Worker_Styles_Integration::get_priority()
S
82 1 3
WP_Service_Worker_Scripts::get_all()
S
80 1 3
WP_Service_Worker_Caching_Routes::convert_snake_case_to_camel_case()
S
66 1 9
WP_Service_Worker_Base_Integration::define_scope()
S
100 1 0
WP_Service_Worker_Scripts::precaching_routes()
S
82 1 3
WP_Service_Worker_Core_Asset_Caching_Component::get_priority()
S
82 1 3
WP_Service_Worker_Navigation_Routing_Component::get_offline_post_request_script()
S
65 1 9
_pwa_add_disabled_navigation_preload_site_status_test()
S
68 1 7
add_offline_browsing_setting_field()
S
68 1 8
WP_Service_Worker_Plugin_Asset_Caching_Component::get_priority()
S
82 1 3
WP_Service_Worker_Caching_Routes_Component::serve()
S
67 1 9
WP_Service_Worker_Custom_Header_Integration::define_scope()
S
81 1 3
WP_Service_Worker_Admin_Assets_Integration::define_scope()
S
81 1 3
WP_Service_Worker_Base_Integration::get_priority()
S
82 1 3
wp_hide_admin_bar_offline()
S
80 1 3
WP_Service_Worker_Caching_Routes::convert_camel_case_to_snake_case()
S
66 1 9
WP_Service_Worker_Scripts_Integration::get_priority()
S
82 1 3
WP_Service_Worker_Navigation_Routing_Component::get_script()
S
64 1 9