AMP_Style_Sanitizer D

Total Complexity 484
Dependencies 42
Dependents 8
Total lines 3,792
Lines of code 2,272
Logical lines of code 1,235
Comment lines 1,063
Methods 45
Properties 21

Methods 45

Method Rating Maintainability Complexity Lines of code
finalize_stylesheet_group()
D
22
44 192
has_used_class_name()
D
30 43 113
process_font_face_at_rule()
D
26
37 157
ampify_ruleset_selectors()
D
29
29 133
sanitize()
C
31 29 98
get_stylesheet_priority()
C
32 28 95
process_css_list()
B
32 20 116
get_validated_url_file_path()
B
37 19 71
finalize_styles()
B
34 17 97
parse_stylesheet()
B
29 10 149
transform_important_qualifiers()
A
37 14 72
process_css_declaration_block()
A
39 13 66
has_used_attributes()
A
47 13 36
get_used_class_names()
A
39 11 66
get_parsed_stylesheet()
A
40 11 62
process_link_element()
A
37 10 77
splice_imported_stylesheet()
A
39 9 68
add_css_budget_to_admin_bar()
A
44 10 43
remove_admin_bar_if_css_excluded()
A
46 9 39
process_css_keyframes()
A
44 8 47
__construct()
A
50 9 27
collect_inline_styles()
A
41 7 56
fetch_external_stylesheet()
A
50 9 25
process_style_element()
A
45 7 42
real_path_urls()
A
52 8 24
reconstruct_url()
S
54 7 23
has_required_php_css_parser()
S
57 6 18
get_validate_response_data()
S
53 5 24
create_validated_css_document()
S
44 3 47
should_sanitize_validation_error()
S
56 5 17
unrelativize_path()
S
54 4 24
should_use_transient_caching()
S
63 4 12
has_used_tag_names()
S
63 4 11
set_current_node()
S
63 4 11
get_stylesheet_from_url()
S
62 3 11
create_meta_viewport()
S
56 2 20
get_used_tag_names()
S
65 3 9
get_stylesheets()
S
64 2 11
replace_inside_css_list()
S
63 2 10
get_css_parser_validation_error_codes()
S
64 1 13
is_class_allowed_in_amp_date_picker()
S
62 1 12
get_class_name_selector_pattern()
S
62 1 12
remove_spaces_from_url_values()
S
66 1 9
init()
S
76 1 4
get_styles()
S
82 1 3