AMP_Core_Theme_Sanitizer D

Total Complexity 223
Dependencies 10
Dependents 2
Total lines 2,353
Lines of code 1,635
Logical lines of code 587
Comment lines 514
Methods 44
Properties 3

Methods 44

Method Rating Maintainability Complexity Lines of code
get_theme_features_config()
B
27
15 185
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_twentyseventeen_masthead_styles()
A
40 7 90
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
get_theme_features()
A
50 8 28
amend_twentytwentyone_styles()
S
45 5 54
add_twentyfourteen_search()
S
46 5 36
add_twentytwentyone_sub_menu_fix()
S
51 5 25
add_twentytwentyone_mobile_modal()
S
53 5 21
add_twentytwenty_custom_logo_fix()
S
48 4 36
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
amend_twentytwentyone_dark_mode_styles()
S
53 4 23
add_twentyseventeen_attachment_image_attributes()
S
55 4 20
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_twentynineteen_masthead_styles()
S
51 1 39
add_twentytwentyone_dark_mode_toggle()
S
56 2 17
add_has_header_video_body_class()
S
59 2 17
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
add_twentyseventeen_image_styles()
S
55 1 24
add_twentytwenty_masthead_styles()
S
56 1 22
amend_twentytwentyone_sub_menu_toggles()
S
71 2 6
add_img_display_block_fix()
S
63 1 13
get_supported_themes()
S
80 1 3
force_fixed_background_support()
S
72 1 6
get_twentyseventeen_navigation_outer_height()
S
81 1 3
get_theme_config()
S
71 1 5
get_acceptable_errors()
S
76 1 4