Optml_Media_Offload D

Total Complexity 434
Dependencies 14
Dependents 10
Total lines 2,852
Lines of code 1,812
Logical lines of code 1,077
Comment lines 615
Methods 59
Properties 8

Methods 59

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
39 14 66
get_image_attachment_url()
A
42 14 56
generate_filter_downsize_urls()
A
43 11 50
filter_saved_data()
A
43 11 46
replace_urls_in_editor_content()
A
45 9 42
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 26
add_inline_media_action()
S
46 6 43
get_images_or_pages_query_args()
S
43 5 56
add_new_actions()
S
46 5 38
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_local_attachement_id_from_url()
S
56 4 18
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
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
pre_filter_rest_content()
S
64 2 10
get_id_from_tag()
S
68 2 7
alter_attachment_metadata()
S
71 2 6
get_attachment_id_from_url()
S
73 2 4
update_page()
S
63 2 10
is_phpunit_test()
S
78 2 3
schedule_action()
S
68 2 7
decrement_process_meta_remaining()
S
66 2 8
number_of_images_and_pages()
S
63 2 10
register_bulk_media_actions()
S
72 1 5
get_ext()
S
79 1 3
record_process_meta()
S
68 1 7
is_uploaded_image()
S
77 1 3
number_of_all_images()
S
75 1 4
legacy_filter_saved_data()
S
78 1 3
is_not_processed_image()
S
77 1 3
number_of_images_by_ids()
S
69 1 6
insert_legacy()
S
79 1 3
maybe_strip_scaled()
S
74 1 4
get_original_url()
S
70 1 6