Merchant_Pre_Orders_Main_Functionality D

Total Complexity 190
Dependencies 7
Dependents 1
Total lines 1,319
Lines of code 737
Logical lines of code 450
Comment lines 410
Methods 45
Properties 1

Methods 45

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_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 40
dynamic_discount_cart_price()
S
52 7 24
check_for_pre_orders_and_maybe_update_status()
S
54 7 20
additional_information_after_cart_form()
S
55 7 18
additional_information_before_cart_form()
S
55 6 18
separate_order_for_pre_orders()
S
48 4 35
cart_message_handler()
S
55 5 19
get_pre_order_text()
S
56 5 16
mark_whole_order_as_pre_order()
S
56 4 18
splitting_orders()
S
63 5 10
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
copy_order_details()
S
49 2 30
add_block_title_filter()
S
64 4 8
init()
S
48 2 30
change_button_text()
S
66 4 7
get_rule_sale()
S
61 3 12
maybe_render_additional_information()
S
63 3 9
add_order_item_meta()
S
67 3 8
order_item_meta_end()
S
78 2 3
block_remove_the_title_filter()
S
68 2 7
simple_product_price_html()
S
65 2 9
override_product_grid_block()
S
68 2 7
pre_orders_post_class()
S
71 2 6
clone_order_item()
S
61 1 12
shop_loop_item_title()
S
79 1 3
shop_order_column()
S
75 1 4
hidden_order_itemmeta()
S
72 1 6
block_add_the_title_filter()
S
78 1 3
is_pre_order()
S
75 1 4
allowed_product_types()
S
70 1 7
pre_order_rules()
S
79 1 3
add_pre_orders_order_statuses()
S
75 1 4
register_pre_orders_order_status()
S
64 1 10
convert_timestamp_to_human_readable()
S
69 1 6
replace_date_text()
S
72 1 5