Alg_WC_MPPU_Core D

Total Complexity 403
Dependencies 6
Dependents 1
Total lines 2,073
Lines of code 1,316
Logical lines of code 703
Comment lines 667
Methods 66
Properties 8

Methods 66

Method Rating Maintainability Complexity Lines of code
get_user_already_bought_qty()
D
33 32 99
check_quantities_for_product()
D
29 30 125
check_quantities()
B
39 22 59
get_date_to_check()
B
37 19 74
remove_products_from_catalog()
B
42 20 51
get_max_qty_for_product()
B
42 19 47
get_first_order_date_exp()
A
42 15 50
is_product_blocked_for_guests()
A
42 15 48
__construct()
A
39 12 60
set_qty_field_max_attr()
A
49 14 27
get_max_qty_for_user_role()
A
46 13 37
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_product_remaining_qty()
S
48 6 34
get_current_user_id()
S
59 7 15
get_parent_or_product_id()
S
58 6 16
get_notice_placeholders()
S
49 5 28
get_parent_product_id()
S
60 6 13
output_notice()
S
45 4 43
get_user_roles()
S
60 6 12
get_cart_item_quantity_by_parent()
S
61 6 11
get_monthly_range_origin_date()
S
57 5 16
get_custom_date_range_in_seconds()
S
59 5 15
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
change_variation_qty_input_script()
S
60 2 21
handle_user_roles()
S
78 3 3
is_user_role_enabled()
S
69 3 6
disallow_product_purchase()
S
66 3 9
get_chosen_payment_method_title()
S
64 3 10
get_chosen_payment_method()
S
66 3 9
validate_user_already_bought_monthly_range()
S
66 3 9
do_use_variations()
S
72 3 4
filter_customer_message_shortcode()
S
66 3 9
add_to_log()
S
71 3 5
set_guest_user_bought_to_zero()
S
66 3 9
get_current_time()
S
69 3 6
output_guest_notice()
S
61 2 11
update_post_or_term_meta()
S
74 2 4
get_post_or_term_meta()
S
74 2 4
permanent_notice()
S
74 2 5
permanent_notice_text()
S
75 2 5
need_to_disable_product_purchase_by_limit()
S
70 2 6
get_order_date()
S
76 2 3
block_guest_add_to_cart_ajax_error()
S
74 2 5
get_time_offset()
S
71 2 6
permanent_notice_text_content()
S
71 2 6
compensate_date_to_check_time()
S
70 2 6
get_order_item_quantities()
S
65 2 9
get_orders_data_products_from_user()
S
60 1 14
check_cart_quantities()
S
75 1 5
init_bkg_process()
S
73 1 5
handle_qty_field_max_attr()
S
71 1 5
block_guest_add_to_cart_ajax_redirect()
S
74 1 4
change_bkg_process_params()
S
71 1 5
apply_placeholders()
S
72 1 5
get_date_range()
S
74 1 4
get_error_messages()
S
82 1 3
get_cart_item_quantities()
S
79 1 3
get_date_format()
S
79 1 3