XT_Woo_Points_Rewards_Product S

Total Complexity 47
Dependencies 2
Dependents 3
Total lines 418
Lines of code 179
Logical lines of code 101
Comment lines 185
Methods 20
Properties 1

Methods 20

Method Rating Maintainability Complexity Lines of code
render_product_message()
S
55 7 19
get_highest_points_variation()
S
54 4 22
is_order_renewal()
S
65 5 9
add_variation_message_to_product_summary()
S
61 4 12
get_points_earned_for_product_purchase()
S
62 4 11
render_available_variation_message()
S
60 3 13
replace_message_variables()
S
61 3 11
get_product_earned_points_text()
S
58 2 16
__construct()
S
58 2 16
create_variation_message_to_product_summary()
S
63 2 10
get_maximum_points_discount_for_product()
S
71 2 6
get_category_points()
S
77 1 4
get_product_points()
S
77 1 4
get_product_max_discount()
S
77 1 4
get_category_max_discount()
S
77 1 4
calculate_discount_modifier()
S
74 1 4
transient_highest_point_variation()
S
80 1 3
transient_lowest_point_variation()
S
80 1 3
delete_transients()
S
76 1 4
calculate_points_multiplier()
S
74 1 4