WCML_Custom_Prices D

Total Complexity 137
Dependencies 8
Dependents 1
Total lines 597
Lines of code 408
Logical lines of code 221
Comment lines 62
Methods 26
Properties 2

Methods 26

Method Rating Maintainability Complexity Lines of code
get_product_custom_prices()
C
33 26 93
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
custom_prices_init()
S
54 3 19
maybe_set_sale_prices()
S
64 4 9
filter_product_is_on_sale()
S
64 4 10
check_product_with_custom_prices()
S
65 4 9
filter_product_variations_with_custom_prices()
S
65 4 9
is_filtering_products_with_custom_prices_enabled()
S
70 4 6
is_sale_price_valid()
S
66 4 7
is_date_range_set()
S
64 3 9
woocommerce_product_after_variable_attributes_custom_pricing()
S
69 2 7
sync_product_variations_custom_prices_on_ajax()
S
72 1 5
add_individual_variation_nonce()
S
78 1 3
add_hooks()
S
79 1 3
custom_pricing_output()
S
75 1 4
is_custom_prices_set_for_product()
S
79 1 3
load_custom_prices_js_css()
S
68 1 6
__construct()
S
77 1 4