AMP_Theme_Support D

Total Complexity 299
Dependencies 48
Dependents 22
Total lines 2,579
Lines of code 1,426
Logical lines of code 679
Comment lines 912
Methods 51
Properties 4

Methods 51

Method Rating Maintainability Complexity Lines of code
get_template_availability()
D
24
37 189
prepare_response()
D
26
37 138
ensure_required_markup()
D
27
29 152
get_supportable_templates()
B
32 14 117
ensure_proper_amp_location()
A
48 15 29
finish_init()
A
43 11 47
amend_header_image_with_video_header()
A
41 10 56
get_current_canonical_url()
A
51 10 25
filter_comment_form_defaults()
A
48 8 33
is_exclusively_dependent()
A
54 8 24
get_theme_support_args()
S
54 7 21
add_hooks()
S
40 4 66
setup_paired_browsing_client()
S
49 5 31
init_admin_bar()
S
46 4 40
filter_customize_partial_render()
S
52 5 24
register_widgets()
S
57 5 16
register_content_embed_handlers()
S
50 4 31
has_dependency()
S
60 5 14
serve_paired_browsing_experience()
S
45 3 43
finish_output_buffering()
S
50 4 28
get_optimizer_configuration()
S
50 3 31
filter_customize_preview_style_loader_tag()
S
61 4 11
filter_cancel_comment_reply_link()
S
53 3 23
filter_comment_reply_link()
S
53 3 22
dequeue_customize_preview_scripts()
S
63 4 10
filter_admin_bar_script_loader_tag()
S
62 4 10
filter_admin_bar_style_loader_tag()
S
62 4 10
filter_amp_template_hierarchy()
S
62 3 12
redirect_non_amp_url()
S
63 3 11
supports_reader_mode()
S
64 3 11
print_emoji_styles()
S
59 2 23
amend_comments_link()
S
69 3 6
get_support_mode_added_via_theme()
S
66 3 8
amend_comment_form()
S
68 3 7
is_paired_available()
S
65 3 10
sanitize_url_for_paired_browsing()
S
64 3 10
include_layout_in_wp_kses_allowed_html()
S
69 3 6
get_paired_browsing_url()
S
62 2 11
init()
S
68 2 7
add_amp_template_filters()
S
69 2 6
is_customize_preview_iframe()
S
75 2 4
get_support_mode_added_via_option()
S
66 2 8
start_output_buffering()
S
68 2 7
get_optimizer()
S
62 1 12
get_comment_form_state_id()
S
79 1 3
enqueue_assets()
S
80 1 3
read_theme_support()
S
79 1 3
set_comments_walker()
S
70 1 6
is_output_buffering()
S
80 1 3
get_support_mode()
S
75 1 4
is_support_added_via_option()
S
76 1 4