Code Analysis: Performance Lab 2.9.0

Function Rating Maintainability Complexity Lines of code
perflab_render_plugin_card()
D
19
40 263
webp_uploads_remove_sources_files()
D
31 42 102
webp_uploads_create_sources_property()
D
29
36 125
webp_uploads_update_image_onchange()
C
32 28 102
webp_uploads_img_tag_update_mime_type()
B
38 22 71
webp_uploads_generate_additional_image_source()
B
37 22 67
perflab_get_modules()
B
41 16 59
perflab_run_module_activation_deactivation()
A
43 15 48
webp_uploads_update_sources()
A
44 15 43
perflab_aea_audit_enqueued_styles()
A
47 15 31
perflab_install_activate_standalone_plugins_callback()
A
41 13 56
dominant_color_img_tag_add_dominant_color()
A
45 14 41
perflab_plugin_admin_notices()
A
39 11 72
perflab_register_default_server_timing_before_template_metrics()
A
38 10 84
perflab_aea_audit_enqueued_scripts()
A
49 13 27
webp_uploads_update_rest_attachment()
A
50 13 25
Perflab_Server_Timing::register_metric()
A
45 10 47
perflab_maybe_set_object_cache_dropin()
A
50 11 28
perflab_register_additional_server_timing_metrics_from_setting()
A
43 9 55
perflab_render_modules_page_field()
A
43 9 53
perflab_load_modules_page()
A
45 9 42
perflab_admin_pointer()
A
45 9 42
perflab_register_default_server_timing_template_metrics()
A
41 7 66
webp_uploads_generate_image_size()
A
50 9 30
webp_uploads_update_image_references()
A
49 9 30
webp_uploads_backup_sources()
A
50 8 29
Dominant_Color_Image_Editor_Imagick::has_transparency()
A
51 8 26
dominant_color_update_attachment_image_attributes()
A
53 8 21
perflab_load_server_timing_api_from_dropin()
A
55 8 20
webp_uploads_wepb_fallback()
A
49 7 34
perflab_activate_plugin()
A
49 7 31
dominant_color_get_dominant_color_data()
S
49 6 35
perflab_maybe_remove_object_cache_dropin()
S
55 7 19
webp_uploads_get_next_full_size_key_from_backup()
S
55 7 19
perflab_get_module_data()
S
49 6 31
perflab_aea_enqueued_js_assets_test()
S
42 4 59
perflab_aea_enqueued_css_assets_test()
S
42 4 59
webp_uploads_should_discard_additional_image_file()
S
61 7 11
perflab_load_server_timing_page()
S
40 2 86
webp_uploads_get_upload_image_mime_transforms()
S
54 6 22
Perflab_Server_Timing_Metric::set_value()
S
54 6 22
webp_uploads_in_frontend_body()
S
63 7 10
perflab_render_server_timing_page_output_buffering_section()
S
45 3 53
perflab_deactivate_plugin()
S
53 5 23
perflab_render_plugins_ui()
S
50 4 34
dominant_color_set_image_editors()
S
56 5 19
perflab_sanitize_server_timing_setting()
S
49 4 34
Dominant_Color_Image_Editor_GD::has_transparency()
S
56 5 17
webp_uploads_filter_image_editor_output_format()
S
58 5 16
webp_uploads_update_attachment_metadata()
S
58 5 16
perflab_get_active_module_data_with_inactive_standalone_plugins()
S
60 5 14
perflab_is_valid_module()
S
60 5 14
perflab_render_pointer()
S
47 3 44
webp_uploads_wp_get_missing_image_subsizes()
S
60 5 13
Dominant_Color_Image_Editor_Imagick::get_dominant_color()
S
56 4 17
perflab_enqueue_modules_page_scripts()
S
46 2 46
perflab_get_generator_content()
S
58 4 15
perflab_can_load_module()
S
59 4 15
webp_uploads_backup_full_image_sources()
S
60 4 13
perflab_aea_get_path_from_resource_url()
S
60 4 13
dominant_color_get_dominant_color()
S
62 4 13
dominant_color_metadata()
S
62 4 12
perflab_server_timing()
S
63 4 11
webp_uploads_restore_image()
S
62 4 11
perflab_is_standalone_plugin_loaded()
S
62 4 11
perflab_aao_autoloaded_options_test()
S
47 2 39
perflab_wrap_server_timing()
S
55 3 23
perflab_query_plugin_info()
S
57 3 19
perflab_sanitize_modules_setting()
S
58 3 19
perflab_add_modules_page()
S
57 3 17
perflab_get_module_settings()
S
58 3 16
Dominant_Color_Image_Editor_GD::get_dominant_color()
S
57 3 16
Perflab_Server_Timing::send_header()
S
58 3 16
dominant_color_rgb_to_hex()
S
66 4 7
webp_uploads_get_attachment_sources()
S
64 4 10
perflab_aea_clean_aea_audit_action()
S
67 4 7
dominant_color_get_attachment_file_path()
S
61 3 12
webp_uploads_check_webp_supported_test()
S
52 2 26
perflab_activate_module()
S
64 3 11
perflab_deactivate_module()
S
64 3 11
perflab_aea_get_total_size_bytes_enqueued_scripts()
S
63 3 11
perflab_aea_get_total_size_bytes_enqueued_styles()
S
63 3 11
Perflab_Server_Timing::format_metric_header_value()
S
62 3 11
perflab_render_server_timing_page_hooks_field()
S
54 2 22
Perflab_Server_Timing::get_header()
S
58 2 17
webp_uploads_generate_webp_jpeg_setting_callback()
S
61 2 15
perflab_get_modules_setting_default()
S
59 2 15
perflab_get_standalone_plugin_version_constants()
S
60 2 15
perflab_dismiss_wp_pointer_wrapper()
S
70 3 6
dominant_color_render_generator()
S
66 3 8
webp_uploads_render_generator()
S
66 3 8
webp_uploads_get_image_sizes_additional_mime_type_support()
S
59 2 15
dominant_color_has_transparency()
S
65 3 10
webp_uploads_media_setting_style()
S
67 2 13
perflab_add_server_timing_page()
S
61 2 13
perflab_aao_get_autoloaded_options_table()
S
60 2 13
Perflab_Server_Timing::on_template_include()
S
63 2 13
perflab_get_active_modules()
S
62 2 12
Perflab_Server_Timing_Metric::measure_after()
S
62 2 11
perflab_get_focus_areas()
S
58 1 19
perflab_print_modules_page_style()
S
100 1 18
perflab_render_modules_page()
S
61 1 17
perflab_render_server_timing_page()
S
62 1 16
perflab_aea_get_total_enqueued_styles()
S
68 2 8
perflab_load_active_and_valid_modules()
S
70 2 6
perflab_get_active_modules_with_standalone_plugins()
S
65 2 9
webp_uploads_add_media_settings_field()
S
64 2 10
webp_uploads_modify_webp_quality()
S
72 2 6
perflab_undismiss_module_migration_pointer()
S
63 2 10
perflab_aea_get_total_enqueued_scripts()
S
68 2 8
webp_uploads_get_content_image_mimes()
S
67 2 8
Perflab_Server_Timing::has_registered_metric()
S
78 2 3
perflab_register_server_timing_setting()
S
65 1 11
webp_uploads_register_media_settings_field()
S
65 1 11
perflab_register_modules_setting()
S
65 1 11
perflab_aea_add_enqueued_assets_test()
S
63 1 11
webp_uploads_update_featured_image()
S
79 1 3
perflab_render_generator()
S
75 1 4
webp_uploads_add_is_webp_supported_test()
S
68 1 7
Perflab_Server_Timing_Metric::__construct()
S
81 1 3
webp_uploads_image_edit_thumbnails_separately()
S
79 1 3
dominant_color_add_inline_style()
S
69 1 7
perflab_get_standalone_plugins()
S
75 1 5
perflab_aea_invalidate_cache_transients()
S
78 1 4
perflab_server_timing_register_metric()
S
80 1 3
perflab_aao_autoloaded_options_size()
S
75 1 4
perflab_aao_query_autoloaded_options()
S
71 1 5
Perflab_Server_Timing_Metric::get_slug()
S
82 1 3
Perflab_Server_Timing_Metric::get_value()
S
82 1 3
perflab_delete_plugin_option()
S
78 1 4
perflab_plugin_action_links_add_settings()
S
65 1 9
perflab_get_standalone_plugins_constants()
S
75 1 4
Perflab_Server_Timing_Metric::measure_before()
S
80 1 3
perflab_aao_add_autoloaded_options_test()
S
68 1 7
perflab_server_timing_use_output_buffer()
S
82 1 3
Perflab_Server_Timing::use_output_buffer()
S
71 1 5