Charitable_Endpoints A

Total Complexity 68
Dependencies 2
Dependents 1
Total lines 729
Lines of code 322
Logical lines of code 161
Comment lines 303
Methods 27
Properties 3

Methods 27

Method Rating Maintainability Complexity Lines of code
get_current_endpoint()
S
53 6 24
endpoints_menu_meta_box()
S
44 4 51
template_loader()
S
57 4 17
disable_endpoint_cache()
S
61 4 14
register()
S
57 3 17
add_endpoints_menu_meta_box_items_to_customizer()
S
59 3 13
maybe_redirect()
S
63 3 12
get_endpoint_template()
S
59 2 15
get_content()
S
66 3 9
maybe_disable_comments()
S
65 3 10
maybe_remove_comments_template()
S
68 3 7
get_endpoints_for_nav_menu()
S
64 3 10
get_non_cacheable_endpoints()
S
65 3 9
__construct()
S
55 1 18
get_page_url()
S
66 2 8
is_page()
S
66 2 8
block_404_on_endpoints()
S
67 2 8
prevent_polylang_rewrite_modification()
S
66 2 9
setup_rewrite_rules()
S
71 2 6
add_query_vars()
S
70 2 6
home_template_hierarchy()
S
68 2 7
add_body_classes()
S
67 2 8
get_endpoint()
S
78 2 3
sanitize_endpoint()
S
68 2 7
add_endpoints_menu_meta_box_to_customizer()
S
63 1 12
add_endpoints_menu_meta_box()
S
64 1 11
endpoint_exists()
S
79 1 3