Alg_WC_MPPU_Core D

Total Complexity 310
Dependencies 5
Dependents 1
Total lines 1,493
Lines of code 961
Logical lines of code 532
Comment lines 486
Methods 53
Properties 2

Methods 53

Method Rating Maintainability Complexity Lines of code
check_quantities_for_product()
D
29 30 125
check_quantities()
B
39 22 59
get_max_qty_for_product()
B
46 18 35
get_user_already_bought_qty()
A
46 16 36
get_first_order_date_exp()
A
42 15 50
is_product_blocked_for_guests()
A
42 15 48
get_date_to_check()
A
44 14 46
__construct()
A
40 12 54
get_max_qty_for_user_role()
A
47 12 34
validate_on_add_to_cart()
A
44 11 47
get_max_qty()
A
51 9 25
product_visibility()
A
53 9 23
get_cart_item_quantity_by_term()
A
53 9 22
block_checkout()
A
55 8 20
get_parent_or_product_id()
S
58 6 16
output_notice()
S
45 4 43
get_parent_product_id()
S
60 6 13
get_user_roles()
S
60 6 12
get_cart_item_quantity_by_parent()
S
61 6 11
get_custom_date_range_in_seconds()
S
59 5 15
get_current_user_id()
S
62 5 12
get_notice_placeholders()
S
50 4 27
get_product_id()
S
64 5 10
count_by_current_payment_method()
S
61 4 12
get_permanent_notice()
S
60 4 12
get_chosen_payment_method_title()
S
64 3 10
do_use_variations()
S
72 3 4
add_to_log()
S
71 3 5
get_chosen_payment_method()
S
66 3 9
handle_user_roles()
S
78 3 3
filter_customer_message_shortcode()
S
66 3 9
is_user_role_enabled()
S
69 3 6
get_current_time()
S
69 3 6
set_guest_user_bought_to_zero()
S
66 3 9
output_guest_notice()
S
61 2 11
get_post_or_term_meta()
S
74 2 4
update_post_or_term_meta()
S
74 2 4
permanent_notice_text()
S
75 2 5
permanent_notice_text_content()
S
71 2 6
permanent_notice()
S
74 2 5
get_order_date()
S
76 2 3
get_order_item_quantities()
S
65 2 9
block_guest_add_to_cart_ajax_error()
S
74 2 5
block_guest_add_to_cart_ajax_redirect()
S
74 1 4
apply_placeholders()
S
72 1 5
get_date_format()
S
79 1 3
get_cart_item_quantities()
S
79 1 3
get_date_range()
S
74 1 4
check_order_date_range()
S
74 1 4
change_bkg_process_params()
S
71 1 5
init_bkg_process()
S
73 1 5
check_cart_quantities()
S
75 1 5
get_error_messages()
S
82 1 3