Merchant_Pre_Orders_Main_Functionality D

Total Complexity 187
Dependencies 7
Dependents 1
Total lines 1,357
Lines of code 753
Logical lines of code 453
Comment lines 428
Methods 46
Properties 1

Methods 46

Method Rating Maintainability Complexity Lines of code
is_valid_rule()
B
44 22 46
available_product_rule()
B
42 17 48
allow_one_type_only()
A
46 13 35
dynamic_discount_cart_price()
A
50 8 27
dynamic_discount_price_html()
A
54 8 20
variable_product_price_html()
A
49 7 33
data_migration()
S
41 5 59
group_pre_order_into_one_order()
S
46 6 41
additional_information_after_cart_form()
S
55 7 18
check_for_pre_orders_and_maybe_update_status()
S
54 6 20
additional_information_before_cart_form()
S
55 6 18
get_pre_order_text()
S
51 5 27
separate_order_for_pre_orders()
S
47 4 36
cart_message_handler()
S
55 5 19
mark_whole_order_as_pre_order()
S
56 4 18
shop_order_column_content()
S
59 4 15
change_button_text_for_variable_products()
S
58 4 14
prepare_rule()
S
59 4 13
add_cart_item_data()
S
61 4 12
calculate_discounted_price()
S
55 3 21
add_block_title_filter()
S
64 4 8
init()
S
48 2 30
change_button_text()
S
66 4 7
copy_order_details()
S
49 2 30
get_rule_sale()
S
61 3 12
maybe_render_additional_information()
S
63 3 9
add_order_item_meta()
S
67 3 8
block_remove_the_title_filter()
S
68 2 7
pre_orders_post_class()
S
71 2 6
simple_product_price_html()
S
65 2 9
order_item_meta_end()
S
78 2 3
override_product_grid_block()
S
68 2 7
clone_order_item()
S
61 1 12
convert_timestamp_to_human_readable()
S
69 1 6
is_pre_order()
S
75 1 4
pre_order_rules()
S
79 1 3
allowed_product_types()
S
70 1 7
hidden_order_itemmeta()
S
72 1 6
block_add_the_title_filter()
S
78 1 3
shop_order_column()
S
75 1 4
shop_loop_item_title()
S
79 1 3
add_pre_orders_order_statuses()
S
75 1 4
register_pre_orders_order_status()
S
64 1 10
trigger_emails()
S
72 1 5
replace_date_text()
S
72 1 5
splitting_orders()
S
72 1 5