Optml_Media_Offload D

Total Complexity 441
Dependencies 13
Dependents 9
Total lines 2,801
Lines of code 1,753
Logical lines of code 1,074
Comment lines 623
Methods 60
Properties 8

Methods 60

Method Rating Maintainability Complexity Lines of code
generate_image_meta()
D
18
57 225
rollback_and_update_images()
D
24
42 163
calculate_image_srcset()
C
37 24 72
get_image_count()
B
36 18 84
start_processing_images_by_id()
B
38 18 70
update_content()
B
38 15 67
alter_attachment_image_src()
A
38 14 75
start_processing_images()
A
41 15 55
filter_uploaded_images()
A
42 15 53
get_new_offloaded_attachment_url()
A
44 14 42
get_image_attachment_url()
A
46 14 38
filter_saved_data()
A
43 11 46
generate_filter_downsize_urls()
A
46 11 38
replace_urls_in_editor_content()
A
47 9 32
alter_elementor_image_size()
A
49 9 32
get_image_id_from_content()
A
51 9 26
delete_attachment_hook()
A
52 9 25
get_posts_by_image_ids()
A
43 7 47
insert()
A
49 8 29
instance()
A
44 7 44
upload_and_update_existing_images()
A
51 8 27
get_offloaded_attachment_url()
S
58 8 13
add_inline_media_action()
S
46 6 43
get_images_or_pages_query_args()
S
43 5 56
add_new_actions()
S
47 5 36
alter_attachment_for_js()
S
50 5 30
wp_update_attached_file_filter()
S
55 5 18
maybe_reschedule()
S
59 5 15
add_page_meta_query_args()
S
52 4 28
get_image_size_from_width()
S
65 5 8
get_process_meta()
S
65 4 8
upload_images()
S
59 3 13
mark_retryable_error()
S
59 3 12
rollback_images()
S
60 3 12
get_local_attachement_id_from_url()
S
62 3 11
alter_attached_file_response()
S
62 3 11
update_offload_meta()
S
66 3 9
delete_attachment_from_server()
S
65 3 8
is_scheduled()
S
65 3 9
bulk_action_handler()
S
62 2 11
decrement_process_meta_remaining()
S
66 2 8
alter_attachment_metadata()
S
71 2 6
is_phpunit_test()
S
78 2 3
update_page()
S
63 2 10
pre_filter_rest_content()
S
64 2 10
number_of_images_and_pages()
S
63 2 10
get_id_from_tag()
S
68 2 7
get_attachment_id_from_url()
S
73 2 4
schedule_action()
S
68 2 7
number_of_images_by_ids()
S
69 1 6
is_not_processed_image()
S
77 1 3
register_bulk_media_actions()
S
72 1 5
is_uploaded_image()
S
77 1 3
legacy_filter_saved_data()
S
78 1 3
record_process_meta()
S
68 1 7
number_of_all_images()
S
75 1 4
get_ext()
S
79 1 3
get_original_url()
S
70 1 6
maybe_strip_scaled()
S
74 1 4
insert_legacy()
S
79 1 3