WC_Cart_Stock_Reducer D

Total Complexity 262
Dependencies 4
Dependents 0
Total lines 1,327
Lines of code 930
Logical lines of code 527
Comment lines 250
Methods 47
Properties 8

Methods 47

Method Rating Maintainability Complexity Lines of code
is_expiration_enabled()
A
49 12 29
remove_expired_item()
A
45 11 40
add_to_cart()
A
48 10 29
add_cart_item()
A
52 9 24
expiration_time_cache()
A
54 9 22
get_availability_text()
A
55 9 18
get_availability_class()
A
56 9 18
get_virtual_stock_available()
A
50 8 28
add_cart_validation()
A
51 8 26
get_item_managing_stock()
A
53 8 25
is_reducer_enabled()
A
53 8 24
product_get_stock_quantity()
A
53 8 23
product_get_stock_status()
A
53 8 22
adjust_cart_expiration()
A
54 8 20
replace_stock_pending_text()
S
57 8 15
check_refresh_items()
S
59 8 14
expire_items()
S
52 7 25
is_expired()
S
56 7 18
validate_expire_time_field()
S
56 7 16
init_form_fields()
S
35 1 105
__construct()
S
40 4 56
remove_expire_notice()
S
55 6 19
get_undo_url()
S
56 6 17
expire_notice_added()
S
57 6 17
get_product_parent_id()
S
58 6 15
check_cart_items()
S
56 6 15
woocommerce_admin_process_product_object()
S
59 6 13
woocommerce_post_class()
S
60 6 13
woocommerce_product_options_inventory_product_data()
S
44 3 49
find_countdown_language()
S
58 5 15
items_in_cart()
S
62 5 11
quantity_input_args()
S
59 4 15
product_available_variation()
S
58 4 15
countdown()
S
60 4 13
update_cart_validation()
S
60 4 12
get_field_managing_stock()
S
61 3 14
countdown_footer()
S
60 3 12
trace_contains()
S
65 3 9
add_countdown_to_notice()
S
69 2 7
action_links()
S
67 2 7
add_to_cart_message()
S
71 2 6
get_customer_id()
S
66 2 9
load_plugin_textdomain()
S
66 2 7
display_errors()
S
68 2 9
check_expired_items()
S
82 1 3
get_actual_stock_available()
S
71 1 6
woocommerce_init()
S
73 1 5