-
Home
-
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
-
3.1.7
-
Code
-
Classes
- Updraft_Smush_Task
Total Complexity |
46 |
Dependencies |
1 |
Dependents |
0 |
Total lines |
422 |
Lines of code |
216 |
Logical lines of code |
141 |
Comment lines |
121 |
Methods |
16 |
Properties |
2 |
Methods 16
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
run() |
A |
45 |
9 |
39 |
get_attachment_files() |
A |
55 |
8 |
17 |
complete() |
S |
46 |
4 |
39 |
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_features() |
S |
69 |
1 |
7 |
get_default_options() |
S |
66 |
1 |
8 |