-
Home
-
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
-
3.2.4
-
Code
-
Classes
- Updraft_Smush_Task
| Total Complexity |
48 |
| Dependencies |
2 |
| Dependents |
0 |
| Total lines |
454 |
| Lines of code |
236 |
| Logical lines of code |
153 |
| Comment lines |
126 |
| Methods |
17 |
| Properties |
2 |
Methods 17
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| run() |
A |
42 |
9 |
48 |
| get_attachment_files() |
A |
55 |
8 |
17 |
| complete() |
S |
45 |
4 |
41 |
| validate_file() |
S |
57 |
4 |
16 |
| backup_original_image() |
S |
56 |
3 |
16 |
| save_optimised_image() |
S |
63 |
3 |
11 |
| fail() |
S |
58 |
2 |
15 |
| maybe_do_webp_conversion() |
S |
65 |
2 |
9 |
| post_to_remote_server() |
S |
65 |
2 |
9 |
| set_current_stage() |
S |
68 |
2 |
7 |
| get_current_stage() |
S |
73 |
2 |
5 |
| is_downloaded_image_buffer_mime_type_valid() |
S |
66 |
2 |
7 |
| get_allowed_stages() |
S |
62 |
1 |
11 |
| initialise() |
S |
73 |
1 |
5 |
| process_server_response() |
S |
77 |
1 |
4 |
| get_features() |
S |
69 |
1 |
7 |
| get_default_options() |
S |
66 |
1 |
8 |