-
Home
-
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
-
4.2.4
-
Code
-
Classes
- Updraft_Smush_Task
| Total Complexity |
41 |
| Dependencies |
3 |
| Dependents |
0 |
| Total lines |
419 |
| Lines of code |
223 |
| Logical lines of code |
148 |
| Comment lines |
109 |
| Methods |
14 |
| Properties |
2 |
Methods 14
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| run() |
A |
38 |
13 |
68 |
| 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 |
| 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_default_options() |
S |
67 |
1 |
8 |