Code Analysis: Easy Image Optimizer 3.1.3

Function Rating Maintainability Complexity Lines of code
ExactDN::filter_the_content()
D
0
230 499
ExactDN::filter_image_downsize()
D
16
84 197
EIO_Lazy_Load::parse_img_tag()
D
18
76 178
EIO_Base::content_url()
D
23
59 134
ExactDN::filter_srcset_array()
D
24
53 143
ExactDN::generate_url()
D
25
53 125
EIO_Lazy_Load::filter_page_output()
D
23
48 167
easyio_options()
D
18
43 221
ExactDN::__construct()
D
25
42 144
EIO_Lazy_Load::should_process_page()
D
32 37 96
easyio_admin_init()
D
34 36 75
ExactDN::parse_enqueue()
D
34 32 77
ExactDN::filter_bg_images()
C
35 31 72
EIO_Lazy_Load::create_piip()
C
35 30 75
ExactDN::verify_domain()
C
30 25 118
easyio_attachment_path()
C
36 24 74
EIO_Base::cdn_to_local()
B
39 23 66
ExactDN::generate_image_srcset()
B
38 21 66
ExactDN::allow_admin_image_downsize()
B
48 22 33
EIO_Base::is_frontend()
B
48 21 27
EIO_Page_Parser::get_dimensions_from_filename()
B
43 20 42
ExactDN::filter_image_links()
B
42 19 48
EIO_Lazy_Load::__construct()
B
38 18 61
ExactDN::parse_restapi_maybe()
B
45 19 38
EIO_Page_Parser::get_images_from_html()
B
43 18 46
ExactDN::activate_site()
B
38 16 70
EIO_Lazy_Load::parse_background_images()
B
39 16 61
ExactDN::validate_image_url()
B
41 16 57
EIO_Base::get_option()
A
48 16 30
ExactDN::skip_page()
A
47 15 39
ExactDN::ngg_pro_lightbox_images_queue()
A
49 15 31
easyio_debug_log()
A
46 14 35
EIO_Lazy_Load::validate_user_exclusions()
A
50 14 29
ExactDN::exactdn_remove_args()
A
48 13 39
ExactDN::srcset_replace()
A
46 13 35
EIO_Lazy_Load::inline_script()
A
47 13 32
ExactDN::filter_style_blocks()
A
45 12 39
EIO_Lazy_Load::debug_script()
A
46 12 35
EIO_Base::debug_log()
A
47 12 34
EIO_HS_Beacon::admin_notice()
A
49 12 32
EIO_Lazy_Load::min_script()
A
47 12 32
ExactDN::maybe_smart_crop()
A
50 12 28
EIO_Page_Parser::get_image_dimensions_by_url()
A
53 12 20
EIO_Lazy_Load::validate_image_tag()
A
41 9 61
easyio_upgrade()
A
49 11 28
ExactDN::cron_setup()
A
49 11 27
easyio_quick_mimetype()
A
53 11 22
EIO_Base::is_amp()
A
54 11 22
ExactDN::filter_all_the_things()
A
46 10 35
ExactDN::filter_picture_images()
A
49 10 31
EIO_Lazy_Load::lazify_element()
A
57 11 15
EIO_Base::debug_message()
A
51 10 25
EIO_Base::memory_limit()
A
51 10 25
easyio_memory_limit()
A
51 10 25
EIO_Page_Parser::remove_background_image()
A
54 10 23
EIO_Page_Parser::set_attribute()
A
49 9 30
EIO_Base::is_file()
A
50 9 29
easyio_function_exists()
A
52 9 24
EIO_Base::function_exists()
A
52 9 24
easyio_debug_message()
A
52 9 23
easyio_implode()
A
54 9 21
EIO_Base::implode()
A
54 9 21
EIO_Page_Parser::get_img_style_height()
A
59 9 13
EIO_Page_Parser::get_img_style_width()
A
59 9 13
ExactDN::strip_image_dimensions_maybe()
A
50 8 27
EIO_Lazy_Load::filter_html_array()
A
51 8 27
EIO_Base::maybe_strip_object_version()
A
53 8 23
ExactDN::validate_user_exclusions()
A
54 8 20
EIO_Base::gd_support()
A
56 8 16
ExactDN::savings()
S
49 7 29
ExactDN::envira_gallery_output_item_data()
S
58 8 14
EIO_Base::url_to_path_exists()
S
50 7 28
easyio_exclude_paths_sanitize()
S
52 7 24
ExactDN::setup()
S
48 6 38
EIO_Lazy_Load::validate_css_element_inclusions()
S
55 7 21
EIO_Base::set_content_dir()
S
55 7 19
easyio_gd_support()
S
57 7 16
easyio_get_option()
S
58 7 16
EIO_Base::is_lazy_placeholder()
S
59 7 15
ExactDN::get_content_width()
S
62 8 10
ExactDN::filter_prz_thumb()
S
57 7 14
EIO_Page_Parser::get_background_image_urls()
S
59 7 13
ExactDN::spotlight_instagram_response()
S
61 7 13
EIO_Lazy_Load::maybe_piip()
S
62 7 12
ExactDN::check_verify_method()
S
53 6 21
ExactDN::image_sizes()
S
48 5 35
ExactDN::get_exactdn_width_from_url()
S
56 6 19
ExactDN::set_exactdn_domain()
S
56 6 18
EIO_Base::set_option()
S
58 6 15
ExactDN::is_as3cf_cname_active()
S
59 6 14
EIO_Lazy_Load::allow_admin_lazyload()
S
61 6 12
easyio_activate()
S
53 5 23
easyio_wpfc_webp_enabled()
S
54 5 22
EIO_Base::delete_file()
S
55 5 20
easyio_parser_init()
S
56 5 18
ExactDN::filter_sizes()
S
55 5 18
easyio_network_admin_menu()
S
58 5 16
EIO_Base::parse_url()
S
61 6 10
EIO_Page_Parser::get_attribute()
S
61 5 13
EIO_Base::get_filesystem()
S
60 5 13
EIO_Page_Parser::get_noscript_images_from_html()
S
60 5 13
EIO_Base::imagick_support()
S
59 5 13
ExactDN::set_exactdn_option()
S
61 5 12
easyio_settings_link()
S
60 5 12
EIO_Base::get_allowed_domains()
S
62 5 11
ExactDN::get_exactdn_option()
S
63 5 11
ExactDN::get_exactdn_domain()
S
63 5 11
easyio_current_screen()
S
61 5 11
easyio_view_debug_log()
S
56 4 19
easyio_network_deactivate()
S
57 4 17
ExactDN::sanitize_domain()
S
58 4 16
easyio_dump_var()
S
59 4 16
easyio_is_amp()
S
66 5 9
EIO_Lazy_Load::maybe_siip()
S
66 5 9
ExactDN::dns_prefetch()
S
65 5 9
EIO_Page_Parser::get_background_image_url()
S
64 5 9
ExactDN::get_allowed_paths()
S
57 4 15
EIO_Base::is_json()
S
64 5 9
EIO_Page_Parser::get_background_images()
S
65 5 8
easyio_deactivate()
S
57 4 15
easyio_delete_debug_log()
S
58 4 15
ExactDN::filter_facetwp_json_output()
S
60 4 13
EIO_Lazy_Load::filter_facetwp_json_output()
S
61 4 12
ExactDN::plugin_get_image_url()
S
62 4 12
ExactDN::exactdn_skip_user_exclusions()
S
63 4 11
EIO_Base::__construct()
S
51 3 26
EIO_Lazy_Load::validate_iframe_tag()
S
54 3 24
EIO_Lazy_Load::validate_bgimage_tag()
S
54 3 23
easyio_settings_script()
S
54 3 20
EIO_Lazy_Load::wp_lazy_loading_enabled()
S
66 4 9
easyio_init()
S
64 4 10
ExactDN::woocommerce_api_product_response()
S
67 4 8
ExactDN::url_scheme()
S
59 3 14
easyio_help_link()
S
59 3 13
easyio_notice_exactdn_domain_mismatch()
S
53 2 26
EIO_Lazy_Load::no_js_css()
S
65 3 10
EIO_Page_Parser::get_elements_from_html()
S
63 3 10
ExactDN::image_downsize_scale()
S
65 3 10
EIO_Base::is_iterable()
S
77 3 3
ExactDN::add_cdn_domain()
S
66 3 8
easyio_ce_webp_enabled()
S
65 3 10
easyio_privacy_policy_content()
S
64 3 9
ExactDN::human_time_diff()
S
64 3 10
easyio_iterable()
S
77 3 3
ExactDN::allow_image_domain()
S
65 3 10
easyio_notice_exactdn_activation_error()
S
61 2 13
easyio_set_defaults()
S
54 1 23
wp_doing_ajax()
S
78 2 3
easyio_ob_clean()
S
76 2 5
easyio_debug_version_info()
S
63 2 10
easyio_filesize()
S
68 2 8
ExactDN::set_domain()
S
75 2 5
EIO_Base::filesize()
S
65 2 10
EIO_Base::check_memory_available()
S
64 2 10
easyio_temp_debug_clear()
S
69 2 8
easyio_cloud_useragent()
S
70 2 6
easyio_admin_permissions()
S
73 2 6
EIO_Lazy_Load::override_lazy_fold()
S
72 2 6
EIO_Base::ob_clean()
S
76 2 5
easyio_superadmin_permissions()
S
73 2 6
EIO_Page_Parser::get_style_tags_from_html()
S
66 2 8
EIO_Page_Parser::get_picture_tags_from_html()
S
66 2 8
easyio_unsupported_php()
S
78 1 3
EIO_HS_Beacon::check_for_optin()
S
67 1 7
EIO_HS_Beacon::__construct()
S
72 1 5
ExactDN::health_check()
S
72 1 5
easyio_notice_exactdn_activation_success()
S
73 1 5
easyio_network_options()
S
63 1 10
EIO_HS_Beacon::check_for_optout()
S
65 1 8
ExactDN::enable_image_downsize()
S
78 1 3
ExactDN::filter_page_output()
S
65 1 9
EIO_Base::is_readable()
S
77 1 4
easyio_php55_warning()
S
73 1 5
boolval()
S
82 1 3
EIO_Page_Parser::remove_attribute()
S
74 1 4
easyio_notice_sp_conflict()
S
73 1 5
easyio_notice_inactive()
S
71 1 5
ExactDN::get_plan_id()
S
82 1 3
easyio_network_settings_saved()
S
78 1 3
easyio_size_format()
S
75 1 4
easyio_buffer_start()
S
82 1 3
ExactDN::disable_image_downsize()
S
72 1 5
easyio_admin_menu()
S
67 1 9
easyio_notice_exactdn_as3cf_cname_active()
S
70 1 9
easyio_notice_beacon()
S
64 1 9
easyio_filter_page_output()
S
75 1 4