Merchant_Pre_Orders_Main_Functionality B

Total Complexity 81
Dependencies 2
Dependents 1
Total lines 520
Lines of code 288
Logical lines of code 159
Comment lines 146
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
allow_one_type_only()
A
50 10 27
get_oldest_date()
A
59 10 12
check_for_pre_orders_and_maybe_update_status()
S
53 7 22
maybe_render_additional_information()
S
53 6 20
change_button_text()
S
58 5 14
add_shipping_date_field()
S
57 4 16
custom_fields_for_simple_products_save()
S
57 4 16
isPreOrder()
S
65 5 8
check_pre_order_products()
S
63 5 9
custom_fields_for_variable_products_save()
S
58 4 14
change_button_text_for_variable_products()
S
58 4 13
init()
S
53 2 21
pre_orders_post_class()
S
68 3 6
set_pre_order_status()
S
65 3 10
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
set_pre_order_products()
S
77 1 4
get_pre_order_products()
S
82 1 3
replaceDateTxt()
S
72 1 5
register_pre_orders_order_status()
S
64 1 10
add_pre_orders_order_statuses()
S
76 1 4