WPSC_Cart B

Total Complexity 85
Dependencies 1
Dependents 36
Total lines 644
Lines of code 338
Logical lines of code 203
Comment lines 186
Methods 44
Properties 17

Methods 44

Method Rating Maintainability Complexity Lines of code
calculate_cart_totals_and_postage()
A
42 10 54
__construct()
S
56 6 17
get_cart_total()
S
55 5 19
all_cart_items_digital()
S
62 4 12
get_items()
S
63 4 10
create_cart()
S
50 2 29
simple_cart_total()
S
61 3 13
cart_not_empty()
S
64 3 11
get_total_cart_qty()
S
65 3 10
get_total_cart_sub_total()
S
64 3 10
reset_cart_after_txn()
S
60 2 13
get_instance()
S
71 2 6
get_cart_from_postmeta()
S
68 2 7
save_items()
S
73 2 5
delete_cart_and_related_data()
S
63 2 10
get_cart_action_msg()
S
69 2 7
set_cart_action_msg()
S
68 2 7
clear_cart_action_msg()
S
71 2 6
save_cart_to_postmeta()
S
75 1 4
set_selected_shipping_region()
S
81 1 3
get_selected_shipping_region()
S
82 1 3
set_selected_tax_region()
S
81 1 3
get_selected_tax_region()
S
82 1 3
add_items()
S
81 1 3
reset_cart()
S
69 1 7
get_sub_total_formatted()
S
76 1 4
get_total_shipping_cost()
S
82 1 3
get_postage_cost()
S
77 1 4
get_tax()
S
82 1 3
get_tax_amount()
S
82 1 3
get_tax_amount_formatted()
S
80 1 3
get_postage_cost_formatted()
S
76 1 4
get_item_shipping_total()
S
82 1 3
get_grand_total_formatted()
S
76 1 4
get_cart_cpt_id()
S
82 1 3
set_cart_cpt_id()
S
81 1 3
get_cart_id()
S
82 1 3
set_cart_id()
S
81 1 3
set_items()
S
74 1 5
set_cart_custom_values()
S
81 1 3
get_cart_custom_values()
S
82 1 3
increment_on_page_carts_div_count()
S
82 1 3
get_on_page_carts_div_count()
S
82 1 3
get_next_on_page_cart_div_id()
S
71 1 6