WC_REST_Products_V1_Controller D

Total Complexity 289
Dependencies 12
Dependents 0
Total lines 2,619
Lines of code 1,957
Logical lines of code 572
Comment lines 419
Methods 36
Properties 3

Methods 36

Method Rating Maintainability Complexity Lines of code
set_product_meta()
D
18
73 199
get_item_schema()
D
12
1 834
save_variations_data()
D
28
44 117
delete_item()
B
39 18 55
query_args()
A
40 14 61
save_default_attributes()
A
46 15 38
set_product_images()
A
44 14 40
prepare_item_for_database()
A
46 13 36
get_attributes()
A
44 9 48
get_variation_data()
A
42 8 48
get_product_data()
A
37 6 70
save_product_shipping_data()
A
51 8 27
get_images()
S
46 6 39
save_downloadable_files()
S
55 6 18
prepare_item_for_response()
S
56 6 16
update_item()
S
53 5 20
delete_post()
S
56 5 17
update_post_meta_fields()
S
57 5 16
create_item()
S
50 4 25
get_default_attributes()
S
54 4 21
register_routes()
S
42 1 61
get_collection_params()
S
43 1 60
get_attribute_options()
S
65 4 8
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
save_product_images()
S
75 1 4
save_product()
S
76 1 4
save_product_meta()
S
73 1 5
get_product_menu_order()
S
81 1 3
add_post_meta_fields()
S
79 1 3
get_attribute_taxonomy_label()
S
73 1 5
clear_transients()
S
81 1 3
get_post_types()
S
80 1 3
__construct()
S
73 1 4