XT_Woo_Points_Rewards_Product A

Total Complexity 51
Dependencies 3
Dependents 3
Total lines 419
Lines of code 180
Logical lines of code 102
Comment lines 185
Methods 20
Properties 1

Methods 20

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