Optml_Media_Offload D

Total Complexity 266
Dependencies 7
Dependents 7
Total lines 1,479
Lines of code 1,032
Logical lines of code 642
Comment lines 332
Methods 37
Properties 9

Methods 37

Method Rating Maintainability Complexity Lines of code
generate_image_meta()
D
23
46 173
rollback_and_update_images()
D
25
40 154
pull_images()
B
41 18 52
update_content()
A
40 14 61
filter_uploaded_images()
A
42 14 52
get_image_attachment_url()
A
48 11 31
instance()
A
47 10 33
generate_filter_downsize_urls()
A
47 10 32
get_image_id_from_content()
A
51 9 26
insert()
A
49 8 29
get_images_query_args()
A
43 6 57
upload_and_update_existing_images()
A
51 8 26
calculate_image_srcset()
A
55 8 18
add_inline_media_action()
S
46 6 43
delete_attachment_hook()
S
55 6 19
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
rollback_images()
S
60 3 12
upload_images()
S
60 3 12
parse_dimension_from_optimized_url()
S
62 3 11
media_attachment_template()
S
48 1 34
delete_attachment_from_server()
S
67 3 7
add_cloud_script()
S
72 3 5
update_offload_meta()
S
66 3 9
update_page()
S
63 3 10
bulk_action_handler()
S
61 2 11
get_id_from_tag()
S
68 2 7
get_attachment_id_from_url()
S
73 2 4
get_original_url()
S
70 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
get_ext()
S
79 1 3
number_of_all_images()
S
75 1 4
number_of_images_and_pages()
S
65 1 8