Merchant_Pre_Orders_Main_Functionality B

Total Complexity 90
Dependencies 1
Dependents 1
Total lines 644
Lines of code 336
Logical lines of code 186
Comment lines 214
Methods 30
Properties 2

Methods 30

Method Rating Maintainability Complexity Lines of code
allow_one_type_only()
A
50 11 27
get_oldest_date()
A
59 10 12
check_for_pre_orders_and_maybe_update_status()
S
54 7 20
maybe_render_additional_information()
S
53 5 20
add_shipping_date_field()
S
57 4 16
custom_fields_for_simple_products_save()
S
57 4 16
get_pre_order_text()
S
58 4 14
custom_fields_for_variable_products_save()
S
58 4 14
add_block_title_filter()
S
64 4 8
change_button_text_for_variable_products()
S
59 3 13
init()
S
50 2 26
change_button_text()
S
69 3 6
set_pre_order_status()
S
65 3 10
check_pre_order_products()
S
65 3 9
cart_message_handler()
S
59 2 13
custom_fields_for_simple_products()
S
53 1 25
custom_fields_for_variable_products()
S
54 1 22
manage_pre_orders()
S
68 2 7
pre_orders_post_class()
S
71 2 6
order_item_meta_end()
S
78 2 3
is_pre_order()
S
76 2 3
override_product_grid_block()
S
68 2 7
block_remove_the_title_filter()
S
68 2 7
replaceDateTxt()
S
72 1 5
register_pre_orders_order_status()
S
64 1 10
get_pre_order_products()
S
82 1 3
set_pre_order_products()
S
77 1 4
shop_loop_item_title()
S
79 1 3
block_add_the_title_filter()
S
78 1 3
add_pre_orders_order_statuses()
S
76 1 4