Code Analysis: PWA 0.6.0

Function Rating Maintainability Complexity Lines of code
WP_Service_Worker_Navigation_Routing_Component::serve()
C
27
24 149
WP_HTTPS_UI::render_https_settings()
B
31 14 140
WP_Service_Worker_Scripts_Integration::register()
B
43 18 45
WP_Service_Worker_Styles_Integration::register()
B
43 18 44
WP_Service_Worker_Custom_Header_Integration::register()
A
43 15 46
wp_print_service_workers()
A
44 14 44
pwa_register_service_worker_integrations()
A
38 12 70
WP_Service_Worker_Scripts::get_validated_file_path()
A
43 13 45
WP_Service_Worker_Caching_Routes::normalize_configuration()
A
39 10 77
WP_Service_Worker_Caching_Routes::register()
A
47 11 37
pwa_locate_template()
A
50 11 29
WP_HTTPS_Detection::update_https_support_options()
A
43 8 53
WP_HTTPS_Detection::get_insecure_content()
A
50 9 28
WP_Service_Worker_Configuration_Component::get_script()
A
44 8 43
print_admin_pointer()
A
43 6 56
WP_HTTPS_UI::conditionally_redirect_to_https()
A
52 8 23
WP_Web_App_Manifest::get_manifest()
S
50 7 29
WP_Service_Workers::serve_request()
S
46 6 39
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
pwa_parse_query_for_error_template()
S
55 6 19
WP_Service_Worker_Custom_Logo_Integration::register()
S
57 6 17
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 56
WP_Service_Worker_Scripts::do_item()
S
52 5 24
WP_Service_Worker_Site_Icon_Integration::register()
S
55 5 20
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_Admin_Assets_Integration::register()
S
53 4 23
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_Web_App_Manifest::manifest_link_and_meta()
S
54 4 22
WP_Service_Worker_Scripts::register()
S
55 4 21
WP_Web_App_Manifest::get_icons()
S
57 4 16
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
WP_Service_Worker_Custom_Background_Integration::register()
S
61 4 12
pwa_filter_document_title_parts()
S
63 4 11
WP_Service_Worker_Admin_Assets_Integration::get_tinymce_file_list()
S
58 3 15
WP_HTTPS_Detection::has_proper_manifest()
S
58 3 15
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_routes_from_file_list()
S
59 3 14
WP_Service_Worker_Base_Integration::is_local_file_url()
S
60 3 13
WP_Service_Workers::__construct()
S
54 2 22
WP_Service_Worker_Caching_Routes_Component::get_script()
S
58 2 17
WP_Service_Worker_Navigation_Routing_Component::get_navigation_route_denylist_patterns()
S
57 2 16
WP_Service_Worker_Precaching_Routes_Component::get_script()
S
58 2 16
pwa_filter_body_class()
S
65 3 10
wp_disable_script_concatenation()
S
66 3 9
WP_HTTPS_Detection::is_currently_https()
S
65 3 9
WP_HTTPS_UI::filter_site_url_and_home()
S
69 3 6
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
65 3 9
is_offline()
S
65 3 8
is_500()
S
65 3 8
wp_add_error_template_no_robots()
S
74 3 5
wp_unauthenticate_error_template_requests()
S
74 3 5
pwa_add_rewrite_rules()
S
59 2 14
WP_Service_Worker_Fonts_Integration::register()
S
54 1 25
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
WP_HTTPS_UI::get_truncated_url()
S
70 2 6
wp_service_workers()
S
70 2 7
wp_service_worker_error_details_template()
S
66 2 8
pwa_get_footer()
S
64 2 10
pwa_get_header()
S
64 2 10
WP_HTTPS_Detection::conditionally_prevent_sslverify()
S
69 2 6
WP_HTTPS_Detection::schedule_cron()
S
73 2 5
WP_Service_Worker_Scripts::init()
S
64 2 9
pwa_get_query_template()
S
64 2 9
WP_Web_App_Manifest::rest_permission()
S
69 2 6
pwa_load_service_worker_integrations()
S
69 2 7
WP_HTTPS_UI::init()
S
65 2 9
WP_Service_Worker_Navigation_Routing_Component::replace_exported_variable()
S
71 2 6
pwa_filter_pre_handle_404_for_error_template_requests()
S
72 2 6
WP_Service_Worker_Base_Integration::get_attachment_image_urls()
S
70 2 6
WP_HTTPS_Detection::init()
S
63 2 10
WP_Service_Workers::get_current_scope()
S
79 2 3
WP_HTTPS_UI::filter_header()
S
73 2 5
_pwa_print_php_version_admin_notice()
S
64 1 14
_pwa_print_build_needed_notice()
S
64 1 14
WP_Web_App_Manifest::register_manifest_rest_route()
S
64 1 11
wp_service_worker_get_error_messages()
S
63 1 11
WP_Web_App_Manifest::get_url()
S
79 1 3
_pwa_activate_plugin()
S
78 1 4
WP_HTTPS_UI::add_settings_field()
S
68 1 8
get_offline_template()
S
70 1 7
WP_Service_Worker_Caching_Routes::convert_snake_case_to_camel_case()
S
66 1 9
wp_service_worker_styles()
S
80 1 3
WP_Service_Worker_Fonts_Integration::define_scope()
S
81 1 3
_pwa_add_disabled_navigation_preload_site_status_test()
S
68 1 7
WP_Service_Worker_Styles_Integration::get_priority()
S
82 1 3
pwa_serve_admin_error_template()
S
73 1 5
WP_HTTPS_UI::register_settings()
S
66 1 10
wp_register_service_worker_script()
S
80 1 3
WP_Service_Worker_Caching_Routes::get_all()
S
82 1 3
WP_Service_Worker_Base_Integration::get_priority()
S
82 1 3
WP_Service_Worker_Core_Asset_Caching_Component::get_priority()
S
82 1 3
WP_Service_Worker_Precaching_Routes_Component::serve()
S
67 1 9
WP_Service_Worker_Caching_Routes_Component::get_priority()
S
82 1 3
WP_HTTPS_UI::upgrade_insecure_requests()
S
76 1 4
WP_Service_Worker_Configuration_Component::get_priority()
S
81 1 3
_pwa_deactivate_plugin()
S
73 1 5
WP_Service_Worker_Site_Icon_Integration::define_scope()
S
81 1 3
wp_ajax_wp_service_worker()
S
78 1 4
wp_hide_admin_bar_offline()
S
80 1 3
WP_Service_Worker_Custom_Logo_Integration::define_scope()
S
81 1 3
WP_Service_Worker_Caching_Routes::convert_camel_case_to_snake_case()
S
66 1 9
register_offline_browsing_setting()
S
66 1 10
WP_Service_Worker_Navigation_Routing_Component::get_script()
S
64 1 9
WP_Service_Worker_Scripts::get_all()
S
80 1 3
WP_Service_Worker_Base_Integration::define_scope()
S
100 1 0
WP_HTTPS_UI::convert_to_https()
S
79 1 3
WP_Service_Worker_Base_Integration::__construct()
S
82 1 3
WP_Service_Worker_Scripts::precaching_routes()
S
82 1 3
WP_Service_Worker_Styles_Integration::define_scope()
S
81 1 3
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_Caching_Routes_Component::serve()
S
67 1 9
WP_HTTPS_UI::init_admin()
S
78 1 4
WP_Service_Worker_Styles_Integration::__construct()
S
77 1 4
WP_Service_Worker_Configuration_Component::serve()
S
69 1 8
WP_Service_Worker_Scripts::__construct()
S
71 1 6
WP_Web_App_Manifest::sort_icons_callback()
S
77 1 3
WP_Service_Worker_Navigation_Routing_Component::get_priority()
S
82 1 3
WP_Service_Worker_Scripts_Integration::define_scope()
S
81 1 3
WP_Service_Worker_Precaching_Routes_Component::__construct()
S
81 1 3
WP_Web_App_Manifest::add_short_name_site_status_test()
S
68 1 7
add_offline_browsing_setting_field()
S
68 1 8
wp_service_worker_error_message_placeholder()
S
83 1 3
WP_Web_App_Manifest::init()
S
72 1 5
WP_Service_Worker_Custom_Background_Integration::define_scope()
S
81 1 3
WP_Service_Worker_Scripts::caching_routes()
S
82 1 3
WP_Service_Worker_Scripts_Integration::get_priority()
S
82 1 3
WP_Service_Worker_Scripts_Integration::__construct()
S
77 1 4
WP_Service_Worker_Plugin_Asset_Caching_Component::get_priority()
S
82 1 3
WP_Service_Worker_Base_Integration::get_scope()
S
82 1 3
WP_Service_Worker_Precaching_Routes_Component::get_priority()
S
81 1 3
WP_Web_App_Manifest::rest_serve_manifest()
S
72 1 5
WP_HTTPS_UI::__construct()
S
81 1 3
WP_Service_Worker_Navigation_Routing_Component::get_offline_commenting_script()
S
65 1 9
wp_register_service_worker_caching_route()
S
80 1 3
WP_Service_Workers::get_registry()
S
82 1 3
wp_service_worker_update_node()
S
80 1 3
WP_Service_Worker_Caching_Routes_Component::__construct()
S
81 1 3
get_500_template()
S
70 1 7
WP_Service_Worker_Theme_Asset_Caching_Component::get_priority()
S
82 1 3
wp_service_worker_json_encode()
S
74 1 4
wp_register_service_worker_precaching_route()
S
80 1 3
WP_Service_Worker_Precaching_Routes::get_all()
S
82 1 3
wp_service_worker_skip_waiting()
S
79 1 3
pwa_add_public_query_vars()
S
77 1 4
WP_Service_Worker_Uploaded_Image_Caching_Component::get_priority()
S
82 1 3