Alg_WC_MPPU_Core D

Total Complexity 346
Dependencies 5
Dependents 1
Total lines 1,715
Lines of code 1,098
Logical lines of code 593
Comment lines 562
Methods 59
Properties 4

Methods 59

Method Rating Maintainability Complexity Lines of code
check_quantities_for_product()
D
29 30 125
check_quantities()
B
39 22 59
remove_products_from_catalog()
B
42 20 51
get_max_qty_for_product()
B
45 18 35
get_user_already_bought_qty()
B
42 17 50
get_date_to_check()
B
42 16 50
get_first_order_date_exp()
A
42 15 50
is_product_blocked_for_guests()
A
42 15 48
__construct()
A
39 12 56
get_max_qty_for_user_role()
A
47 12 34
validate_on_add_to_cart()
A
44 11 47
get_max_qty()
A
49 10 28
get_cart_item_quantity_by_term()
A
50 9 29
product_visibility()
A
54 8 22
block_checkout()
A
55 8 20
get_parent_or_product_id()
S
58 6 16
output_notice()
S
45 4 43
get_notice_placeholders()
S
49 5 28
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_ids_from_formulas()
S
55 4 19
get_product_id()
S
64 5 10
count_by_current_payment_method()
S
61 4 12
get_permanent_notice()
S
60 4 12
get_minus_1_limit_formulas()
S
62 3 11
is_user_role_enabled()
S
69 3 6
get_chosen_payment_method_title()
S
64 3 10
get_chosen_payment_method()
S
66 3 9
set_guest_user_bought_to_zero()
S
66 3 9
filter_customer_message_shortcode()
S
66 3 9
do_use_variations()
S
72 3 4
add_to_log()
S
71 3 5
handle_user_roles()
S
78 3 3
get_current_time()
S
69 3 6
output_guest_notice()
S
61 2 11
permanent_notice_text()
S
75 2 5
permanent_notice_text_content()
S
71 2 6
update_post_or_term_meta()
S
74 2 4
get_post_or_term_meta()
S
74 2 4
compensate_date_to_check_time()
S
70 2 6
get_time_offset()
S
71 2 6
permanent_notice()
S
74 2 5
get_order_date()
S
76 2 3
block_guest_add_to_cart_ajax_error()
S
74 2 5
get_order_item_quantities()
S
65 2 9
get_orders_data_products_from_user()
S
60 1 14
get_date_range()
S
74 1 4
check_order_date_range()
S
74 1 4
get_cart_item_quantities()
S
79 1 3
change_bkg_process_params()
S
71 1 5
init_bkg_process()
S
73 1 5
check_cart_quantities()
S
75 1 5
get_date_format()
S
79 1 3
get_error_messages()
S
82 1 3
apply_placeholders()
S
72 1 5
block_guest_add_to_cart_ajax_redirect()
S
74 1 4