YITH_YWGC_Cart_Checkout D

Total Complexity 160
Dependencies 6
Dependents 1
Total lines 1,021
Lines of code 513
Logical lines of code 321
Comment lines 308
Methods 28
Properties 1

Methods 28

Method Rating Maintainability Complexity Lines of code
add_to_cart_handler()
D
34 34 83
build_cart_item_data()
C
38 25 61
get_cart_item_from_session()
B
49 20 28
apply_gift_cards_discount()
A
43 12 46
ywgc_custom_cart_product_image()
A
47 7 33
register_gift_cards_usage()
S
52 5 24
show_gift_card_amount_on_cart_totals()
S
51 5 24
verify_coupon_code()
S
55 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
show_gift_cards_total_applied_to_order()
S
55 3 19
set_price_in_cart()
S
66 4 8
ywgc_apply_gift_card_on_coupon_form()
S
55 2 24
append_gift_card_data_to_new_order_item()
S
69 3 7
cmp()
S
70 3 6
add_order_gift_card()
S
59 2 15
init_hooks()
S
56 1 17
deduct_amount_from_gift_card()
S
66 2 8
get_instance()
S
72 2 6
show_cart_message_on_added_product()
S
71 2 5
empty_gift_cards_session()
S
74 2 5
get_gift_cards_from_session()
S
69 2 7
remove_gift_card_code_from_session()
S
66 2 8
add_gift_card_code_to_session()
S
66 2 8
deduct_amount_from_gift_card_wc_3_plus()
S
72 2 5
__construct()
S
78 1 4
includes()
S
91 1 2