WCML_Custom_Prices D

Total Complexity 142
Dependencies 8
Dependents 1
Total lines 659
Lines of code 439
Logical lines of code 241
Comment lines 91
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
get_product_custom_prices()
C
33 26 93
save_custom_prices_without_post_form()
A
45 12 38
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
save_custom_prices_ajax()
S
53 4 23
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
is_sale_price_valid()
S
66 4 7
is_filtering_products_with_custom_prices_enabled()
S
70 4 6
save_custom_prices()
S
68 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
woocommerce_product_after_variable_attributes_custom_pricing()
S
69 2 7
add_hooks()
S
79 1 3
custom_pricing_output()
S
75 1 4
sync_product_variations_custom_prices_on_ajax()
S
72 1 5
load_custom_prices_js_css()
S
68 1 6
is_custom_prices_set_for_product()
S
77 1 3
add_individual_variation_nonce()
S
78 1 3
__construct()
S
77 1 4