WCJ_Preorders D

Total Complexity 190
Dependencies 0
Dependents 0
Total lines 1,117
Lines of code 704
Logical lines of code 396
Comment lines 265
Methods 30
Properties 2

Methods 30

Method Rating Maintainability Complexity Lines of code
calculate_preorder_price()
B
42 16 52
validate_add_to_cart()
A
45 14 43
handle_notification()
A
45 12 41
add_preorder_fees()
A
47 12 36
add_meta_box_preorder()
A
48 12 32
auto_enable_preorder()
A
43 10 47
modify_price_display()
A
48 10 33
is_eligible_for_auto_preorder()
A
52 9 23
is_preorder_enabled()
A
53 9 23
should_apply_fee_for_user()
A
54 9 22
can_user_preorder()
S
54 7 22
apply_preorder_pricing()
S
54 7 21
handle_stock_management()
S
57 7 16
display_preorder_message()
S
51 6 26
validate_cart_item_quantity()
S
54 5 23
handle_stock_status_change()
S
56 5 18
should_apply_fee_for_category()
S
60 5 12
process_preorder()
S
55 4 20
handle_product_release()
S
55 4 19
add_preorder_styles()
S
48 2 49
add_variation_button_class()
S
60 4 18
check_stock_status_on_save()
S
58 4 15
__construct()
S
48 2 30
send_preorder_notifications()
S
65 3 9
modify_add_to_cart_text()
S
63 3 10
modify_add_to_cart_url()
S
68 3 8
add_preorder_button_class()
S
64 3 10
admin_footer_preorder_script()
S
70 1 18
add_email_classes()
S
73 1 5
should_hide_price_for_guests()
S
78 1 3