WCML_Custom_Prices D

Total Complexity 143
Dependencies 5
Dependents 1
Total lines 601
Lines of code 413
Logical lines of code 229
Comment lines 59
Methods 24
Properties 2

Methods 24

Method Rating Maintainability Complexity Lines of code
get_product_custom_prices()
D
29
38 118
save_custom_prices()
A
45 15 36
is_on_sale_date_range()
A
54 11 23
filter_products_with_custom_prices()
A
46 9 37
woocommerce_product_options_custom_pricing()
A
56 10 15
sync_product_variations_custom_prices()
A
48 7 31
maybe_remove_sale_prices()
S
56 7 16
update_custom_prices()
S
55 4 20
validate_and_update_sale_price_dates()
S
58 4 16
is_on_sale()
S
66 5 8
filter_product_is_on_sale()
S
64 4 10
is_sale_price_valid()
S
66 4 7
is_filtering_products_with_custom_prices_enabled()
S
70 4 6
filter_product_variations_with_custom_prices()
S
65 4 9
check_product_with_custom_prices()
S
65 4 9
is_date_range_set()
S
64 3 9
custom_prices_init()
S
59 2 13
woocommerce_product_after_variable_attributes_custom_pricing()
S
69 2 7
add_hooks()
S
79 1 3
custom_pricing_output()
S
75 1 4
load_custom_prices_js_css()
S
68 1 6
add_individual_variation_nonce()
S
78 1 3
is_custom_prices_set_for_product()
S
79 1 3
__construct()
S
77 1 4