WCJ_Global_Discount B

Total Complexity 86
Dependencies 1
Dependents 0
Total lines 447
Lines of code 283
Logical lines of code 156
Comment lines 138
Methods 14
Properties 1

Methods 14

Method Rating Maintainability Complexity Lines of code
get_wcj_sale_products()
C
32 25 107
regenerate_wcj_sale_products_in_cache()
A
56 13 15
check_if_applicable_by_product_scope()
A
53 9 23
add_global_discount()
A
52 9 22
calculate_price()
S
57 5 15
__construct()
S
56 4 16
change_price()
S
60 4 13
change_price_grouped()
S
60 4 13
add_wcj_sale_ids_to_products_shortcode()
S
62 4 11
get_global_discount_options()
S
53 3 21
check_if_applicable()
S
77 2 3
get_variation_prices_hash()
S
69 2 7
is_enabled_for_product()
S
59 1 14
clear_wcj_sale_products_from_cache()
S
81 1 3