WC_REST_Product_Reviews_Controller D

Total Complexity 139
Dependencies 5
Dependents 0
Total lines 1,155
Lines of code 771
Logical lines of code 354
Comment lines 234
Methods 21
Properties 2

Methods 21

Method Rating Maintainability Complexity Lines of code
create_item()
B
35 20 76
get_items()
B
35 18 83
update_item()
B
39 19 57
prepare_item_for_response()
B
42 16 49
handle_status_param()
A
49 11 33
prepare_item_for_database()
A
50 10 29
get_item_schema()
A
36 3 101
delete_item()
A
47 7 35
prepare_status_response()
S
58 7 18
get_collection_params()
S
37 1 97
register_routes()
S
38 1 90
get_review()
S
56 5 18
normalize_query_param()
S
58 4 18
prepare_links()
S
54 3 22
delete_item_permissions_check()
S
68 2 6
batch_items_permissions_check()
S
69 2 6
update_item_permissions_check()
S
68 2 6
create_item_permissions_check()
S
69 2 6
get_item()
S
65 2 9
get_items_permissions_check()
S
69 2 6
get_item_permissions_check()
S
68 2 6