Jetpack_Photon D

Total Complexity 223
Dependencies 7
Dependents 4
Total lines 1,378
Lines of code 656
Logical lines of code 367
Comment lines 546
Methods 30
Properties 3

Methods 30

Method Rating Maintainability Complexity Lines of code
filter_the_content()
D
20
75 155
filter_image_downsize()
D
31 37 99
filter_srcset_array()
C
35 26 81
filter_photon_norezise_maybe_inject_sizes()
A
51 10 27
validate_image_url()
A
48 9 34
image_sizes()
S
47 5 39
filter_sizes()
S
60 5 13
parse_images_from_html()
S
61 5 12
filter_the_galleries()
S
61 5 12
should_rest_photon_image_downsize_override()
S
57 4 19
filter_open_graph_tags()
S
56 4 18
filter_the_image_widget()
S
61 4 12
parse_dimensions_from_filename()
S
62 4 11
setup()
S
55 3 18
strip_image_dimensions_maybe()
S
60 3 12
filter_photon_noresize_thumbnail_urls()
S
65 3 8
action_wp_enqueue_scripts()
S
61 2 15
should_rest_photon_image_downsize()
S
65 3 10
enable_noresize_mode()
S
59 2 13
should_rest_photon_image_downsize_insert_attachment()
S
71 2 6
instance()
S
69 2 7
is_amp_endpoint()
S
79 2 3
cleanup_rest_photon_image_downsize()
S
65 1 11
__construct()
S
98 1 1
filter_photon_norezise_maybe_inject_sizes_api()
S
78 1 3
filter_photon_noresize_intermediate_sizes()
S
81 1 3
filter_photon_norezise_domain()
S
81 1 3
filter_content_remove()
S
75 1 4
filter_content_add()
S
75 1 4
override_image_downsize_in_rest_edit_context()
S
82 1 3