WCCS_Product_Price_Replace B

Total Complexity 92
Dependencies 3
Dependents 0
Total lines 472
Lines of code 354
Logical lines of code 153
Comment lines 30
Methods 21
Properties 4

Methods 21

Method Rating Maintainability Complexity Lines of code
replace_variation_prices()
C
31 29 111
should_replace()
A
53 9 21
can_read_variation_cached_prices()
S
50 7 29
get_price_hash()
S
57 6 14
maybe_cache_price()
S
60 6 13
replace()
S
60 6 13
get_filters()
S
46 1 53
can_save_variation_cached_prices_transient()
S
66 4 9
replace_regular_price()
S
62 3 11
disable_hooks()
S
66 3 8
enable_hooks()
S
66 3 8
replace_sale_price()
S
63 2 11
replace_price()
S
63 2 11
get_replaced_price()
S
69 2 6
get_replaced_sale_price()
S
69 2 6
get_replaced_regular_price()
S
69 2 6
get_variation_prices_hash()
S
75 1 4
set_change_regular_price()
S
77 1 4
set_should_replace_prices()
S
77 1 4
get_variation_pricing_hash()
S
67 1 7
__construct()
S
74 1 5