WP_REST_Posts_Router S

Total Complexity 46
Dependencies 4
Dependents 0
Total lines 289
Lines of code 270
Logical lines of code 133
Comment lines 0
Methods 13
Properties 0

Methods 13

Method Rating Maintainability Complexity Lines of code
get_comment_posts()
A
46 10 37
get_meta_posts()
A
52 8 20
get_relate_posts()
S
51 7 24
get_sticky_posts()
S
53 5 21
get_most_posts()
S
55 5 16
get_rand_posts()
S
57 4 15
register_routes()
S
46 1 50
comment_posts_collection_params()
S
53 1 25
most_posts_collection_params()
S
56 1 20
relate_posts_collection_params()
S
56 1 20
default_posts_collection_params()
S
59 1 15
__construct()
S
77 1 4
get_wp_posts_permissions_check()
S
82 1 3