Updraft_Smush_Task S

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
get_current_stage()
S
73 2 5
set_current_stage()
S
68 2 7
is_downloaded_image_buffer_mime_type_valid()
S
66 2 7
post_to_remote_server()
S
65 2 9
maybe_do_webp_conversion()
S
65 2 9
get_allowed_stages()
S
62 1 11
get_features()
S
69 1 7
get_default_options()
S
66 1 8
process_server_response()
S
77 1 4
initialise()
S
73 1 5