WC_Cart_Stock_Reducer D

Total Complexity 268
Dependencies 3
Dependents 0
Total lines 1,285
Lines of code 876
Logical lines of code 536
Comment lines 272
Methods 45
Properties 8

Methods 45

Method Rating Maintainability Complexity Lines of code
get_avail()
B
40 21 54
get_item_managing_stock()
B
42 19 57
get_virtual_stock_available()
A
48 9 32
get_stock_available()
A
49 9 31
__construct()
A
39 7 60
add_cart_item()
A
52 9 24
add_to_cart()
A
51 9 24
expiration_time_cache()
A
54 9 22
remove_expired_item()
A
48 8 31
add_cart_validation()
A
50 8 27
adjust_cart_expiration()
A
54 8 20
get_availability_text()
S
57 8 15
get_availability_class()
S
58 8 15
replace_stock_pending_text()
S
57 8 15
expire_items()
S
52 7 25
product_get_stock_quantity()
S
55 7 20
product_get_stock_status()
S
55 7 19
is_expired()
S
55 7 19
validate_expire_time_field()
S
56 7 16
remove_expire_notice()
S
55 6 19
expire_notice_added()
S
57 6 17
get_undo_url()
S
56 6 17
product_available_variation()
S
56 6 17
check_cart_items()
S
56 6 15
product_is_in_stock()
S
61 6 12
get_field_managing_stock()
S
55 5 22
item_managing_stock()
S
57 5 18
find_countdown_language()
S
58 5 15
items_in_cart()
S
62 5 11
init_form_fields()
S
41 1 64
woocommerce_post_class()
S
63 5 10
countdown()
S
60 4 13
countdown_footer()
S
60 3 12
quantity_input_args()
S
62 3 11
update_cart_validation()
S
64 3 9
trace_contains()
S
65 3 9
load_plugin_textdomain()
S
66 2 7
add_countdown_to_notice()
S
69 2 7
action_links()
S
67 2 7
get_customer_id()
S
66 2 9
display_errors()
S
68 2 9
add_to_cart_message()
S
71 2 6
check_expired_items()
S
82 1 3
get_actual_stock_available()
S
71 1 6
woocommerce_init()
S
73 1 5