WP_JSON_Posts D

Total Complexity 158
Dependencies 10
Dependents 1
Total lines 1,217
Lines of code 660
Logical lines of code 402
Comment lines 356
Methods 31
Properties 1

Methods 31

Method Rating Maintainability Complexity Lines of code
insert_post()
D
22
53 175
prepare_post()
C
29
24 129
get_posts()
A
41 11 52
get_post()
A
47 9 31
edit_post()
A
50 9 25
get_post_type()
S
46 6 39
get_post_statuses()
S
50 6 29
delete_post()
S
54 6 19
get_revisions()
S
56 5 17
get_post_types()
S
61 3 12
prepare_excerpt()
S
64 3 10
add_post_type_data()
S
65 3 9
register_routes()
S
52 1 27
create_post()
S
62 2 11
check_read_permission()
S
75 1 4
add_meta()
S
71 1 5
is_valid_meta_data()
S
71 1 5
prepare_meta()
S
71 1 5
delete_meta()
S
71 1 5
update_meta()
S
71 1 5
get_meta()
S
71 1 5
__construct()
S
76 1 4
get_all_meta()
S
72 1 5
handle_get_post_meta()
S
75 1 4
handle_post_meta_action()
S
74 1 4
prepare_comment()
S
73 1 4
get_comment()
S
74 1 4
get_comments()
S
74 1 4
delete_comment()
S
74 1 4
new_post()
S
74 1 4
check_edit_permission()
S
75 1 4