WC_API_Products D

Total Complexity 527
Dependencies 12
Dependents 0
Total lines 3,293
Lines of code 1,995
Logical lines of code 1,170
Comment lines 717
Methods 59
Properties 1

Methods 59

Method Rating Maintainability Complexity Lines of code
save_product_meta()
D
12
93 264
save_variations()
D
27
44 127
create_product()
C
35 29 69
edit_product()
B
39 21 56
save_product_images()
B
44 18 41
save_product_shipping_data()
A
48 14 31
edit_product_category()
A
43 13 45
edit_product_attribute()
A
40 12 56
create_product_category()
A
41 12 50
create_product_attribute()
A
41 11 51
save_default_attributes()
A
47 12 36
bulk()
A
42 11 50
delete_product()
A
44 11 43
get_product_data()
A
36 8 75
get_product()
A
51 10 25
get_product_category()
A
46 9 34
create_product_attribute_term()
A
47 8 34
edit_product_attribute_term()
A
47 8 33
get_variation_data()
A
42 7 47
query_products()
A
45 7 45
delete_product_attribute()
A
45 7 40
create_product_shipping_class()
A
46 7 36
validate_attribute_data()
A
53 8 19
get_product_attribute_term()
S
48 7 30
get_images()
S
46 6 39
save_downloadable_files()
S
53 7 21
get_product_attribute()
S
48 6 31
get_product_shipping_class()
S
50 6 27
edit_product_shipping_class()
S
50 6 26
get_product_tag()
S
50 6 26
set_uploaded_image_as_attachment()
S
51 6 25
edit_product_tag()
S
51 6 25
delete_product_attribute_term()
S
51 6 23
create_product_tag()
S
50 5 27
get_product_attribute_terms()
S
51 5 25
delete_product_category()
S
55 5 17
delete_product_shipping_class()
S
55 5 17
delete_product_tag()
S
56 5 16
register_routes()
S
40 1 69
get_attributes()
S
52 4 24
get_product_attributes()
S
52 4 22
get_products()
S
57 4 16
get_product_shipping_classes()
S
56 4 15
get_product_categories()
S
56 4 15
clear_product()
S
58 4 15
get_product_tags()
S
56 4 15
get_products_count()
S
58 4 14
get_grouped_products_data()
S
63 4 11
get_product_orders()
S
54 3 21
get_product_reviews()
S
54 3 20
get_attribute_options()
S
65 4 8
get_downloads()
S
61 3 13
get_attribute_taxonomy_by_slug()
S
63 3 11
upload_image_from_url()
S
66 2 8
upload_product_image()
S
79 1 3
get_product_menu_order()
S
75 1 4
upload_product_category_image()
S
79 1 3
set_product_image_as_attachment()
S
79 1 3
set_product_category_image_as_attachment()
S
80 1 3