Code Analysis: Performance Lab 1.5.0

Function Rating Maintainability Complexity Lines of code
webp_uploads_remove_sources_files()
D
31 42 102
webp_uploads_create_sources_property()
D
32 31 105
webp_uploads_update_image_onchange()
C
33 25 98
webp_uploads_generate_additional_image_source()
B
38 22 65
webp_uploads_img_tag_update_mime_type()
B
39 20 69
perflab_get_modules()
B
41 16 59
perflab_afpc_page_cache_test()
A
35 12 90
webp_uploads_update_sources()
A
44 15 43
perflab_afpc_check_for_page_caching()
A
40 14 56
perflab_aea_audit_enqueued_styles()
A
47 15 31
perflab_aea_audit_enqueued_scripts()
A
49 13 27
dominant_color_filter_content_tags()
A
45 12 40
dominant_color_img_tag_add_dominant_color()
A
48 11 32
webp_uploads_update_rest_attachment()
A
51 11 25
perflab_load_modules_page()
A
47 9 39
webp_uploads_generate_image_size()
A
50 9 30
webp_uploads_update_image_references()
A
49 9 30
perflab_oc_health_should_suggest_persistent_object_cache()
A
43 7 53
Dominant_Color_Image_Editor_Imagick::has_transparency()
A
51 8 26
dominant_color_update_attachment_image_attributes()
A
53 8 23
webp_uploads_wepb_fallback()
A
49 7 34
webp_uploads_backup_sources()
S
50 7 29
perflab_afpc_get_page_cache_detail()
S
51 7 26
_dominant_color_get_dominant_color_data()
S
49 6 35
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
perflab_render_modules_page_field()
S
46 5 42
webp_uploads_should_discard_additional_image_file()
S
61 7 11
perflab_oc_health_persistent_object_cache()
S
43 4 56
webp_uploads_in_frontend_body()
S
63 7 10
dominant_color_set_image_editors()
S
56 5 19
Dominant_Color_Image_Editor_GD::has_transparency()
S
56 5 17
webp_uploads_get_upload_image_mime_transforms()
S
58 5 16
perflab_admin_pointer()
S
57 5 16
webp_uploads_update_attachment_metadata()
S
58 5 16
webp_uploads_filter_image_editor_output_format()
S
58 5 16
webp_uploads_wp_get_missing_image_subsizes()
S
60 5 13
Dominant_Color_Image_Editor_Imagick::get_dominant_color()
S
56 4 17
perflab_aea_get_path_from_resource_url()
S
60 4 13
webp_uploads_backup_full_image_sources()
S
60 4 13
dominant_color_get_dominant_color()
S
62 4 13
dominant_color_metadata()
S
62 4 12
webp_uploads_restore_image()
S
62 4 11
perflab_aao_autoloaded_options_test()
S
47 2 39
perflab_afpc_get_page_cache_headers()
S
48 2 37
perflab_sanitize_modules_setting()
S
58 3 19
perflab_add_modules_page()
S
57 3 17
Dominant_Color_Image_Editor_GD::get_dominant_color()
S
57 3 16
webp_uploads_get_attachment_sources()
S
64 4 10
perflab_aea_clean_aea_audit_action()
S
67 4 7
dominant_color_rgb_to_hex()
S
66 4 7
wp_get_attachment_file_path()
S
61 3 12
perflab_aea_get_total_size_bytes_enqueued_scripts()
S
63 3 11
perflab_can_load_module()
S
63 3 11
webp_uploads_check_webp_supported_test()
S
52 2 26
perflab_aea_get_total_size_bytes_enqueued_styles()
S
63 3 11
perflab_render_pointer()
S
49 1 39
dominant_color_has_transparency()
S
65 3 10
wp_filesize()
S
66 3 8
perflab_get_modules_setting_default()
S
59 2 15
webp_uploads_get_image_sizes_additional_mime_type_support()
S
59 2 15
perflab_is_valid_module()
S
64 3 10
perflab_aao_get_autoloaded_options_table()
S
60 2 13
perflab_get_active_modules()
S
63 2 12
perflab_get_focus_areas()
S
58 1 19
perflab_aea_get_total_enqueued_scripts()
S
68 2 8
perflab_load_active_and_valid_modules()
S
70 2 6
webp_uploads_get_content_image_mimes()
S
67 2 8
perflab_oc_health_add_tests()
S
65 2 9
perflab_aea_get_total_enqueued_styles()
S
68 2 8
perflab_afpc_register_async_test_endpoints()
S
61 1 15
perflab_render_modules_page()
S
63 1 15
perflab_oc_health_available_object_cache_services()
S
60 1 14
perflab_register_modules_setting()
S
65 1 11
perflab_aea_add_enqueued_assets_test()
S
63 1 11
perflab_afpc_add_full_page_cache_test()
S
65 1 9
perflab_delete_plugin_option()
S
82 1 3
perflab_plugin_action_links_add_settings()
S
65 1 9
perflab_aea_invalidate_cache_transients()
S
78 1 4
perflab_aao_add_autoloaded_options_test()
S
68 1 7
webp_uploads_add_is_webp_supported_test()
S
68 1 7
perflab_aao_autoloaded_options_size()
S
75 1 4
dominant_color_add_inline_style()
S
69 1 7
perflab_get_generator_content()
S
67 1 8
perflab_aao_query_autoloaded_options()
S
71 1 5
perflab_get_module_settings()
S
79 1 3
webp_uploads_update_featured_image()
S
79 1 3
perflab_render_generator()
S
75 1 4
perflab_afpc_get_good_response_time_threshold()
S
79 1 3