YITH_YWGC_Cart_Checkout D

Total Complexity 206
Dependencies 5
Dependents 2
Total lines 1,439
Lines of code 649
Logical lines of code 451
Comment lines 499
Methods 28
Properties 1

Methods 28

Method Rating Maintainability Complexity Lines of code
add_to_cart_handler()
D
34 34 83
get_cart_item_from_session()
B
46 25 33
build_cart_item_data()
B
39 23 56
apply_gift_cards_discount()
B
36 17 77
ywgc_allow_shipping_in_coupons()
A
38 14 67
verify_coupon_code()
A
45 14 40
ywgc_custom_cart_product_image()
A
46 9 38
ywgc_charge_other_amounts_on_coupons()
A
50 8 27
register_gift_cards_usage()
A
48 7 31
show_gift_card_amount_on_cart_totals()
S
51 5 24
__construct()
S
51 4 24
show_gift_cards_total_applied_to_order()
S
53 4 20
append_gift_card_data_to_order_item()
S
58 4 14
apply_gift_card_code_callback()
S
59 4 13
remove_gift_card_code_callback()
S
59 4 13
set_price_in_cart()
S
65 4 9
append_gift_card_data_to_new_order_item()
S
65 4 10
cmp()
S
70 3 6
calculate_cart_total_in_the_mini_cart()
S
65 3 9
get_instance()
S
72 2 6
empty_gift_cards_session()
S
74 2 5
remove_gift_card_code_from_session()
S
68 2 7
add_gift_card_code_to_session()
S
67 2 8
deduct_amount_from_gift_card_wc_3_plus()
S
72 2 5
deduct_amount_from_gift_card()
S
66 2 8
get_gift_cards_from_session()
S
69 2 7
show_cart_message_on_added_product()
S
75 1 4
ywgc_apply_gift_card_on_coupon_form()
S
71 1 5