Alg_WC_MPPU_Core D

Total Complexity 413
Dependencies 8
Dependents 1
Total lines 2,178
Lines of code 1,355
Logical lines of code 727
Comment lines 717
Methods 69
Properties 11

Methods 69

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()
C
35 27 76
get_date_to_check()
B
36 19 77
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
set_qty_field_max_attr()
A
49 14 27
__construct()
A
40 12 53
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_parent_product_id()
S
60 6 13
output_notice()
S
45 4 43
get_notice_placeholders()
S
49 5 28
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
get_permanent_notice()
S
60 4 12
count_by_current_payment_method()
S
61 4 12
get_minus_1_limit_formulas()
S
62 3 11
change_variation_qty_input_script()
S
60 2 21
is_user_role_enabled()
S
69 3 6
validate_user_already_bought_monthly_range()
S
66 3 9
add_to_log()
S
71 3 5
get_current_time()
S
69 3 6
filter_customer_message_shortcode()
S
66 3 9
disallow_product_purchase()
S
66 3 9
do_use_variations()
S
72 3 4
get_chosen_payment_method()
S
66 3 9
get_chosen_payment_method_title()
S
64 3 10
set_guest_user_bought_to_zero()
S
66 3 9
handle_user_roles()
S
78 3 3
output_guest_notice()
S
61 2 11
get_post_or_term_meta()
S
74 2 4
get_current_time_offset()
S
71 2 6
get_order_item_quantities()
S
65 2 9
compensate_date_to_check_time()
S
70 2 6
update_post_or_term_meta()
S
74 2 4
need_to_disable_product_purchase_by_limit()
S
70 2 6
compensate_current_time_to_compare()
S
70 2 6
block_guest_add_to_cart_ajax_error()
S
74 2 5
permanent_notice_text_content()
S
71 2 6
permanent_notice_text()
S
75 2 5
permanent_notice()
S
74 2 5
get_time_offset()
S
71 2 6
get_order_date()
S
76 2 3
get_orders_data_products_from_user()
S
60 1 14
initialize_classes()
S
60 1 14
get_error_messages()
S
82 1 3
get_cart_item_quantities()
S
79 1 3
init_bkg_process()
S
73 1 5
change_bkg_process_params()
S
71 1 5
handle_qty_field_max_attr()
S
71 1 5
get_date_format()
S
79 1 3
get_date_range()
S
74 1 4
check_cart_quantities()
S
75 1 5
block_guest_add_to_cart_ajax_redirect()
S
74 1 4
apply_placeholders()
S
72 1 5