WP_REST_Comments_Controller D

Total Complexity 174
Dependencies 6
Dependents 1
Total lines 1,216
Lines of code 874
Logical lines of code 382
Comment lines 191
Methods 23
Properties 0

Methods 23

Method Rating Maintainability Complexity Lines of code
get_items_permissions_check()
B
45 19 36
create_item()
B
39 17 57
prepare_item_for_database()
A
44 16 45
create_item_permissions_check()
A
49 17 26
get_items()
A
37 13 73
update_item()
A
44 13 42
get_item_schema()
A
31 3 155
handle_status_param()
A
49 11 33
check_read_permission()
A
55 10 20
prepare_links()
A
45 7 43
get_collection_params()
A
34 1 126
get_item_permissions_check()
A
55 8 18
delete_item()
S
49 7 27
prepare_status_response()
S
58 7 18
prepare_item_for_response()
S
46 4 36
normalize_query_param()
S
56 5 21
get_item()
S
57 4 16
register_routes()
S
46 1 45
delete_item_permissions_check()
S
61 3 11
check_edit_permission()
S
65 3 9
update_item_permissions_check()
S
65 3 8
check_read_post_permission()
S
75 1 4
__construct()
S
73 1 5