AMP_Core_Theme_Sanitizer D

Total Complexity 226
Dependencies 10
Dependents 3
Total lines 2,258
Lines of code 1,545
Logical lines of code 588
Comment lines 505
Methods 42
Properties 3

Methods 42

Method Rating Maintainability Complexity Lines of code
get_theme_features_config()
B
27
15 183
add_nav_menu_styles()
B
31 11 195
wrap_modal_in_lightbox()
B
38 19 62
add_twentytwenty_toggles()
B
38 19 62
remove_actions()
A
47 14 36
get_theme_support_args()
A
37 8 92
add_twentyfourteen_slider_carousel()
A
36 7 85
add_twentytwenty_modals()
A
45 9 44
xpath_from_css_selector()
A
47 9 38
add_twentyseventeen_sticky_nav_menu()
A
38 6 73
add_twentyfourteen_masthead_styles()
A
39 2 128
add_twentyseventeen_masthead_styles()
A
46 7 46
get_theme_features()
A
50 8 28
amend_twentytwentyone_styles()
S
44 5 59
add_twentytwenty_custom_logo_fix()
S
47 5 39
add_twentyfourteen_search()
S
46 5 36
amend_twentytwentyone_dark_mode_styles()
S
50 5 29
add_twentytwentyone_sub_menu_fix()
S
51 5 25
add_twentyseventeen_attachment_image_attributes()
S
53 5 23
add_twentytwentyone_mobile_modal()
S
53 5 21
add_twentytwenty_current_page_awareness()
S
57 5 15
prevent_sanitize_in_customizer_preview()
S
62 5 12
add_smooth_scrolling()
S
60 5 12
get_closest_submenu()
S
60 4 14
guess_modal_role()
S
61 4 12
force_svg_support()
S
59 3 16
extend_theme_support()
S
61 3 12
set_twentyseventeen_quotes_icon()
S
61 3 12
add_twentytwenty_masthead_styles()
S
56 2 21
add_twentytwentyone_dark_mode_toggle()
S
56 2 17
add_has_header_video_body_class()
S
59 2 17
add_img_display_block_fix()
S
59 2 16
add_buffering_hooks()
S
66 3 8
sanitize()
S
66 3 8
dequeue_scripts()
S
64 2 11
adjust_twentynineteen_images()
S
63 2 11
amend_twentytwentyone_sub_menu_toggles()
S
71 2 6
get_supported_themes()
S
80 1 3
force_fixed_background_support()
S
72 1 6
get_theme_config()
S
71 1 5
get_twentyseventeen_navigation_outer_height()
S
81 1 3
get_acceptable_errors()
S
76 1 4