AMP_Validation_Manager D

Total Complexity 317
Dependencies 28
Dependents 10
Total lines 2,422
Lines of code 1,410
Logical lines of code 640
Comment lines 793
Methods 50
Properties 12

Methods 50

Method Rating Maintainability Complexity Lines of code
locate_sources()
D
28
38 137
validate_url()
B
35 21 83
print_edit_form_validation_status()
B
37 19 74
add_admin_bar_menu_items()
B
34 16 95
update_admin_bar_item()
B
37 14 81
get_validate_url_error_message()
B
34 12 107
get_amp_validity_rest_field()
A
46 11 37
finalize_validation()
A
47 11 34
print_plugin_notice()
A
43 10 48
wrap_hook_callbacks()
A
44 9 46
handle_save_post_prompting_validation()
A
49 10 31
add_validation_error()
A
48 10 31
get_validate_response_data()
A
46 9 39
handle_block_source_comment_replacement()
A
46 9 37
filter_sanitizer_args()
A
49 9 30
override_validation_error_statuses()
A
50 8 28
enqueue_block_validation()
S
45 6 43
can_output_buffer()
S
52 7 25
post_supports_validation()
S
56 7 19
validate_queued_posts_on_frontend()
S
52 6 24
decorate_filter_source()
S
51 5 27
validate_after_plugin_activation()
S
57 5 17
has_dependency()
S
60 5 14
init_validate_request()
S
55 4 21
validate_url_and_store()
S
55 4 20
wrap_buffer_with_source_comments()
S
57 4 17
has_parameters_passed_by_reference()
S
60 4 14
decorate_shortcode_source()
S
55 3 21
init()
S
54 3 20
wrap_widget_callbacks()
S
57 3 16
unserialize_validation_error_messages()
S
59 3 14
should_validate_response()
S
60 3 13
is_matching_script()
S
60 3 13
is_sanitization_auto_accepted()
S
66 3 8
map_meta_cap()
S
65 3 9
add_validation_error_sourcing()
S
61 2 11
add_block_source_comments()
S
57 1 19
parse_source_comment()
S
65 2 8
remove_illegal_source_stack_comments()
S
72 2 5
get_source_comment()
S
66 2 8
has_cap()
S
70 2 6
decorate_embed_source()
S
60 1 14
add_rest_api_fields()
S
61 1 13
is_theme_support_forced()
S
80 1 3
reset_validation_results()
S
70 1 7
serialize_validation_error_messages()
S
73 1 4
get_source()
S
67 1 9
get_amp_validate_nonce()
S
78 1 3
wrapped_callback()
S
80 1 3
get_dev_tools_user_access()
S
76 1 4