WCML_Custom_Prices D

Total Complexity 157
Dependencies 8
Dependents 1
Total lines 734
Lines of code 493
Logical lines of code 276
Comment lines 97
Methods 29
Properties 2

Methods 29

Method Rating Maintainability Complexity Lines of code
get_product_custom_prices()
C
33 26 93
filter_products_with_custom_prices()
B
40 15 61
save_custom_prices_without_post_form()
A
44 13 41
is_on_sale_date_range()
A
54 11 23
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
save_custom_prices_on_rest()
S
50 6 30
save_custom_prices()
S
59 6 13
update_custom_prices()
S
55 4 20
validate_and_update_sale_price_dates()
S
58 4 16
filter_product_variations_with_custom_prices()
S
63 5 10
is_on_sale()
S
66 5 8
exclude_hidden_variation_prices_from_prices()
S
60 4 13
check_product_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
filter_product_is_on_sale()
S
64 4 10
maybe_set_sale_prices()
S
64 4 9
custom_prices_init()
S
55 2 18
is_date_range_set()
S
64 3 9
woocommerce_product_after_variable_attributes_custom_pricing()
S
69 2 7
__construct()
S
77 1 4
add_hooks()
S
79 1 3
add_individual_variation_nonce()
S
78 1 3
load_custom_prices_js_css()
S
68 1 6
custom_pricing_output()
S
75 1 4
sync_product_variations_custom_prices_on_ajax()
S
72 1 5
is_custom_prices_set_for_product()
S
77 1 3