XT_Woo_Points_Rewards_Product A

Total Complexity 54
Dependencies 3
Dependents 3
Total lines 433
Lines of code 189
Logical lines of code 108
Comment lines 185
Methods 20
Properties 1

Methods 20

Method Rating Maintainability Complexity Lines of code
render_product_message()
A
53 8 22
is_order_renewal()
S
64 6 9
get_points_earned_for_product_purchase()
S
60 5 13
add_variation_message_to_product_summary()
S
61 5 12
get_highest_points_variation()
S
54 4 22
render_available_variation_message()
S
57 4 16
replace_message_variables()
S
60 4 12
get_product_earned_points_text()
S
58 3 16
__construct()
S
58 2 16
create_variation_message_to_product_summary()
S
62 2 11
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