Merchant_Pre_Orders_Main_Functionality D

Total Complexity 223
Dependencies 8
Dependents 2
Total lines 1,595
Lines of code 911
Logical lines of code 531
Comment lines 471
Methods 51
Properties 2

Methods 51

Method Rating Maintainability Complexity Lines of code
available_product_rule()
B
42 21 47
is_valid_rule()
B
45 20 44
variable_product_price_html()
A
41 13 61
allow_one_type_only()
A
46 13 35
dynamic_discount_cart_price()
A
47 12 34
dynamic_discount_price_html()
A
52 10 24
log_order_event()
A
46 7 39
data_migration()
S
41 5 59
group_pre_order_into_one_order()
S
46 6 41
record_add_to_cart_event()
S
47 6 37
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 19
get_pre_order_text()
S
51 5 27
separate_order_for_pre_orders()
S
47 4 36
cart_message_handler()
S
55 5 19
update_analytics()
S
56 4 18
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
init()
S
47 2 34
record_impression()
S
56 3 18
change_button_text()
S
66 4 7
copy_order_details()
S
49 2 30
add_block_title_filter()
S
64 4 8
get_rule_sale()
S
61 3 12
add_order_item_meta()
S
67 3 8
maybe_render_additional_information()
S
63 3 9
create_order_line_item()
S
73 2 5
block_remove_the_title_filter()
S
68 2 7
override_product_grid_block()
S
68 2 7
order_item_meta_end()
S
78 2 3
simple_product_price_html()
S
64 2 9
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
add_pre_orders_order_statuses()
S
75 1 4
block_add_the_title_filter()
S
78 1 3
register_pre_orders_order_status()
S
64 1 10
trigger_emails()
S
72 1 5
allowed_product_types()
S
70 1 7
hidden_order_itemmeta()
S
72 1 6
pre_order_rules()
S
79 1 3
replace_date_text()
S
72 1 5
is_pre_order()
S
75 1 4
convert_timestamp_to_human_readable()
S
69 1 6
splitting_orders()
S
72 1 5