AMP_Style_Sanitizer D

Total Complexity 456
Dependencies 35
Dependents 5
Total lines 3,526
Lines of code 2,101
Logical lines of code 1,143
Comment lines 1,001
Methods 45
Properties 21

Methods 45

Method Rating Maintainability Complexity Lines of code
finalize_stylesheet_group()
D
24
42 177
has_used_class_name()
D
30 43 113
ampify_ruleset_selectors()
C
29 28 131
process_font_face_at_rule()
C
31 26 109
get_stylesheet_priority()
C
35 27 78
process_css_list()
C
31 23 120
get_validated_url_file_path()
B
37 19 71
sanitize()
B
37 18 66
parse_stylesheet()
B
29 10 146
transform_important_qualifiers()
A
39 13 66
process_css_declaration_block()
A
40 13 62
finalize_styles()
A
38 12 71
has_used_attributes()
A
47 13 36
get_used_class_names()
A
40 11 64
process_link_element()
A
38 10 74
splice_imported_stylesheet()
A
39 9 67
add_css_budget_to_admin_bar()
A
44 10 43
get_parsed_stylesheet()
A
44 9 46
remove_admin_bar_if_css_excluded()
A
46 9 39
process_css_keyframes()
A
45 8 44
__construct()
A
50 9 27
fetch_external_stylesheet()
A
50 9 25
collect_inline_styles()
A
42 7 52
real_path_urls()
A
52 8 24
process_style_element()
A
46 7 39
reconstruct_url()
S
54 7 23
has_required_php_css_parser()
S
57 6 18
get_validate_response_data()
S
53 5 24
should_sanitize_validation_error()
S
56 5 17
create_validated_css_document()
S
45 3 43
unrelativize_path()
S
54 4 24
init()
S
57 4 18
should_use_transient_caching()
S
63 4 12
set_current_node()
S
63 4 11
has_used_tag_names()
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
get_styles()
S
82 1 3