WP_REST_Posts_Controller D

Total Complexity 233
Dependencies 7
Dependents 6
Total lines 1,545
Lines of code 1,002
Logical lines of code 465
Comment lines 321
Methods 31
Properties 1

Methods 31

Method Rating Maintainability Complexity Lines of code
prepare_item_for_database()
D
30 42 98
get_item_schema()
C
23
17 262
prepare_item_for_response()
B
35 18 85
prepare_links()
B
37 17 76
update_item()
A
43 16 43
create_item()
A
43 13 47
delete_item()
A
43 11 43
check_read_permission()
A
53 10 22
update_item_permissions_check()
A
55 10 17
handle_status_param()
A
52 9 25
get_items()
A
44 7 45
create_item_permissions_check()
S
58 8 13
handle_author_param()
S
57 5 17
prepare_items_query()
S
59 5 13
register_routes()
S
43 1 61
get_item_permissions_check()
S
62 5 10
get_item()
S
60 4 11
check_is_post_type_allowed()
S
65 4 9
handle_featured_image()
S
61 3 13
get_items_permissions_check()
S
66 3 7
delete_item_permissions_check()
S
67 3 7
prepare_excerpt_response()
S
64 3 10
prepare_date_response()
S
66 3 9
get_post_type_base()
S
68 3 7
get_allowed_query_vars()
S
61 2 12
prepare_password_response()
S
64 2 9
handle_template()
S
68 2 7
check_update_permission()
S
68 2 7
check_create_permission()
S
69 2 7
check_delete_permission()
S
68 2 7
__construct()
S
81 1 3