WC_Cart D

Total Complexity 305
Dependencies 11
Dependents 5
Total lines 2,146
Lines of code 969
Logical lines of code 545
Comment lines 870
Methods 110
Properties 8

Methods 110

Method Rating Maintainability Complexity Lines of code
add_to_cart()
D
24
41 157
apply_coupon()
A
41 15 55
check_customer_coupons()
A
45 12 40
show_shipping()
A
52 13 23
generate_cart_id()
A
51 11 24
get_tax_totals()
S
49 7 30
check_cart_item_stock()
S
52 7 22
get_product_subtotal()
S
53 7 22
get_cart_shipping_total()
S
56 7 17
get_cart_subtotal()
S
56 7 16
calculate_shipping()
S
56 5 17
get_cross_sells()
S
57 5 17
is_coupon_emails_allowed()
S
58 5 15
get_taxes_total()
S
59 5 14
needs_shipping()
S
60 5 13
check_cart_item_validity()
S
61 5 11
get_cart_item_tax_classes()
S
64 5 9
set_quantity()
S
59 4 14
get_cart_item_tax_classes_for_shipping()
S
65 4 9
find_product_in_cart()
S
67 4 8
check_cart_items()
S
61 3 14
restore_cart_item()
S
61 3 12
get_coupons()
S
63 3 11
get_cart_item_quantities()
S
66 3 8
get_cart_contents_weight()
S
64 3 9
check_cart_coupons()
S
65 3 9
empty_cart()
S
60 2 15
get_chosen_shipping_methods()
S
64 3 10
get_tax_price_display_mode()
S
71 3 6
get_cart()
S
65 3 9
get_coupon_discount_amount()
S
65 3 8
remove_cart_item()
S
62 2 11
get_shipping_packages()
S
53 1 25
get_product_price()
S
67 2 8
get_total_discount()
S
77 2 3
get_shipping_tax_amount()
S
74 2 4
get_tax_amount()
S
74 2 4
get_cart_tax()
S
73 2 4
remove_coupon()
S
63 2 10
get_cart_total()
S
77 2 3
get_fees()
S
68 2 7
filter_items_needing_shipping()
S
75 2 4
get_displayed_subtotal()
S
78 2 3
get_coupon_discount_tax_amount()
S
74 2 4
has_discount()
S
77 2 3
calculate_totals()
S
65 2 10
needs_shipping_address()
S
77 2 3
get_cart_hash()
S
68 2 6
get_cart_item()
S
78 2 3
get_total()
S
73 2 4
get_totals()
S
79 2 3
get_totals_var()
S
78 2 3
__construct()
S
61 1 12
set_cart_contents_taxes()
S
79 1 3
add_fee()
S
65 1 10
get_fee_tax()
S
78 1 3
get_fee_total()
S
78 1 3
get_total_tax()
S
78 1 3
set_fee_taxes()
S
79 1 3
get_cart_contents_tax()
S
78 1 3
get_cart_contents_total()
S
78 1 3
get_shipping_tax()
S
78 1 3
remove_coupons()
S
72 1 6
get_shipping_total()
S
78 1 3
calculate_fees()
S
80 1 3
fees_api()
S
82 1 3
get_discount_tax()
S
78 1 3
get_cart_contents_taxes()
S
78 1 3
get_total_ex_tax()
S
77 1 3
get_discount_total()
S
78 1 3
get_subtotal_tax()
S
78 1 3
get_subtotal()
S
78 1 3
get_cart_contents_count()
S
78 1 3
get_taxes()
S
77 1 3
get_coupon_discount_tax_totals()
S
81 1 3
get_coupon_discount_totals()
S
81 1 3
get_applied_coupons()
S
81 1 3
get_removed_cart_contents()
S
81 1 3
reset_totals()
S
73 1 5
get_cart_contents()
S
79 1 3
get_shipping_taxes()
S
78 1 3
get_fee_taxes()
S
78 1 3
set_shipping_taxes()
S
79 1 3
set_shipping_total()
S
79 1 3
__clone()
S
73 1 5
set_fee_tax()
S
80 1 3
set_fee_total()
S
79 1 3
get_item_data()
S
75 1 4
set_total_tax()
S
79 1 3
get_remove_url()
S
75 1 4
get_undo_url()
S
75 1 4
set_total()
S
78 1 3
set_cart_contents_tax()
S
80 1 3
set_cart_contents_total()
S
79 1 3
set_shipping_tax()
S
80 1 3
set_discount_tax()
S
80 1 3
display_prices_including_tax()
S
78 1 3
set_discount_total()
S
80 1 3
set_subtotal_tax()
S
80 1 3
set_subtotal()
S
79 1 3
set_totals()
S
79 1 3
get_customer()
S
81 1 3
set_coupon_discount_tax_totals()
S
80 1 3
needs_payment()
S
78 1 3
set_coupon_discount_totals()
S
80 1 3
set_applied_coupons()
S
80 1 3
set_removed_cart_contents()
S
80 1 3
get_items_needing_shipping()
S
78 1 3
is_empty()
S
79 1 3
set_cart_contents()
S
80 1 3