WPSC_Cart D

Total Complexity 222
Dependencies 8
Dependents 6
Total lines 1,344
Lines of code 695
Logical lines of code 443
Comment lines 407
Methods 58
Properties 38

Methods 58

Method Rating Maintainability Complexity Lines of code
set_item()
B
43 18 44
get_shipping_method()
A
44 14 41
get_tax_rate()
A
44 13 50
needs_shipping_recalc()
A
49 11 30
get_shipping_option()
A
54 11 21
shipping_info_empty()
A
62 10 12
google_shipping_quotes()
A
52 8 24
shipping_method_selected()
S
61 8 13
calculate_subtotal()
S
55 6 21
get_shipping_quotes()
S
54 6 20
calculate_base_shipping()
S
56 6 18
calculate_total_weight()
S
59 5 15
shipping_quote_selected()
S
64 6 10
update_shipping()
S
59 5 15
calculate_total_shipping()
S
59 5 13
edit_item()
S
56 4 17
uses_shipping()
S
59 4 15
calculate_per_item_shipping()
S
60 4 14
get_items()
S
56 3 17
wpsc_refresh_cart_items()
S
67 4 8
have_shipping_quotes()
S
66 4 8
get_cart_item_by_id()
S
65 4 9
have_shipping_methods()
S
66 4 8
have_cart_items()
S
63 4 10
check_remaining_quantity()
S
61 3 12
remove_item()
S
58 2 16
get_total_shipping_quantity()
S
67 3 8
has_total_shipping_discount()
S
74 3 4
calculate_total_price()
S
62 3 10
apply_coupons()
S
63 2 11
save_to_db()
S
73 2 5
the_cart_item()
S
70 2 6
rewind_cart_items()
S
71 2 6
rewind_shipping_methods()
S
69 2 7
set_default_shipping_quote()
S
69 2 7
rewind_shipping_quotes()
S
71 2 6
calculate_total_tax()
S
66 2 8
get_item_category_ids()
S
68 2 7
remove_item_by_id()
S
69 2 7
edit_item_by_id()
S
68 2 7
get_item_categories()
S
68 2 7
clear_shipping_info()
S
62 1 13
empty_cart()
S
60 1 13
update_location()
S
62 1 12
clear_cache()
S
62 1 12
validate_cart()
S
76 1 4
the_shipping_quote()
S
81 1 3
next_shipping_quote()
S
74 1 5
get_remaining_quantity()
S
79 1 3
the_shipping_method()
S
77 1 4
next_shipping_method()
S
74 1 5
submit_stock_claims()
S
75 1 4
cleanup()
S
72 1 5
next_cart_item()
S
74 1 5
empty_db()
S
72 1 5
shopper_location_changing()
S
83 1 3
process_as_currency()
S
75 1 4
__construct()
S
65 1 8