-
Home
-
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
-
3.2.4
-
Code
-
Classes
- WPO_WebP_Alter_HTML
| Total Complexity |
42 |
| Dependencies |
0 |
| Dependents |
1 |
| Total lines |
247 |
| Lines of code |
132 |
| Logical lines of code |
77 |
| Comment lines |
86 |
| Methods |
15 |
| Properties |
1 |
Methods 15
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| alter_html() |
A |
51 |
9 |
26 |
| get_file_path() |
S |
48 |
6 |
33 |
| handle_srcset() |
S |
56 |
4 |
16 |
| start() |
S |
71 |
4 |
5 |
| 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 |
| __construct() |
S |
78 |
1 |
3 |
| replace_url() |
S |
80 |
1 |
3 |
| handle_src() |
S |
80 |
1 |
3 |
| is_image_attribute() |
S |
79 |
1 |
3 |
| is_webp_version_available() |
S |
75 |
1 |
4 |