WC_Product_Data_Store_CPT D

Total Complexity 275
Dependencies 10
Dependents 0
Total lines 2,137
Lines of code 1,344
Logical lines of code 617
Comment lines 511
Methods 45
Properties 4

Methods 45

Method Rating Maintainability Complexity Lines of code
get_wp_query_args()
D
22
40 216
search_products()
C
32 26 97
update_post_meta()
C
33 23 90
find_matching_product_variation()
B
40 16 57
handle_updated_props()
A
45 12 40
update_attributes()
A
47 12 33
update_visibility()
A
48 10 31
update()
A
40 8 60
query()
A
51 9 24
create_all_product_variations()
A
48 8 32
update_terms()
A
56 9 17
create()
A
45 7 40
get_related_products_query()
A
46 7 38
get_data_for_lookup_table()
S
49 7 26
read_attributes()
S
47 6 38
read_visibility()
S
53 6 22
update_downloads()
S
55 6 19
get_product_type()
S
55 6 18
get_on_sale_products()
S
49 4 34
read_product_data()
S
43 3 48
read_downloads()
S
56 5 17
read()
S
49 4 29
update_product_stock()
S
46 3 42
delete()
S
53 4 23
update_product_sales()
S
49 3 36
reviews_allowed_query_where()
S
62 4 11
read_extra_data()
S
66 3 8
sort_all_product_variations()
S
60 2 13
get_featured_product_ids()
S
53 1 25
is_existing_sku()
S
58 1 20
get_product_id_by_sku()
S
58 1 19
get_starting_sales()
S
60 1 17
get_ending_sales()
S
60 1 17
get_shipping_class_id_by_slug()
S
67 2 8
clear_caches()
S
66 2 9
update_version_and_type()
S
63 2 10
read_stock_quantity()
S
69 2 6
get_primary_key_for_lookup_table()
S
72 2 6
set_product_stock()
S
61 1 12
get_related_products()
S
61 1 11
get_query_for_stock()
S
65 1 11
update_average_rating()
S
75 1 4
update_review_count()
S
78 1 3
update_rating_counts()
S
78 1 3
get_products()
S
76 1 4