AMP_Core_Theme_Sanitizer D

Total Complexity 248
Dependencies 13
Dependents 3
Total lines 2,609
Lines of code 1,817
Logical lines of code 665
Comment lines 547
Methods 46
Properties 3

Methods 46

Method Rating Maintainability Complexity Lines of code
add_nav_menu_styles()
C
26
16 307
get_theme_features_config()
B
27
14 190
add_twentytwenty_toggles()
B
38 19 62
wrap_modal_in_lightbox()
B
38 16 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
update_twentynineteen_mobile_main_menu()
A
41 7 55
add_twentyfourteen_masthead_styles()
A
39 2 128
amend_twentytwentyone_styles()
A
43 6 62
add_twentyseventeen_masthead_styles()
A
46 7 46
get_theme_features()
A
50 8 28
add_twentyseventeen_attachment_image_attributes()
S
50 7 28
update_twentynineteen_main_nested_menu()
S
47 6 37
add_twentytwenty_custom_logo_fix()
S
46 5 43
add_twentyfourteen_search()
S
46 5 36
amend_twentytwentyone_dark_mode_styles()
S
51 5 27
add_twentytwentyone_sub_menu_fix()
S
51 5 25
add_twentytwentyone_dark_mode_toggle()
S
44 3 52
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_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
adjust_twentynineteen_images()
S
63 2 11
show_twentytwenty_desktop_expanded_menu()
S
63 2 11
dequeue_scripts()
S
64 2 11
amend_twentytwentyone_sub_menu_toggles()
S
71 2 6
get_first_element()
S
71 2 5
get_twentyseventeen_navigation_outer_height()
S
81 1 3
get_theme_config()
S
71 1 5
force_fixed_background_support()
S
72 1 6
get_supported_themes()
S
80 1 3
get_acceptable_errors()
S
76 1 4