WC_Points_Rewards_Cart_Checkout B

Total Complexity 79
Dependencies 4
Dependents 0
Total lines 644
Lines of code 391
Logical lines of code 161
Comment lines 137
Methods 14
Properties 0

Methods 14

Method Rating Maintainability Complexity Lines of code
get_discount_for_redeeming_points()
B
38 22 61
render_redeem_points_message()
B
31 9 182
get_points_earned_for_purchase()
A
48 10 29
maybe_apply_discount()
S
60 6 12
get_points_earned_for_order_received()
S
61 6 11
is_fully_discounted()
S
65 5 9
ajax_maybe_apply_discount()
S
60 4 12
render_thank_you_message()
S
58 3 15
points_last()
S
62 3 12
render_earn_points_message()
S
61 3 12
discount_removed()
S
68 3 8
coupon_label()
S
70 2 6
calculate_discount_modifier()
S
64 2 9
__construct()
S
60 1 13