Code Analysis: WooCommerce Wholesale Prices 1.13.1

Function Rating Maintainability Complexity Lines of code
WWP_Wholesale_Prices::wholesale_price_html_filter()
D
29 37 113
WWP_Script_Loader::load_back_end_styles_and_scripts()
D
25
32 160
WWP_Admin_Custom_Fields_Variable_Product::save_wholesale_price_fields()
C
35 30 78
WWP_Wholesale_Prices::apply_product_wholesale_price_to_cart()
C
34 29 81
WWP_Helper_Functions::wwp_woocommerce_wp_text_input()
B
40 20 50
WWP_Admin_Custom_Fields_Variable_Product::add_wholesale_price_fields()
B
33 15 113
WWP_Admin_Custom_Fields_Simple_Product::add_wholesale_price_fields()
A
35 12 101
WWP_Script_Loader::load_front_end_styles_and_scripts()
A
42 14 51
WWP_Marketing::filter_wc_marketing_recommended_plugins()
A
43 13 45
WWP_Install_ACFW::dismiss_install_acfwf_note()
A
44 13 40
WWP_Admin_Custom_Fields_Variable_Product::_save_variable_product_wholesale_price()
A
49 12 31
WWP_REST_Wholesale_Products_V1_Controller::add_wholesale_data_on_response()
A
49 12 27
WWP_Admin_Custom_Fields_Simple_Product::_save_wholesale_price_fields()
A
48 10 32
WWP_Marketing::filter_wc_marketing_knowledge_base()
A
44 9 46
WWP_WPML_Compatibility::get_wholesale_price()
A
49 10 28
WWP_REST_Wholesale_Product_Variations_V1_Controller::create_item()
A
50 10 26
WWP_Admin_Custom_Fields_Simple_Product::save_wholesale_price_fields_on_quick_edit_screen()
A
46 9 39
WWP_REST_Wholesale_Products_V1_Controller::create_update_wholesale_product()
A
52 10 23
WWP_Wholesale_Prices::update_meta_data_with_proper_meta_keys()
A
50 9 27
WWP_Bootstrap::_activate()
A
48 8 33
WWP_Wholesale_Roles_Admin_Page::edit_wholesale_role()
A
47 8 33
WWP_Marketing::install_acfwf_notice()
A
49 8 31
WWP_Admin_Custom_Fields_Simple_Product::add_wholesale_price_fields_data_to_product_listing_column()
A
45 7 46
WWP_REST_Wholesale_Products_V1_Controller::get_wholesale_products()
A
44 7 45
WWP_Wholesale_Prices::get_product_wholesale_price_on_shop_v3()
A
50 8 27
WWP_Admin_Custom_Fields_Simple_Product::add_wholesale_price_fields_on_quick_edit_screen()
A
46 7 39
WWP_REST_Wholesale_Products_V1_Controller::remove_wwpp_meta()
A
52 8 23
WWP_Install_ACFW::install_acfwf_note()
A
47 7 36
WWP_REST_Wholesale_Products_V1_Controller::create_item()
A
56 8 16
WWP_Wholesale_Prices::add_wholesale_price_to_variation_data()
A
57 8 16
WWP_Wholesale_Prices::printWCNotice()
S
62 8 11
WWP_REST_Wholesale_Products_V1_Controller::get_item()
S
52 7 22
WWP_Helper_Functions::wwp_get_product_id()
S
53 7 22
WWP_REST_Wholesale_Product_Variations_V1_Controller::get_items()
S
53 7 19
WWP_Duplicate_Product::wwp_duplicate_variable_product()
S
54 7 19
WWP_Bootstrap::getting_started_notice()
S
55 7 18
WWP_Settings::_get_tax_section_settings()
S
36 1 106
WWP_Settings::remove_dummy_price_tab_options()
S
58 7 15
WWP_WWS_Review::review_wws()
S
49 6 30
WWP_Admin_Custom_Fields_Simple_Product::save_wholesale_price_fields()
S
50 6 29
WWP_Wholesale_Prices::getProductWholesalePrice()
S
51 6 28
WWP_Wholesale_Prices::get_product_raw_wholesale_price()
S
51 6 28
WWP_REST_Wholesale_Products_V1_Controller::get_wwp_meta_data()
S
50 6 27
WWP_Install_ACFW::replace_install_now_url()
S
51 6 26
WWP_Settings::get_settings()
S
53 6 21
WWP_REST_Wholesale_Roles_V1_Controller::update_item()
S
53 6 20
WWP_REST_Wholesale_Products_V1_Controller::delete_item()
S
56 6 16
WWP_WWS_Bundle::wws_bundle_note()
S
49 5 31
WWP_Order::add_order_item_meta()
S
62 7 10
WWP_Admin_Custom_Fields_Variable_Product::variation_deletion()
S
58 6 14
WWP_Import_Export::wholesale_price_import()
S
58 6 14
WWP_Products_CPT::add_wholesale_price_column_value_to_product_cpt_listing()
S
51 5 28
WWP_REST_Wholesale_Product_Variations_V1_Controller::get_wholesale_variations()
S
50 5 28
WWP_Wholesale_Prices::apply_taxing_to_wholesale_prices_on_shop_page()
S
59 6 12
WWP_REST_Wholesale_Products_V1_Controller::query_args()
S
59 6 12
WWP_REST_Wholesale_Product_Variations_V1_Controller::update_variable_wholesale_price_meta_flag()
S
53 5 22
WWP_REST_Wholesale_Product_Variations_V1_Controller::delete_item()
S
53 5 20
WWP_WPML_Compatibility::order_items_updated()
S
54 5 20
WWP_Wholesale_Prices::get_wholesale_price_suffix()
S
54 5 19
WWP_WWS_Bundle::dismiss_note()
S
56 5 19
WWP_Marketing::ajax_request_review_response()
S
55 5 17
WWP_REST_Wholesale_Product_Variations_V1_Controller::get_item()
S
56 5 16
WWP_Duplicate_Product::wwp_duplicate_role_based_meta()
S
58 5 16
WWP_Helper_Functions::wwp_get_product_display_price()
S
61 6 10
WWP_Helper_Functions::check_if_valid_save_post_action()
S
66 6 7
WWP_Helper_Functions::wwp_formatted_price()
S
58 5 14
WWP_Admin_Custom_Fields_Variable_Product::execute_variation_custom_wholesale_bulk_actions()
S
58 5 14
WWP_WWS_Youtube::follow_wws_youtube()
S
50 4 29
WWP_Store_Owner_Tips::join_store_owner_tips_note()
S
50 4 28
WWP_Wholesale_Prices::get_product_wholesale_price_on_cart()
S
60 5 12
WWP_Wholesale_Prices::display_replacement_message()
S
59 5 12
WWP_Settings::_get_price_section_settings()
S
41 1 70
wwp_global_plugin_deactivate()
S
55 4 23
WWP_Helper_Functions::wwp_get_parent_variable_id()
S
57 4 18
WWP_Bootstrap::activate()
S
59 4 15
WWP_Bootstrap::deactivate()
S
59 4 15
WWP_Wholesale_Prices::toggle_availability_of_coupons_to_wholesale_users()
S
65 5 8
WWP_Wholesale_Prices::remove_coupons_for_wholesale_users_when_necessary()
S
67 5 7
WWP_Helper_Functions::is_wc_admin_active()
S
64 5 9
WWP_Helper_Functions::wwp_wpml_price()
S
58 4 15
WWP_Wholesale_Prices::hide_price_and_add_to_cart_button()
S
59 4 13
WWP_Install_ACFW::ajax_redirect_install_acfwf_plugin()
S
60 4 13
WWP_Settings::save()
S
60 4 12
WWP_Helper_Functions::is_wc_four_point_three_and_up()
S
61 4 12
WWP_Bootstrap::initialize()
S
64 4 8
WWP_REST_Wholesale_Products_V1_Controller::get_items()
S
61 4 10
WWP_Cache::check_variable_product_price_range_cache_if_valid()
S
70 4 5
WWP_Cache::set_variable_product_price_range_cache()
S
58 3 15
WWP_Cache::get_cache_variable_product_price_range_cache()
S
63 4 10
WWP_Duplicate_Product::wwp_duplicate_meta()
S
64 4 9
WWP_Wholesale_Roles::getUserRoles()
S
74 4 4
WWP_Wholesale_Roles::add_wholesale_role_to_body_class()
S
67 4 7
WWP_REST_Wholesale_Roles_V1_Controller::get_item()
S
62 4 9
WWP_ACS_Integration_Helper::get_price_in_currency()
S
64 4 9
WWP_Bootstrap::add_plugin_listing_custom_action_links()
S
59 3 13
WWP_Helper_Functions::wwp_get_product_type()
S
60 3 13
WWP_REST_Wholesale_Product_Variations_V1_Controller::set_variable_wholesale_price_meta()
S
62 3 11
WWP_Settings::_get_upgrade_section_settings()
S
55 2 23
WooCommerceWholeSalePrices::run()
S
57 2 19
wwp_missing_plugin_dependency_notice()
S
57 2 16
WWP_Admin_Custom_Fields_Variable_Product::add_variation_custom_wholesale_bulk_action_options()
S
58 2 16
WWP_REST_Wholesale_Product_Variations_V1_Controller::query_args()
S
63 3 9
WWP_Settings::remove_upgrade_tab()
S
70 3 6
WWP_Wholesale_Prices::get_product_wholesale_price_on_shop_v2()
S
57 2 15
WWP_WWS_Bundle::check_bundled_plugins()
S
79 3 3
WWP_REST_Wholesale_Roles_V1_Controller::get_item_permissions_check()
S
66 3 7
WWP_REST_Wholesale_Roles_V1_Controller::update_item_permissions_check()
S
66 3 7
WWP_Wholesale_Roles::unregisterCustomRole()
S
65 3 8
WWP_Wholesale_Roles::getUserWholesaleRole()
S
66 3 7
WWP_Wholesale_Roles::filter_registered_wholesale_roles()
S
68 3 7
WWP_Helper_Functions::get_plugin_data()
S
64 3 10
WWP_Helper_Functions::wwp_get_price_including_tax()
S
62 3 10
WWP_WPML_Compatibility::run()
S
66 3 8
WWP_Helper_Functions::wwp_get_price_excluding_tax()
S
62 3 10
WWP_Marketing::run()
S
60 2 13
WWP_Wholesale_Roles_Admin_Page::register_wholesale_roles_admin_page_menu()
S
62 2 12
WWP_REST_Wholesale_Product_Variations_V1_Controller::__construct()
S
61 2 11
WWP_Wholesale_Roles::wc_navigation_bar()
S
63 2 11
WWP_Wholesale_Roles::registerCustomRole()
S
61 2 11
WWP_Settings::_get_general_section_settings()
S
55 1 22
WWP_REST_Wholesale_Roles_V1_Controller::register_routes()
S
56 1 21
WooCommerceWholeSalePrices::__construct()
S
55 1 19
WWP_Script_Loader::upsell_message()
S
59 1 18
WWP_Wholesale_Prices::run()
S
56 1 16
WWP_Products_CPT::instance()
S
72 2 5
WWP_Import_Export::instance()
S
72 2 5
WWP_Products_CPT::run()
S
67 2 7
WWP_Cache::instance()
S
72 2 5
WWP_Helper_Functions::wwp_get_matching_variation()
S
64 2 9
WWP_Cache::set_product_meta_hash()
S
74 2 4
WWP_Wholesale_Prices::getInstance()
S
71 2 6
WWP_REST_Wholesale_Products_V1_Controller::__construct()
S
62 2 10
WWP_Cache::set_product_category_meta_hash()
S
73 2 4
WWP_Duplicate_Product::instance()
S
72 2 5
WWP_Admin_Custom_Fields_Simple_Product::maybe_add_wholesale_price_fields()
S
69 2 7
WWP_Helper_Functions::is_plugin_active()
S
70 2 6
WWP_Wholesale_Roles_Admin_Page::instance()
S
72 2 5
WWP_Wholesale_Roles::removeCustomCapability()
S
68 2 7
WWP_Order::run()
S
65 2 8
WWP_REST_Wholesale_Roles_V1_Controller::getAllRegisteredWholesaleRoles()
S
69 2 7
WWP_Order::add_order_item_meta_wc2_7()
S
72 2 5
WWP_Admin_Custom_Fields_Variable_Product::instance()
S
71 2 6
WWP_Marketing::instance()
S
71 2 6
WWP_ACS_Integration_Helper::shop_base_currency()
S
72 2 5
WooCommerceWholeSalePrices::instance()
S
71 2 6
WWP_ACS_Integration_Helper::get_product_base_currency()
S
72 2 5
WWP_Wholesale_Roles::getAllRoles()
S
71 2 6
WWP_Wholesale_Roles::getAllRegisteredWholesaleRoles()
S
70 2 6
WWP_REST_Wholesale_Roles_V1_Controller::get_items_permissions_check()
S
69 2 6
WWP_REST_API::authenticate_user()
S
65 2 8
WWP_Store_Owner_Tips::init_cron_hook()
S
72 2 5
WWP_Script_Loader::instance()
S
71 2 6
WWP_Bootstrap::instance()
S
72 2 5
WWP_REST_Wholesale_Products_V1_Controller::is_wholesale_endpoint()
S
76 2 3
WWP_Wholesale_Prices::filter_product_original_price_visibility()
S
71 2 6
WWP_Order::wwp_add_order_meta()
S
67 2 7
WWP_REST_Wholesale_Roles_V1_Controller::hide_only_allow_wholesale_purchases()
S
69 2 7
WWP_REST_API::instance()
S
71 2 6
WWP_Helper_Functions::wc_admin_note_instance()
S
67 2 7
WWP_Admin_Custom_Fields_Simple_Product::instance()
S
71 2 6
WWP_WWS_Youtube::init_cron_hook()
S
72 2 5
WWP_Order::instance()
S
72 2 5
WWP_Wholesale_Prices::instance()
S
71 2 6
WWP_Wholesale_Roles::addCustomRole()
S
64 2 9
WWP_Helper_Functions::deprecated_function()
S
66 2 7
WWP_Wholesale_Roles::getInstance()
S
73 2 5
WWP_WWS_Bundle::init_cron_hook()
S
72 2 5
WWP_Wholesale_Prices::__construct()
S
73 2 5
WWP_Settings::wwp_upsells_buttons()
S
63 1 15
WWP_Bootstrap::new_mu_site_init()
S
70 2 7
WWP_WPML_Compatibility::instance()
S
71 2 6
WWP_Settings::__construct()
S
58 1 14
WWP_Products_CPT::add_wholesale_price_column_styling()
S
73 1 14
WWP_Cache::__construct()
S
98 1 1
WWP_Admin_Custom_Fields_Variable_Product::run()
S
65 1 8
WWP_Duplicate_Product::wwp_run_product_duplicate()
S
65 1 9
WWP_Wholesale_Prices::recalculate_cart_totals()
S
82 1 3
WWP_Settings::render_upgrade_content()
S
73 1 5
WWP_Admin_Custom_Fields_Simple_Product::__construct()
S
80 1 3
WWP_Order::add_order_item_meta_wc2_6()
S
75 1 4
WWP_Helper_Functions::is_wwof_installed()
S
72 1 5
WooCommerceWholeSalePrices::activate_plugin_settings()
S
79 1 3
WWP_WWS_Youtube::__construct()
S
79 1 3
WWP_WPML_Compatibility::__construct()
S
98 1 1
WWP_Install_ACFW::dismiss_note_on_click()
S
80 1 3
WWP_Helper_Functions::is_wwpp_active()
S
79 1 3
WWP_REST_Wholesale_Roles_V1_Controller::delete_item()
S
77 1 3
WWP_Helper_Functions::is_wwpp_installed()
S
72 1 5
WWP_WWS_Review::__construct()
S
78 1 3
WWP_ACS_Integration_Helper::convert()
S
78 1 3
WWP_Settings::output()
S
73 1 5
WWP_REST_API::run()
S
70 1 6
WWP_Settings::get_sections()
S
63 1 10
WWP_Cache::set_settings_meta_hash()
S
78 1 3
WWP_Bootstrap::__construct()
S
76 1 4
WWP_Wholesale_Prices::filter_wholesale_price_title_text()
S
75 1 4
WWP_Wholesale_Roles::removeCustomRole()
S
73 1 5
WWP_Wholesale_Prices::get_product_wholesale_price_on_shop()
S
74 1 4
WWP_Helper_Functions::is_wwlc_installed()
S
72 1 5
WWP_Settings::render_plugin_settings_custom_field_wwp_editor()
S
80 1 3
WWP_Helper_Functions::get_woocommerce_data()
S
79 1 3
WWP_ACS_Integration_Helper::enabled_currencies()
S
79 1 3
WWP_Bootstrap::wwp_getting_started_notice_hide()
S
75 1 4
WWP_Marketing::flag_show_install_acfwf_notice()
S
80 1 3
WWP_Marketing::print_wwp_tag()
S
82 1 3
WWP_REST_API::load_api_wwp_controllers()
S
67 1 8
WWP_Marketing::__construct()
S
80 1 3
WWP_Helper_Functions::is_wwp_installed()
S
72 1 5
WWP_Install_ACFW::__construct()
S
68 1 7
WWP_Products_CPT::add_wholesale_price_column_to_product_cpt_listing()
S
70 1 5
WWP_REST_API::__construct()
S
98 1 1
WWP_Wholesale_Roles::addCustomCapability()
S
70 1 6
WWP_Wholesale_Prices::getUserProductWholesalePrice()
S
78 1 3
WWP_Wholesale_Roles_Admin_Page::__construct()
S
80 1 3
WWP_Duplicate_Product::run()
S
78 1 3
WWP_Admin_Custom_Fields_Variable_Product::__construct()
S
80 1 3
WooCommerceWholeSalePrices::initialize_plugin_settings()
S
75 1 4
WWP_REST_Wholesale_Roles_V1_Controller::get_items()
S
71 1 5
WWP_Install_ACFW::register_ajax_handler()
S
79 1 3
WWP_WWS_Bundle::__construct()
S
74 1 4
WWP_Helper_Functions::is_acfwf_installed()
S
72 1 5
WWP_Wholesale_Roles_Admin_Page::register_ajax_handler()
S
79 1 3
WWP_Marketing::wwp_hide_acfwf_install_notice()
S
80 1 3
WWP_Admin_Custom_Fields_Simple_Product::_add_wholesale_price_fields_on_quick_edit_screen()
S
69 1 9
WWP_Import_Export::run()
S
78 1 3
WWP_Admin_Custom_Fields_Simple_Product::run()
S
67 1 7
WooCommerceWholeSalePrices::getInstance()
S
80 1 3
WWP_Order::__construct()
S
80 1 3
WWP_Marketing::register_ajax_handlers()
S
75 1 4
WWP_Script_Loader::run()
S
74 1 4
WWP_REST_Wholesale_Roles_V1_Controller::__construct()
S
72 1 5
WWP_Cache::set_product_category_meta_hash_delete_term()
S
79 1 3
WWP_Wholesale_Roles_Admin_Page::run()
S
75 1 4
WWP_Helper_Functions::wwp_get_variable_product_variations()
S
70 1 6
WWP_Bootstrap::load_plugin_text_domain()
S
78 1 3
WWP_Bootstrap::run()
S
62 1 10
wwp_missing_plugin_dependency_notice()
S
69 1 9
WWP_Wholesale_Roles_Admin_Page::view_wholesale_roles_admin_page()
S
75 1 4
WWP_Helper_Functions::wwp_hide_woocommerce_show_variation_price()
S
81 1 3
WWP_Duplicate_Product::__construct()
S
80 1 3
WWP_Cache::run()
S
67 1 7
WWP_Marketing::flag_show_review_request()
S
80 1 3
WWP_Script_Loader::__construct()
S
73 1 5
WWP_Store_Owner_Tips::__construct()
S
79 1 3
WWP_Import_Export::__construct()
S
80 1 3
WWP_ACS_Integration_Helper::aelia_currency_switcher_active()
S
78 1 3
WWP_Wholesale_Roles::run()
S
71 1 5
WWP_Bootstrap::_deactivate()
S
71 1 6
WWP_Products_CPT::__construct()
S
76 1 4