WC_REST_Products_Controller D

Total Complexity 186
Dependencies 9
Dependents 0
Total lines 1,656
Lines of code 1,285
Logical lines of code 372
Comment lines 215
Methods 14
Properties 3

Methods 14

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
8
106 301
get_item_schema()
D
14
3 636
prepare_objects_query()
C
31 27 112
set_product_images()
A
43 13 46
get_product_data()
A
47 12 33
get_images()
S
50 5 29
get_downloads()
S
58 6 14
get_suggested_products()
S
56 3 19
get_objects()
S
60 3 13
get_suggested_products_collection_params()
S
51 1 31
add_search_criteria_to_wp_query_join()
S
65 3 8
get_collection_params()
S
55 1 19
register_routes()
S
59 1 16
add_search_criteria_to_wp_query_where()
S
66 2 8