Optml_Media_Offload D

Total Complexity 290
Dependencies 9
Dependents 8
Total lines 1,699
Lines of code 1,174
Logical lines of code 717
Comment lines 363
Methods 39
Properties 7

Methods 39

Method Rating Maintainability Complexity Lines of code
generate_image_meta()
D
23
45 173
rollback_and_update_images()
D
26
40 152
start_processing_images_by_id()
B
40 16 63
update_content()
B
39 15 64
start_processing_images()
A
42 14 55
filter_uploaded_images()
A
42 14 53
get_image_count()
A
42 13 57
get_image_attachment_url()
A
48 11 31
instance()
A
47 9 31
get_image_id_from_content()
A
51 9 26
get_posts_by_image_ids()
A
43 7 49
generate_filter_downsize_urls()
A
48 8 32
insert()
A
49 8 29
get_images_query_args()
A
43 6 57
upload_and_update_existing_images()
A
51 8 26
add_inline_media_action()
S
46 6 43
calculate_image_srcset()
S
55 7 18
delete_attachment_hook()
S
54 6 22
wp_update_attached_file_filter()
S
55 5 18
add_page_meta_query_args()
S
52 4 28
get_local_attachement_id_from_url()
S
56 4 18
get_image_name_from_width()
S
65 4 8
upload_images()
S
60 3 12
rollback_images()
S
60 3 12
parse_dimension_from_optimized_url()
S
62 3 11
update_offload_meta()
S
66 3 9
delete_attachment_from_server()
S
67 3 7
bulk_action_handler()
S
62 2 11
get_attachment_id_from_url()
S
73 2 4
get_id_from_tag()
S
68 2 7
update_page()
S
63 2 10
number_of_all_images()
S
75 1 4
number_of_images_by_ids()
S
69 1 6
is_not_processed_image()
S
77 1 3
number_of_images_and_pages()
S
65 1 8
is_uploaded_image()
S
77 1 3
get_ext()
S
79 1 3
register_bulk_media_actions()
S
72 1 5
get_original_url()
S
70 1 6