autoptimizeImages D

Total Complexity 365
Dependencies 8
Dependents 7
Total lines 1,611
Lines of code 1,163
Logical lines of code 653
Comment lines 211
Methods 57
Properties 3

Methods 57

Method Rating Maintainability Complexity Lines of code
filter_optimize_images()
D
25
53 134
imgopt_options_page()
D
22
45 181
can_optimize_image()
B
43 23 40
filter_lazyload_images()
A
46 13 37
normalize_img_url()
A
46 13 36
get_imgopt_status_notice()
A
42 12 45
process_picture_tag()
A
50 12 25
add_lazyload()
A
46 11 36
get_size_from_tag()
A
48 11 34
build_imgopt_url()
A
48 11 34
launch_ok()
A
53 11 19
run_on_frontend()
A
42 7 72
query_img_provider_stats()
A
51 9 27
add_lazyload_js_footer()
A
49 9 27
should_run()
A
55 9 19
get_img_quality_setting()
S
58 8 14
fetch_options()
S
51 6 28
imgopt_active()
S
60 7 12
get_imgopt_provider_userstatus()
S
55 5 22
run()
S
61 5 12
should_lazyload()
S
61 5 12
get_imgopt_host()
S
60 5 12
replace_background_img_css()
S
61 5 11
create_img_preload_tag()
S
55 4 17
get_lazyload_exclusions()
S
57 4 15
filter_optimize_inline_css_images()
S
61 4 12
should_ngimg()
S
62 4 11
get_imgopt_base_url()
S
57 3 17
replace_icon_callback()
S
58 3 15
maybe_fix_missing_quotes()
S
64 4 9
process_bgimage()
S
62 3 11
filter_optimize_css_images()
S
66 3 8
check_nolazy()
S
68 3 7
get_img_quality_array()
S
60 2 15
imgopt_admin_menu()
S
62 2 13
lazyload_bgimg_callback()
S
58 2 13
get_img_quality_string()
S
62 2 12
instance()
S
71 2 6
should_disable_core_lazyload()
S
72 2 6
add_imgopt_tab()
S
69 2 6
__construct()
S
72 2 6
replace_img_callback()
S
66 2 8
inject_classes_in_tag()
S
65 2 8
get_cdn_url()
S
65 2 9
get_imgopt_host_wrapper()
S
76 1 4
get_default_lazyload_placeholder()
S
78 1 3
fix_silly_bgimg_quotes()
S
76 1 3
build_imgopt_url_wrapper()
S
74 1 4
get_service_url_suffix()
S
76 1 4
should_lazyload_wrapper()
S
75 1 4
filter_preconnect_imgopt_url()
S
72 1 5
get_imgopt_status_notice_wrapper()
S
76 1 4
can_optimize_image_wrapper()
S
74 1 4
get_img_provider_stats()
S
76 1 4
set_options()
S
77 1 4
launch_ok_wrapper()
S
76 1 4
replace_data_thumbs()
S
79 1 3