Code Analysis: Performance Lab 3.1.0

Function Rating Maintainability Complexity Lines of code
perflab_render_plugin_card()
C
27
24 163
perflab_install_and_activate_plugin()
A
42 14 49
perflab_aea_audit_enqueued_styles()
A
47 15 31
perflab_maybe_set_object_cache_dropin()
A
46 14 37
perflab_register_default_server_timing_before_template_metrics()
A
38 10 84
perflab_aea_audit_enqueued_scripts()
A
49 13 27
perflab_get_plugin_availability()
A
45 12 41
perflab_aao_handle_update_autoload()
A
47 11 33
Perflab_Server_Timing::register_metric()
A
45 10 47
perflab_register_additional_server_timing_metrics_from_setting()
A
43 9 55
perflab_render_plugins_ui()
A
43 8 60
perflab_plugin_admin_notices()
A
43 8 51
perflab_register_default_server_timing_template_metrics()
A
41 7 66
perflab_get_plugin_settings_url()
A
51 9 25
perflab_aao_get_disabled_autoloaded_options_table()
A
44 7 47
perflab_load_server_timing_api_from_dropin()
A
55 8 20
perflab_admin_pointer()
A
53 8 20
perflab_aea_enqueued_js_assets_test()
S
42 5 60
perflab_aea_enqueued_css_assets_test()
S
42 5 60
perflab_maybe_remove_object_cache_dropin()
S
55 7 19
perflab_load_server_timing_page()
S
40 2 86
Perflab_Server_Timing_Metric::set_value()
S
54 6 22
perflab_install_activate_plugin_callback()
S
50 5 28
perflab_aea_get_total_size_bytes_enqueued_scripts()
S
60 6 13
perflab_aea_get_total_size_bytes_enqueued_styles()
S
60 6 13
perflab_render_server_timing_page_output_buffering_section()
S
45 3 53
perflab_query_plugin_info()
S
50 4 33
perflab_sanitize_server_timing_setting()
S
50 4 32
perflab_render_pointer()
S
46 3 44
perflab_rest_post_dispatch_add_server_timing()
S
61 5 12
perflab_aao_admin_notices()
S
60 4 13
perflab_aea_get_path_from_resource_url()
S
60 4 13
perflab_get_generator_content()
S
60 4 13
perflab_no_access_redirect_module_to_performance_feature_page()
S
62 4 12
perflab_server_timing()
S
63 4 11
perflab_aao_autoloaded_options_test()
S
47 2 39
perflab_wrap_server_timing()
S
55 3 23
perflab_aao_query_autoloaded_options()
S
55 3 20
Perflab_Server_Timing::send_header()
S
58 3 16
perflab_aea_clean_aea_audit_action()
S
67 4 7
perflab_aao_get_autoloaded_options_table()
S
51 2 27
avif_uploads_check_avif_supported_test()
S
52 2 26
webp_uploads_check_webp_supported_test()
S
52 2 26
Perflab_Server_Timing::format_metric_header_value()
S
62 3 11
perflab_print_features_page_style()
S
100 1 37
perflab_render_server_timing_page_hooks_field()
S
54 2 22
Perflab_Server_Timing::get_header()
S
58 2 17
perflab_dismiss_wp_pointer_wrapper()
S
70 3 6
perflab_plugin_action_links_add_settings()
S
60 2 14
perflab_print_plugin_progress_indicator_script()
S
55 1 29
Perflab_Server_Timing::on_template_include()
S
63 2 13
perflab_add_features_page()
S
60 2 13
perflab_add_server_timing_page()
S
62 2 12
Perflab_Server_Timing_Metric::measure_after()
S
62 2 11
perflab_get_standalone_plugin_data()
S
55 1 24
perflab_render_server_timing_page()
S
62 1 16
perflab_sanitize_plugin_slug()
S
69 2 7
perflab_aao_get_autoload_values_to_autoload()
S
72 2 6
perflab_aea_get_total_enqueued_styles()
S
68 2 8
perflab_cleanup_option()
S
75 2 5
perflab_aea_get_total_enqueued_scripts()
S
68 2 8
Perflab_Server_Timing::has_registered_metric()
S
78 2 3
perflab_aao_autoloaded_options_size()
S
67 2 8
perflab_register_server_timing_setting()
S
65 1 11
perflab_aea_add_enqueued_assets_test()
S
63 1 11
perflab_aao_add_autoloaded_options_test()
S
68 1 7
Perflab_Server_Timing_Metric::get_slug()
S
82 1 3
perflab_server_timing_use_output_buffer()
S
82 1 3
Perflab_Server_Timing::use_output_buffer()
S
71 1 5
avif_uploads_add_is_avif_supported_test()
S
68 1 7
perflab_server_timing_init()
S
83 1 3
Perflab_Server_Timing_Metric::__construct()
S
81 1 3
Perflab_Server_Timing_Metric::measure_before()
S
80 1 3
perflab_get_standalone_plugin_version_constants()
S
80 1 3
perflab_aao_register_admin_actions()
S
80 1 3
perflab_get_standalone_plugins()
S
76 1 5
perflab_server_timing_register_metric()
S
80 1 3
Perflab_Server_Timing_Metric::get_value()
S
82 1 3
perflab_load_features_page()
S
70 1 6
perflab_enqueue_features_page_scripts()
S
72 1 6
webp_uploads_add_is_webp_supported_test()
S
68 1 7
perflab_get_server_timing_setting_default_value()
S
70 1 7
perflab_render_settings_page()
S
75 1 7
perflab_render_generator()
S
75 1 4
perflab_aea_invalidate_cache_transients()
S
78 1 4