WC_REST_Products_V2_Controller D

Total Complexity 308
Dependencies 12
Dependents 0
Total lines 2,367
Lines of code 1,792
Logical lines of code 659
Comment lines 379
Methods 28
Properties 4

Methods 28

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
11
96 258
get_product_data()
D
17
74 207
get_item_schema()
D
15
1 610
prepare_objects_query()
C
34 22 93
delete_item()
B
34 17 94
save_default_attributes()
A
46 15 38
set_product_images()
A
42 14 47
get_attributes()
A
46 10 38
save_product_shipping_data()
A
51 8 27
get_images()
S
45 6 43
get_collection_params()
S
37 2 100
save_downloadable_files()
S
55 6 18
prepare_object_for_response()
S
56 6 16
get_attribute_taxonomy_name()
S
57 5 18
register_routes()
S
40 1 77
get_default_attributes()
S
54 4 21
get_attribute_options()
S
60 4 14
get_downloads()
S
61 3 13
prepare_links()
S
58 2 16
save_taxonomy_terms()
S
65 3 9
get_taxonomy_terms()
S
62 2 11
clear_transients()
S
75 1 4
__construct()
S
78 1 3
api_get_meta_data()
S
81 1 3
api_get_price_html()
S
81 1 3
get_attribute_taxonomy_label()
S
73 1 5
get_object()
S
80 1 3
api_get_related_ids()
S
78 1 3