WP_REST_Custom_Router D

Total Complexity 152
Dependencies 5
Dependents 0
Total lines 1,077
Lines of code 890
Logical lines of code 376
Comment lines 10
Methods 13
Properties 0

Methods 13

Method Rating Maintainability Complexity Lines of code
prepare_item_for_response()
D
26
31 141
get_meta_posts()
C
30 27 116
get_item_schema()
C
26
14 217
get_relate_posts()
B
32 20 101
get_comment_posts()
B
32 19 100
get_most_posts()
B
34 17 91
check_read_permission()
A
53 10 23
sanitize_post_statuses()
S
54 5 20
register_routes()
S
44 1 55
can_access_password_content()
S
66 3 9
check_is_post_type_allowed()
S
66 3 9
__construct()
S
73 1 5
get_items_permissions_check()
S
82 1 3