Code Analysis: Performance Lab 2.4.0

Function Rating Maintainability Complexity Lines of code
webp_uploads_remove_sources_files()
D
31 42 102
webp_uploads_create_sources_property()
D
29
36 125
Perflab_SQLite_PDO_Engine::execute_query()
D
33 34 92
Perflab_SQLite_Alter_Query::command_tokenizer()
C
30 27 128
Perflab_SQLite_PDO_Driver::execute_duplicate_key_update()
C
30 26 118
webp_uploads_update_image_onchange()
C
32 25 102
webp_uploads_img_tag_update_mime_type()
B
38 22 71
webp_uploads_generate_additional_image_source()
B
37 22 67
Perflab_SQLite_PDO_Engine::query()
B
36 20 77
Perflab_SQLite_PDO_Engine::convert_to_index_object()
B
36 18 80
Perflab_SQLite_PDO_Driver::rewrite_query()
B
38 18 74
perflab_render_modules_page_field()
B
36 17 81
Perflab_SQLite_PDO_User_Defined_Functions::derive_interval()
B
41 17 51
Perflab_SQLite_Alter_Query::rewrite_query()
B
39 16 64
Perflab_SQLite_PDO_Engine::determine_query_type()
B
43 17 48
perflab_get_modules()
B
41 16 59
webp_uploads_update_sources()
A
44 15 43
perflab_aea_audit_enqueued_styles()
A
47 15 31
Perflab_SQLite_PDO_Driver::parse_query()
A
44 14 46
dominant_color_img_tag_add_dominant_color()
A
45 14 41
perflab_sqlite_make_db_sqlite()
A
38 11 73
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
dominant_color_filter_content_tags()
A
45 12 40
Perflab_SQLite_Alter_Query::handle_change_command()
A
41 11 54
Perflab_SQLite_DB::query()
A
47 12 35
Perflab_SQLite_PDO_Engine::execute_alter_query()
A
43 11 47
Perflab_SQLite_PDO_Engine::convert_to_columns_object()
A
47 11 37
Perflab_Server_Timing::register_metric()
A
45 10 47
Perflab_SQLite_DB::print_error()
A
44 10 44
wp_install()
A
41 9 58
Perflab_SQLite_Alter_Query::handle_alter_command()
A
40 9 57
perflab_run_module_activation_deactivation()
A
55 11 19
Perflab_SQLite_PDO_Engine::execute_insert_query()
A
44 9 45
perflab_admin_pointer()
A
44 9 43
perflab_load_modules_page()
A
46 9 39
perflab_register_default_server_timing_template_metrics()
A
41 7 66
webp_uploads_update_image_references()
A
49 9 30
webp_uploads_generate_image_size()
A
50 9 30
Perflab_SQLite_PDO_Engine::__construct()
A
45 8 41
perflab_maybe_set_object_cache_dropin()
A
52 9 25
Perflab_SQLite_PDO_Engine::prepare_directory()
A
47 8 40
perflab_sqlite_plugin_filter_debug_data()
A
46 8 38
Dominant_Color_Image_Editor_Imagick::has_transparency()
A
51 8 26
Perflab_SQLite_PDO_Engine::get_columns()
A
42 6 56
Perflab_SQLite_Alter_Query::handle_modify_command()
A
46 7 36
dominant_color_update_attachment_image_attributes()
A
53 8 21
webp_uploads_wepb_fallback()
A
49 7 34
Perflab_SQLite_PDO_Engine::execute_create_query()
A
48 7 32
webp_uploads_backup_sources()
S
50 7 29
Perflab_SQLite_PDO_User_Defined_Functions::field()
S
53 7 20
Perflab_SQLite_PDO_Engine::extract_variables()
S
48 6 35
_dominant_color_get_dominant_color_data()
S
49 6 35
webp_uploads_get_next_full_size_key_from_backup()
S
55 7 19
perflab_maybe_remove_object_cache_dropin()
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_SQLite_PDO_Engine::__destruct()
S
50 6 29
Perflab_SQLite_PDO_Engine::parse_multiple_inserts()
S
51 6 29
fetchpriority_img_tag_add_attr()
S
58 7 14
webp_uploads_should_discard_additional_image_file()
S
61 7 11
Perflab_Server_Timing_Metric::set_value()
S
54 6 22
webp_uploads_get_upload_image_mime_transforms()
S
54 6 22
Perflab_SQLite_PDO_Engine::get_error_message()
S
48 5 34
Perflab_SQLite_Create_Query::rewrite_field_types()
S
43 4 49
Perflab_SQLite_Alter_Query::handle_single_command()
S
55 6 18
perflab_load_server_timing_api_from_dropin()
S
57 6 17
Perflab_SQLite_Create_Query::rewrite_query()
S
50 5 30
webp_uploads_in_frontend_body()
S
63 7 10
Perflab_SQLite_PDO_Driver::handle_orderby_field()
S
50 5 28
Perflab_SQLite_Alter_Query::handle_drop_primary_key()
S
50 5 27
Perflab_SQLite_Create_Query::_rewrite_unique_key()
S
52 5 23
Perflab_SQLite_Create_Query::_rewrite_key()
S
53 5 22
Perflab_SQLite_PDO_Engine::prepare_query()
S
55 5 19
dominant_color_set_image_editors()
S
56 5 19
perflab_sqlite_plugin_adminbar_item()
S
55 5 18
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_render_pointer()
S
47 3 44
webp_uploads_wp_get_missing_image_subsizes()
S
60 5 13
Perflab_SQLite_PDO_Driver::rewrite_limit_usage()
S
60 5 12
Perflab_SQLite_PDO_Driver::rewrite_order_by_usage()
S
60 5 12
perflab_sqlite_plugin_admin_notice()
S
52 4 27
Perflab_SQLite_PDO_Driver::delete_workaround()
S
53 4 20
Perflab_SQLite_Alter_Query::convert_field_types()
S
53 4 20
Perflab_SQLite_PDO_Driver::rewrite_between()
S
56 4 17
Dominant_Color_Image_Editor_Imagick::get_dominant_color()
S
56 4 17
Perflab_SQLite_PDO_User_Defined_Functions::locate()
S
60 4 14
Perflab_SQLite_Object_Array::__construct()
S
61 4 13
perflab_is_valid_module()
S
61 4 13
webp_uploads_backup_full_image_sources()
S
60 4 13
dominant_color_get_dominant_color()
S
62 4 13
perflab_aea_get_path_from_resource_url()
S
60 4 13
dominant_color_metadata()
S
62 4 12
Perflab_SQLite_PDO_Engine::process_results()
S
62 4 11
webp_uploads_restore_image()
S
62 4 11
perflab_is_standalone_plugin_loaded()
S
63 4 11
perflab_aao_autoloaded_options_test()
S
47 2 39
perflab_wrap_server_timing()
S
55 3 23
Perflab_SQLite_Alter_Query::handle_add_primary_key()
S
54 3 20
Perflab_SQLite_PDO_Engine::show_variables_workaround()
S
55 3 20
perflab_sanitize_modules_setting()
S
58 3 19
Perflab_SQLite_PDO_User_Defined_Functions::date_add()
S
58 3 17
Perflab_SQLite_PDO_User_Defined_Functions::date_sub()
S
58 3 17
Perflab_SQLite_PDO_Engine::show_status_workaround()
S
49 2 32
perflab_add_modules_page()
S
57 3 17
Dominant_Color_Image_Editor_GD::get_dominant_color()
S
57 3 16
Perflab_Server_Timing::send_header()
S
58 3 16
perflab_get_module_settings()
S
58 3 16
Perflab_SQLite_PDO_Driver::handle_show_columns_query()
S
58 3 15
dominant_color_rgb_to_hex()
S
66 4 7
perflab_dismiss_wp_pointer_wrapper()
S
70 4 6
perflab_aea_clean_aea_audit_action()
S
67 4 7
webp_uploads_get_attachment_sources()
S
64 4 10
Perflab_SQLite_Create_Query::post_process()
S
59 3 14
Perflab_SQLite_PDO_User_Defined_Functions::log()
S
61 3 13
Perflab_SQLite_PDO_Engine::replace_variables_with_placeholders()
S
59 3 13
Perflab_SQLite_PDO_Engine::set_error()
S
60 3 13
Perflab_SQLite_PDO_Engine::convert_result_check_or_analyze()
S
61 3 12
Perflab_SQLite_PDO_User_Defined_Functions::concat()
S
61 3 12
wp_get_attachment_file_path()
S
61 3 12
perflab_deactivate_module()
S
64 3 11
perflab_can_load_module()
S
63 3 11
Perflab_SQLite_PDO_Engine::convert_to_object()
S
63 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_activate_module()
S
64 3 11
webp_uploads_check_webp_supported_test()
S
52 2 26
Perflab_SQLite_PDO_User_Defined_Functions::dateformat()
S
47 1 37
Perflab_SQLite_Create_Query::rewrite_autoincrement()
S
58 2 19
Perflab_Server_Timing::get_header()
S
58 2 17
Perflab_SQLite_PDO_Engine::init()
S
64 3 9
perflab_get_modules_setting_default()
S
59 2 15
fetchpriority_render_generator()
S
66 3 8
dominant_color_render_generator()
S
66 3 8
webp_uploads_modify_webp_quality()
S
68 3 7
webp_uploads_generate_webp_jpeg_setting_callback()
S
61 2 15
webp_uploads_get_image_sizes_additional_mime_type_support()
S
59 2 15
webp_uploads_render_generator()
S
66 3 8
dominant_color_has_transparency()
S
65 3 10
Perflab_Server_Timing::format_metric_header_value()
S
64 3 10
Perflab_SQLite_PDO_Engine::prepare_engine()
S
65 3 9
Perflab_SQLite_PDO_Driver::handle_show_query()
S
62 3 10
Perflab_SQLite_PDO_User_Defined_Functions::__construct()
S
66 3 8
Perflab_SQLite_Create_Query::rewrite_foreign_key()
S
66 3 8
perflab_aao_get_autoloaded_options_table()
S
60 2 13
webp_uploads_media_setting_style()
S
67 2 13
Perflab_Server_Timing::on_template_include()
S
63 2 13
perflab_get_active_modules()
S
62 2 12
Perflab_SQLite_PDO_Driver::handle_sql_count()
S
61 2 12
Perflab_SQLite_Create_Query::add_if_not_exists()
S
62 2 12
Perflab_Server_Timing_Metric::measure_after()
S
62 2 11
perflab_get_focus_areas()
S
58 1 19
Perflab_SQLite_PDO_Engine::flush()
S
59 1 16
Perflab_SQLite_PDO_Engine::beginTransaction()
S
70 2 7
perflab_aea_get_total_enqueued_styles()
S
68 2 8
webp_uploads_add_media_settings_field()
S
64 2 10
Perflab_SQLite_Create_Query::strip_backticks()
S
70 2 6
Perflab_Server_Timing::has_registered_metric()
S
78 2 3
Perflab_SQLite_PDO_Driver::handle_show_index()
S
66 2 8
Perflab_SQLite_PDO_Driver::rewrite_date_add()
S
66 2 7
Perflab_SQLite_Create_Query::rewrite_primary_key()
S
68 2 7
Perflab_SQLite_PDO_User_Defined_Functions::_if()
S
78 2 3
Perflab_SQLite_PDO_User_Defined_Functions::unix_timestamp()
S
78 2 3
Perflab_SQLite_Create_Query::get_table_name()
S
70 2 6
Perflab_SQLite_PDO_Driver::handle_describe_query()
S
67 2 7
Perflab_SQLite_PDO_User_Defined_Functions::from_unixtime()
S
74 2 4
perflab_render_modules_page()
S
63 1 15
Perflab_SQLite_PDO_Driver::rewrite_date_sub()
S
66 2 7
perflab_load_active_and_valid_modules()
S
70 2 6
webp_uploads_get_content_image_mimes()
S
67 2 8
perflab_server_timing()
S
67 2 8
Perflab_SQLite_PDO_Engine::get_debug_info()
S
69 2 7
Perflab_SQLite_PDO_Engine::get_sqlite_version()
S
64 2 10
Perflab_SQLite_DB::load_col_info()
S
72 2 6
perflab_aea_get_total_enqueued_scripts()
S
68 2 8
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
Perflab_SQLite_PDO_Engine::commit()
S
77 1 4
Perflab_SQLite_DB::_real_escape()
S
81 1 3
Perflab_SQLite_PDO_Driver::fix_date_quoting()
S
75 1 4
Perflab_SQLite_PDO_User_Defined_Functions::hour()
S
75 1 4
Perflab_SQLite_PDO_Driver::rewrite_badly_formed_dates()
S
75 1 4
Perflab_SQLite_PDO_User_Defined_Functions::utc_date()
S
79 1 3
Perflab_SQLite_PDO_Engine::execute_insert_query_new()
S
66 1 8
Perflab_SQLite_PDO_User_Defined_Functions::month()
S
79 1 3
Perflab_SQLite_PDO_User_Defined_Functions::year()
S
79 1 3
Perflab_SQLite_PDO_User_Defined_Functions::second()
S
78 1 3
perflab_server_timing_use_output_buffer()
S
82 1 3
Perflab_SQLite_PDO_User_Defined_Functions::minute()
S
78 1 3
Perflab_SQLite_PDO_User_Defined_Functions::utc_timestamp()
S
79 1 3
Perflab_SQLite_Create_Query::rewrite_enum()
S
75 1 4
Perflab_SQLite_PDO_Driver::rewrite_regexp()
S
75 1 4
Perflab_SQLite_DB::select()
S
81 1 3
dominant_color_add_inline_style()
S
69 1 7
Perflab_SQLite_PDO_User_Defined_Functions::char_length()
S
80 1 3
Perflab_SQLite_Create_Query::_remove_length()
S
82 1 3
Perflab_SQLite_PDO_Driver::handle_truncate_query()
S
75 1 4
Perflab_SQLite_PDO_User_Defined_Functions::isnull()
S
80 1 3
Perflab_SQLite_Create_Query::rewrite_unique_key()
S
70 1 7
Perflab_SQLite_PDO_Engine::get_affected_rows()
S
82 1 3
Perflab_SQLite_DB::__construct()
S
79 1 3
Perflab_Server_Timing::use_output_buffer()
S
79 1 3
Perflab_Server_Timing_Metric::measure_before()
S
80 1 3
Perflab_SQLite_PDO_Engine::get_return_value()
S
82 1 3
Perflab_SQLite_PDO_User_Defined_Functions::release_lock()
S
82 1 3
Perflab_SQLite_PDO_User_Defined_Functions::greatest()
S
76 1 4
Perflab_SQLite_Create_Query::_rewrite_enum()
S
73 1 4
Perflab_SQLite_PDO_User_Defined_Functions::now()
S
80 1 3
Perflab_SQLite_DB::set_charset()
S
91 1 2
Perflab_SQLite_PDO_Driver::rewrite_update_ignore()
S
79 1 3
Perflab_Server_Timing_Metric::__construct()
S
81 1 3
Perflab_SQLite_PDO_Driver::return_true()
S
81 1 3
Perflab_SQLite_DB::db_version()
S
82 1 3
Perflab_SQLite_PDO_Driver::_fix_date_quoting()
S
77 1 3
Perflab_SQLite_PDO_User_Defined_Functions::curdate()
S
80 1 3
Perflab_SQLite_PDO_User_Defined_Functions::version()
S
82 1 3
Perflab_SQLite_PDO_Engine::get_insert_id()
S
82 1 3
Perflab_SQLite_DB::flush()
S
66 1 9
Perflab_SQLite_Create_Query::rewrite_set()
S
75 1 4
Perflab_SQLite_PDO_User_Defined_Functions::least()
S
76 1 4
Perflab_SQLite_DB::set_sql_mode()
S
91 1 2
Perflab_SQLite_DB::has_cap()
S
79 1 3
Perflab_SQLite_Create_Query::rewrite_unsigned()
S
79 1 3
Perflab_SQLite_PDO_Driver::handle_create_query()
S
73 1 5
Perflab_SQLite_PDO_Engine::get_num_rows()
S
82 1 3
Perflab_SQLite_DB::check_connection()
S
82 1 3
perflab_get_generator_content()
S
67 1 8
Perflab_SQLite_DB::esc_like()
S
82 1 3
Perflab_SQLite_PDO_User_Defined_Functions::date()
S
79 1 3
Perflab_SQLite_Create_Query::rewrite_character_set()
S
68 1 7
webp_uploads_update_featured_image()
S
79 1 3
perflab_render_generator()
S
75 1 4
Perflab_SQLite_PDO_User_Defined_Functions::day()
S
79 1 3
Perflab_SQLite_Create_Query::quote_illegal_field()
S
79 1 3
Perflab_SQLite_DB::db_server_info()
S
80 1 3
Perflab_SQLite_PDO_User_Defined_Functions::inet_ntoa()
S
80 1 3
fetchpriority_filter_post_thumbnail_html()
S
76 1 4
Perflab_SQLite_PDO_User_Defined_Functions::rand()
S
79 1 3
Perflab_SQLite_PDO_Engine::get_query_results()
S
82 1 3
Perflab_SQLite_PDO_User_Defined_Functions::utc_time()
S
79 1 3
perflab_delete_plugin_option()
S
78 1 4
perflab_get_standalone_plugins_constants()
S
68 1 8
Perflab_SQLite_DB::db_connect()
S
74 1 5
Perflab_SQLite_PDO_User_Defined_Functions::datediff()
S
70 1 6
Perflab_SQLite_PDO_User_Defined_Functions::substring()
S
79 1 3
Perflab_SQLite_PDO_Engine::rollBack()
S
77 1 4
perflab_aao_add_autoloaded_options_test()
S
68 1 7
perflab_aao_autoloaded_options_size()
S
75 1 4
perflab_aea_invalidate_cache_transients()
S
78 1 4
Perflab_SQLite_PDO_Driver::rewrite_optimize()
S
81 1 3
Perflab_SQLite_PDO_User_Defined_Functions::regexp()
S
72 1 5
Perflab_SQLite_PDO_Driver::handle_alter_query()
S
73 1 5
perflab_plugin_action_links_add_settings()
S
65 1 9
Perflab_SQLite_Create_Query::rewrite_key()
S
70 1 7
Perflab_SQLite_Create_Query::rewrite_comments()
S
68 1 8
Perflab_SQLite_PDO_User_Defined_Functions::inet_aton()
S
80 1 3
Perflab_SQLite_PDO_User_Defined_Functions::ucase()
S
80 1 3
Perflab_SQLite_PDO_Driver::rewrite_insert_ignore()
S
79 1 3
Perflab_SQLite_PDO_Driver::delete_index_hints()
S
75 1 4
perflab_server_timing_register_metric()
S
80 1 3
Perflab_Server_Timing_Metric::get_slug()
S
82 1 3
Perflab_SQLite_PDO_User_Defined_Functions::get_lock()
S
82 1 3
webp_uploads_add_is_webp_supported_test()
S
68 1 7
Perflab_SQLite_PDO_User_Defined_Functions::lcase()
S
80 1 3
Perflab_SQLite_PDO_User_Defined_Functions::md5()
S
80 1 3
perflab_aao_query_autoloaded_options()
S
71 1 5
Perflab_Server_Timing_Metric::get_value()
S
82 1 3
Perflab_SQLite_Create_Query::rewrite_engine_info()
S
75 1 4