Better_AMP_Content_Sanitizer D

Total Complexity 242
Dependencies 2
Dependents 11
Total lines 1,587
Lines of code 758
Logical lines of code 455
Comment lines 408
Methods 32
Properties 6

Methods 32

Method Rating Maintainability Complexity Lines of code
sanitize_document()
D
5
117 347
sanitize_layout_attribute()
A
47 15 37
strip_attributes_recursive()
A
46 12 36
transform_to_end_point_amp()
A
48 10 30
transform_to_amp_url()
A
51 9 28
transform_to_start_point_amp()
A
50 8 27
remove_end_point_amp()
S
53 7 22
sanitize_dimension()
S
56 6 18
remove_start_point_amp()
S
54 5 20
replace_node_with_children()
S
63 5 11
set_none_amp_url()
S
57 4 16
save_element_style()
S
57 4 15
transform_to_none_amp_url()
S
60 4 13
parse_internal_url()
S
63 4 11
get_invalid_attrs()
S
63 4 11
endswith()
S
71 3 5
_get_rule_attrs_list()
S
65 3 9
single_post_pagination_none_amp_url()
S
59 2 13
is_valid_url()
S
69 2 6
get_node_attributes()
S
69 2 7
remove_all_attributes()
S
70 2 6
replace_href_with_amp()
S
70 2 6
_preg_replace_link_callback()
S
66 2 7
pagination_none_amp_url()
S
69 2 6
regex_url()
S
62 1 13
remove_element()
S
80 1 3
transform_all_links_to_amp()
S
68 1 8
turn_url_transform_off_on()
S
74 1 5
sanitize()
S
65 1 9
remove_element_attributes()
S
75 1 4
get_blacklisted_attributes()
S
73 1 6
__construct()
S
81 1 3