WPO_WebP_Alter_HTML S

Total Complexity 44
Dependencies 0
Dependents 1
Total lines 252
Lines of code 136
Logical lines of code 81
Comment lines 86
Methods 15
Properties 1

Methods 15

Method Rating Maintainability Complexity Lines of code
alter_html()
A
50 9 26
get_file_path()
S
48 6 33
handle_srcset()
S
56 4 16
start()
S
66 5 8
is_valid_html()
S
69 4 6
get_instance()
S
69 2 7
maybe_include_simple_html_dom()
S
73 2 5
maybe_replace_url()
S
72 2 6
looks_like_srcset()
S
71 2 6
handle_attribute()
S
71 2 6
is_webp_version_available()
S
72 2 5
__construct()
S
78 1 3
replace_url()
S
80 1 3
handle_src()
S
80 1 3
is_image_attribute()
S
79 1 3