AMP_Validation_Manager D

Total Complexity 286
Dependencies 27
Dependents 8
Total lines 2,237
Lines of code 1,286
Logical lines of code 582
Comment lines 752
Methods 48
Properties 12

Methods 48

Method Rating Maintainability Complexity Lines of code
locate_sources()
D
28
38 137
validate_url()
C
32 29 97
add_admin_bar_menu_items()
B
35 14 92
update_admin_bar_item()
B
37 14 81
get_validate_url_error_message()
B
34 12 107
enqueue_block_validation()
A
38 10 70
finalize_validation()
A
47 11 34
print_plugin_notice()
A
43 10 48
add_validation_error()
A
48 10 31
wrap_hook_callbacks()
A
44 9 46
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
can_output_buffer()
S
52 7 25
post_supports_validation()
S
56 7 19
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
maybe_fail_validate_request()
S
60 4 13
decorate_shortcode_source()
S
55 3 21
init()
S
56 3 18
wrap_widget_callbacks()
S
57 3 16
unserialize_validation_error_messages()
S
59 3 14
is_matching_script()
S
60 3 13
should_validate_response()
S
60 3 13
map_meta_cap()
S
65 3 9
is_sanitization_auto_accepted()
S
66 3 8
add_validation_error_sourcing()
S
61 2 11
add_block_source_comments()
S
57 1 19
has_cap()
S
70 2 6
parse_source_comment()
S
65 2 8
remove_illegal_source_stack_comments()
S
72 2 5
get_source_comment()
S
66 2 8
decorate_embed_source()
S
60 1 14
serialize_validation_error_messages()
S
73 1 4
validate_queued_posts_on_frontend()
S
79 1 3
get_source()
S
67 1 9
get_amp_validate_nonce()
S
78 1 3
wrapped_callback()
S
80 1 3
print_edit_form_validation_status()
S
79 1 3
reset_validation_results()
S
70 1 7
handle_save_post_prompting_validation()
S
79 1 3
get_dev_tools_user_access()
S
76 1 4