Code Analysis: Maximum Products per User for WooCommerce 4.1.5

Function Rating Maintainability Complexity Lines of code
Alg_WC_MPPU_Data::update_quantities()
D
27
45 124
Alg_WC_MPPU_Shortcodes::user_product_limits_shortcode()
D
26
30 144
Alg_WC_MPPU_Data::calculate_data()
D
29 31 119
Alg_WC_MPPU_Core::get_user_already_bought_qty()
D
33 32 99
Alg_WC_MPPU_Core::check_quantities_for_product()
D
29 30 125
Alg_WC_MPPU_Core::check_quantities()
C
35 27 76
Alg_WC_MPPU_Shortcodes::current_product_limit_shortcode()
C
35 26 77
Alg_WC_MPPU_Core::get_date_to_check()
B
36 19 77
Alg_WC_MPPU_Core::remove_products_from_catalog()
B
42 20 51
Alg_WC_MPPU_Core::get_max_qty_for_product()
B
42 19 47
Alg_WC_MPPU_Settings_General::get_settings()
B
24
5 250
Alg_WC_MPPU_Settings_Per_product::get_meta_box_options()
B
39 15 64
Alg_WC_MPPU_Core::get_first_order_date_exp()
A
42 15 50
Alg_WC_MPPU_Core::is_product_blocked_for_guests()
A
42 15 48
Alg_WC_MPPU_Modes::validate_on_add_to_cart_quantity_by_mode()
A
54 16 17
Alg_WC_MPPU_Settings_Per_product::create_meta_box()
A
42 14 47
Alg_WC_MPPU_Shortcodes::user_terms_limits_shortcode()
A
38 12 68
Alg_WC_MPPU_Users::update_profile_fields()
A
43 13 52
Alg_WC_MPPU_Settings_Frontend::get_settings()
A
26
1 223
Alg_WC_MPPU_Modes::get_cart_item_quantities_by_mode()
A
49 14 28
Alg_WC_MPPU_Core::set_qty_field_max_attr()
A
49 14 27
Alg_WC_MPPU_Core::__construct()
A
40 12 53
Alg_WC_MPPU_Core::get_max_qty_for_user_role()
A
46 13 37
Alg_WC_MPPU_Users::get_item_data()
A
45 13 36
Alg_WC_MPPU_Modes::save_quantities_item_qty_by_mode()
A
52 14 20
Alg_WC_MPPU_Shortcodes::term_limit_shortcode()
A
46 13 33
Alg_WC_MPPU_Reports::get_table_html()
A
47 12 32
Alg_WC_MPPU_Core::validate_on_add_to_cart()
A
44 11 47
Alg_WC_MPPU_Settings_Per_product::save_meta_box()
A
49 12 29
Alg_WC_MPPU_Users::export_orders_data_all_users()
A
45 11 38
Alg_WC_MPPU_Reports::get_report_data_table()
A
42 10 51
Alg_WC_MPPU_Users::calculate_terms_data_from_products_data()
A
48 10 33
Alg_WC_MPPU_Shortcodes::language_shortcode()
A
60 12 10
Alg_WC_MPPU_Users::get_user_products_data_html()
A
43 9 44
Alg_WC_MPPU_Core::get_max_qty()
A
49 10 28
Alg_WC_MPPU_Users::get_export_orders_data()
A
44 9 42
Alg_WC_MPPU_Core::get_cart_item_quantity_by_term()
A
50 9 29
Alg_WC_MPPU_Multi_Language::wpml()
A
52 9 25
Alg_WC_MPPU_Data::calculate_data_notice()
A
48 8 29
Alg_WC_MPPU_Multi_Language::polylang()
A
60 9 12
Alg_WC_MPPU_Core::product_visibility()
A
54 8 22
Alg_WC_MPPU_Core::block_checkout()
A
55 8 20
Alg_WC_MPPU_Settings_Limits::get_settings()
A
37 3 94
Alg_WC_MPPU_Data::get_order_data()
S
61 9 10
Alg_WC_MPPU_Settings_Per_Term::product_terms_add_fields()
S
44 6 42
Alg_WC_MPPU_Settings_Formula::get_settings()
S
34 1 112
Alg_WC_MPPU_Core::get_product_remaining_qty()
S
48 6 34
Alg_WC_MPPU_Settings_Guests::get_settings()
S
35 1 108
Alg_WC_MPPU_Settings_Advanced::get_settings()
S
35 1 107
Alg_WC_MPPU_Settings_Admin::get_settings()
S
35 1 106
Alg_WC_MPPU_Core::get_current_user_id()
S
59 7 15
Alg_WC_MPPU_Settings_Tools::get_settings()
S
36 1 103
Alg_WC_MPPU_Data::delete_meta_data()
S
47 5 38
Alg_WC_MPPU_Core::get_parent_or_product_id()
S
58 6 16
Alg_WC_MPPU_Settings_Per_Term::product_terms_save_fields()
S
58 6 15
Alg_WC_MPPU_Core::get_notice_placeholders()
S
49 5 28
Alg_WC_MPPU_Core::output_notice()
S
45 4 43
Alg_WC_MPPU_Core::get_parent_product_id()
S
60 6 13
Alg_WC_MPPU_Core::get_user_roles()
S
60 6 12
Alg_WC_MPPU_Core::get_cart_item_quantity_by_parent()
S
61 6 11
Alg_WC_MPPU_Settings_Advanced::get_products()
S
51 5 25
Alg_WC_MPPU_Settings::maybe_reset_settings()
S
56 5 16
Alg_WC_MPPU_Users::get_user_terms_data_html()
S
48 4 31
Alg_WC_MPPU_Core::get_monthly_range_origin_date()
S
57 5 16
Alg_WC_MPPU_My_Account::endpoint_title()
S
63 6 9
Alg_WC_MPPU_Shortcodes::placeholder()
S
64 6 8
Alg_WC_MPPU_Data::handle_delete_sales_async_request_init()
S
59 5 15
Alg_WC_MPPU_Data::get_user_id_from_order()
S
63 6 10
Alg_WC_MPPU_Core::get_custom_date_range_in_seconds()
S
59 5 15
Alg_WC_MPPU_Reports::get_user_name()
S
60 5 12
Alg_WC_MPPU_Users::get_extra_profile_fields_terms_data_table_rows()
S
58 5 12
Alg_WC_MPPU_Settings_Advanced::get_orders_above_limits_options()
S
43 2 56
Alg_WC_MPPU_Users::update_terms_data()
S
52 4 25
Alg_WC_MPPU_Settings::admin_style()
S
54 3 35
Alg_WC_MPPU_Core::get_ids_from_formulas()
S
55 4 19
Alg_WC_MPPU_Users::get_terms_query()
S
56 4 17
Alg_WC_MPPU_Data::__construct()
S
57 4 16
Alg_WC_MPPU::init()
S
58 4 16
Alg_WC_MPPU_My_Account::add_link()
S
59 4 15
Alg_WC_MPPU_Core::get_product_id()
S
64 5 10
Alg_WC_MPPU_Users::need_to_update_terms_with_bkg_process()
S
60 4 13
Alg_WC_MPPU::action_links()
S
59 4 13
Alg_WC_MPPU_Shortcodes::hide_unbought_user_product_limits_table_items()
S
61 4 12
Alg_WC_MPPU_Users::show_notices()
S
60 4 12
Alg_WC_MPPU_Core::count_by_current_payment_method()
S
61 4 12
Alg_WC_MPPU_Users::update_orders_data()
S
51 3 27
Alg_WC_MPPU_Core::get_permanent_notice()
S
60 4 12
Alg_WC_MPPU_Users::get_user_profile_styles()
S
51 1 54
Alg_WC_MPPU_Users::get_user_sales_data_html_ajax()
S
54 3 21
Alg_WC_MPPU_Users::show_extra_profile_fields()
S
55 3 17
Alg_WC_MPPU_Settings_Section::get_section_link()
S
57 3 16
Alg_WC_MPPU_Reports::create_report_meta_box()
S
65 4 9
Alg_WC_MPPU_Bkg_Process::send_email()
S
58 3 15
Alg_WC_MPPU_Data::generate_wpdb_prepare_placeholders_from_array()
S
68 4 6
Alg_WC_MPPU_Modes::__construct()
S
57 3 15
alg_wc_mppu_is_plugin_active()
S
65 4 8
Alg_WC_MPPU_Shortcodes::customer_msg_shortcode()
S
59 3 14
Alg_WC_MPPU_Shortcodes::hide_unbought_items_from_user_produce_limits_query()
S
59 3 14
Alg_WC_MPPU_Users::handle_sales_data_via_js()
S
55 2 29
Alg_WC_MPPU_Users::get_order_products_by_term()
S
60 3 13
Alg_WC_MPU_Settings_Compatibility::get_settings()
S
47 1 43
Alg_WC_MPPU_Week_Days::get_week_day_by_key()
S
62 3 12
Alg_WC_MPPU_Core::get_minus_1_limit_formulas()
S
62 3 11
Alg_WC_MPPU_Users::export_orders_data()
S
62 3 11
Alg_WC_MPPU_Users::get_file()
S
53 2 23
Alg_WC_MPPU_Core::change_variation_qty_input_script()
S
60 2 21
Alg_WC_MPPU_Settings_Per_Term::__construct()
S
63 3 10
Alg_WC_MPPU_Core::validate_user_already_bought_monthly_range()
S
66 3 9
Alg_WC_MPPU_Core::get_current_time()
S
69 3 6
alg_wc_mppu_maybe_compress_string()
S
70 3 6
alg_wc_mppu_maybe_uncompress_string()
S
70 3 6
Alg_WC_MPPU_Core::set_guest_user_bought_to_zero()
S
66 3 9
Alg_WC_MPPU_My_Account::flush_rewrite_rules_on_save_frontend_settings()
S
72 3 6
Alg_WC_MPPU_Reports::__construct()
S
64 3 9
Alg_WC_MPPU_Core::filter_customer_message_shortcode()
S
66 3 9
Alg_WC_MPPU_Shortcodes::hide_unbought_user_terms_limits_table_items()
S
63 3 10
Alg_WC_MPPU_Core::do_use_variations()
S
72 3 4
Alg_WC_MPPU_Core::add_to_log()
S
71 3 5
Alg_WC_MPPU_Users::__construct()
S
58 2 15
Alg_WC_MPPU_Core::get_chosen_payment_method()
S
66 3 9
Alg_WC_MPPU_Users::check_current_user()
S
77 3 3
Alg_WC_MPPU_Core::disallow_product_purchase()
S
66 3 9
Alg_WC_MPPU_Core::get_chosen_payment_method_title()
S
64 3 10
Alg_WC_MPPU_Core::is_user_role_enabled()
S
69 3 6
Alg_WC_MPPU_Core::handle_user_roles()
S
78 3 3
Alg_WC_MPPU_Users::get_terms_total_from_order()
S
66 3 8
Alg_WC_MPPU_Settings::maybe_unclean_field()
S
77 3 3
Alg_WC_MPPU_Data::transaction_update_meta()
S
67 3 7
Alg_WC_MPPU_Core::output_guest_notice()
S
61 2 11
Alg_WC_MPPU_Settings::get_settings()
S
54 1 22
Alg_WC_MPPU_Settings::add_promoting_notice()
S
55 1 20
Alg_WC_MPPU_Settings::__construct()
S
56 1 18
Alg_WC_MPPU_My_Account::icon()
S
67 2 7
alg_wc_mppu_is_user_logged_in()
S
71 2 6
Alg_WC_MPPU_Settings_Section::get_placeholders_desc()
S
73 2 4
Alg_WC_MPPU_Core::get_order_date()
S
76 2 3
Alg_WC_MPPU::admin()
S
63 2 10
Alg_WC_MPPU_Core::compensate_date_to_check_time()
S
70 2 6
Alg_WC_MPPU_Core::compensate_current_time_to_compare()
S
70 2 6
Alg_WC_MPPU_Multi_Language::__construct()
S
71 2 5
Alg_WC_MPPU_Core::get_current_time_offset()
S
71 2 6
Alg_WC_MPPU_Core::get_post_or_term_meta()
S
74 2 4
Alg_WC_MPPU_Settings_Per_product::__construct()
S
69 2 6
Alg_WC_MPPU_Core::permanent_notice_text_content()
S
71 2 6
Alg_WC_MPPU_Core::permanent_notice_text()
S
75 2 5
Alg_WC_MPPU_Users::update_totals_data()
S
59 1 15
Alg_WC_MPPU_Core::get_order_item_quantities()
S
65 2 9
Alg_WC_MPPU_Data::save_quantities_on_new_created_order()
S
65 2 9
Alg_WC_MPPU_Modes::handle_orders_data_quantity_increase_qty_on_order_mode()
S
72 2 6
Alg_WC_MPPU_Core::need_to_disable_product_purchase_by_limit()
S
70 2 6
Alg_WC_MPPU_My_Account::__construct()
S
68 2 7
Alg_WC_MPPU_My_Account::flush_rewrite_rules_on_init_after_plugin_activation()
S
72 2 6
Alg_WC_MPPU_Core::get_time_offset()
S
71 2 6
Alg_WC_MPPU_My_Account::get_product_limits_tab_id()
S
71 2 6
Alg_WC_MPPU_Core::block_guest_add_to_cart_ajax_error()
S
74 2 5
Alg_WC_MPPU_Multi_Language::get_product_id_from_main_language()
S
70 2 6
Alg_WC_MPPU::instance()
S
72 2 6
Alg_WC_MPPU_Shortcodes::get_user_id()
S
78 2 3
Alg_WC_MPPU_Core::update_post_or_term_meta()
S
74 2 4
Alg_WC_MPPU_Bkg_Process::dispatch()
S
64 2 10
Alg_WC_MPPU::declare_compatibility_with_hpos()
S
71 2 5
Alg_WC_MPPU_Modes::handle_totals_data_on_order_mode()
S
71 2 6
Alg_WC_MPPU_Core::permanent_notice()
S
74 2 5
Alg_WC_MPPU_Shortcodes::__construct()
S
59 1 14
Alg_WC_MPPU_Core::initialize_classes()
S
60 1 14
Alg_WC_MPPU_Core::get_orders_data_products_from_user()
S
60 1 14
Alg_WC_MPPU_Bkg_Process::get_email_params()
S
61 1 12
Alg_WC_MPPU_Week_Days::get_week_days()
S
60 1 12
Alg_WC_MPPU_Settings_Section::convert_array_to_string()
S
62 1 11
Alg_WC_MPPU_Bkg_Process::set_email_params()
S
81 1 3
Alg_WC_MPPU_Data::save_quantities()
S
72 1 6
Alg_WC_MPPU_Settings_Section::get_recalculate_sales_data_desc()
S
71 1 6
Alg_WC_MPPU_Core::get_cart_item_quantities()
S
79 1 3
Alg_WC_MPPU_Dynamic_Properties_Obj::__set()
S
80 1 3
Alg_WC_MPPU_Core::get_date_format()
S
79 1 3
Alg_WC_MPU_Settings_Compatibility::__construct()
S
73 1 5
Alg_WC_MPPU_Settings_Formula::__construct()
S
73 1 5
Alg_WC_MPPU_Recalculate_Sales_Bkg_Process::get_action_label()
S
79 1 3
Alg_WC_MPPU_Week_Days::get_week_starts_on_option()
S
79 1 3
Alg_WC_MPPU_Data::duplicate_product_exclude_meta()
S
72 1 6
Alg_WC_MPPU_Core::block_guest_add_to_cart_ajax_redirect()
S
74 1 4
Alg_WC_MPPU_Reports::product_terms_show_data()
S
74 1 4
Alg_WC_MPPU_Users::init_bkg_process()
S
70 1 6
Alg_WC_MPPU::plugin_path()
S
80 1 3
Alg_WC_MPPU_Week_Days::get_week_starts_on_default_val()
S
80 1 3
Alg_WC_MPPU_Bkg_Process::complete()
S
70 1 6
Alg_WC_MPPU_Settings_Limits::__construct()
S
73 1 5
Alg_WC_MPPU_Core::check_cart_quantities()
S
75 1 5
Alg_WC_MPPU_Core::get_error_messages()
S
82 1 3
Alg_WC_MPPU_Bkg_Process::save()
S
71 1 5
Alg_WC_MPPU_My_Account::plugin_activation()
S
80 1 3
Alg_WC_MPPU_Week_Days::get_week_days_by_key_and_value()
S
79 1 3
Alg_WC_MPPU::set_free_version_filesystem_path()
S
81 1 3
Alg_WC_MPPU_Bkg_Process::get_email_heading()
S
71 1 5
Alg_WC_MPPU_My_Account::add_endpoint()
S
79 1 3
Alg_WC_MPPU_Bkg_Process::get_action_label()
S
82 1 3
Alg_WC_MPPU::get_filesystem_path()
S
83 1 3
Alg_WC_MPPU_Core::handle_qty_field_max_attr()
S
71 1 5
Alg_WC_MPPU::includes()
S
77 1 4
Alg_WC_MPPU::version_updated()
S
80 1 3
Alg_WC_MPPU_Settings::save()
S
74 1 5
Alg_WC_MPPU_Bkg_Process::get_email_subject()
S
71 1 5
Alg_WC_MPPU_Settings_Section::__construct()
S
74 1 4
Alg_WC_MPPU_Settings_Section::format_notes()
S
78 1 3
Alg_WC_MPPU_My_Account::get_tab_title()
S
78 1 3
Alg_WC_MPPU::add_woocommerce_settings_tab()
S
76 1 4
Alg_WC_MPPU_Core::change_bkg_process_params()
S
71 1 5
Alg_WC_MPPU_Settings_Guests::__construct()
S
73 1 5
Alg_WC_MPPU_My_Account::init()
S
63 1 10
Alg_WC_MPPU_Week_Days::init()
S
100 1 2
Alg_WC_MPPU::set_filesystem_path()
S
81 1 3
Alg_WC_MPPU_Settings_Frontend::__construct()
S
73 1 5
Alg_WC_MPPU_Settings::admin_notice_settings_reset()
S
76 1 4
Alg_WC_MPPU_Users::show_extra_profile_fields_using_ajax()
S
79 1 3
Alg_WC_MPPU_Delete_Sales_Async_Request::handle()
S
71 1 5
Alg_WC_MPPU_My_Account::query_vars()
S
77 1 4
Alg_WC_MPPU_Settings_Advanced::__construct()
S
73 1 5
Alg_WC_MPPU_Update_User_Sales_data_Bkg_Process::get_action_label()
S
79 1 3
Alg_WC_MPPU::plugin_url()
S
80 1 3
Alg_WC_MPPU_Recalculate_Sales_Bkg_Process::task()
S
65 1 9
Alg_WC_MPPU_My_Account::content()
S
79 1 3
Alg_WC_MPPU_Settings_General::__construct()
S
73 1 5
Alg_WC_MPPU_Update_User_Sales_data_Bkg_Process::task()
S
64 1 9
Alg_WC_MPPU_Settings_Admin::__construct()
S
73 1 5
Alg_WC_MPPU_Settings_Section::settings_section()
S
77 1 4
Alg_WC_MPPU_Core::apply_placeholders()
S
72 1 5
Alg_WC_MPPU_Dynamic_Properties_Obj::__isset()
S
79 1 3
Alg_WC_MPPU_Reports::add_report_meta_box()
S
65 1 10
Alg_WC_MPPU::localize()
S
78 1 3
Alg_WC_MPPU_Modes::cart_item_amount()
S
80 1 3
Alg_WC_MPPU_Dynamic_Properties_Obj::__unset()
S
80 1 3
Alg_WC_MPPU_Update_User_Terms_data_Bkg_Process::task()
S
66 1 7
Alg_WC_MPPU_Core::get_date_range()
S
74 1 4
Alg_WC_MPPU_Bkg_Process::task()
S
71 1 5
Alg_WC_MPPU_Data::init_bkg_process()
S
73 1 5
Alg_WC_MPPU_Data::delete_quantities()
S
72 1 6
Alg_WC_MPPU_Bkg_Process::get_email_template()
S
71 1 5
Alg_WC_MPPU_Update_User_Terms_data_Bkg_Process::get_action_label()
S
79 1 3
Alg_WC_MPPU_Bkg_Process::replace_variables()
S
78 1 3
Alg_WC_MPPU_Settings_Per_product::add_meta_box()
S
65 1 10
Alg_WC_MPPU_Dynamic_Properties_Obj::__get()
S
80 1 3
Alg_WC_MPPU_Modes::validate_on_add_to_cart_quantity_do_add()
S
78 1 4
Alg_WC_MPPU::get_free_version_filesystem_path()
S
82 1 3
alg_wc_mppu()
S
82 1 3
Alg_WC_MPPU_Settings_Tools::__construct()
S
73 1 5
Alg_WC_MPPU_Core::init_bkg_process()
S
73 1 5
Alg_WC_MPPU_Bkg_Process::get_logger_context()
S
82 1 3