Code Analysis: Sitewide Discount for WooCommerce: Apply Discount to All Products 2.2.2

Function Rating Maintainability Complexity Lines of code
Alg_WC_Global_Shop_Discount_Core::add_global_shop_discount()
B
44 20 40
Alg_WC_Global_Shop_Discount_Settings_Group::get_settings()
B
24
4 259
Alg_WC_Global_Shop_Discount_Shortcodes::products_shortcode()
A
42 13 49
Alg_WC_Global_Shop_Discount_Core::is_enabled_for_product()
A
53 11 20
Alg_WC_Global_Shop_Discount_Core::get_gsd_product_ids()
A
49 10 30
Alg_WC_Global_Shop_Discount_Core::check_if_applicable_by_product_scope()
A
54 9 22
Alg_WC_Global_Shop_Discount_Core::init()
A
46 8 34
Alg_WC_Global_Shop_Discount_Tools::run_tools()
A
50 7 31
Alg_WC_Global_Shop_Discount_Core::check_if_applicable_by_date()
S
53 7 21
Alg_WC_Global_Shop_Discount_Settings_General::get_settings()
S
36 1 99
Alg_WC_Global_Shop_Discount_Settings_Group::get_terms()
S
52 6 23
Alg_WC_Global_Shop_Discount_Settings::maybe_reset_settings()
S
54 6 20
Alg_WC_Global_Shop_Discount_Settings_Group::maybe_add_current_values()
S
60 6 13
Alg_WC_Global_Shop_Discount_Settings_Group::get_product_options()
S
55 5 19
Alg_WC_Global_Shop_Discount::__construct()
S
57 5 17
Alg_WC_Global_Shop_Discount_Core::check_if_applicable_by_user()
S
62 5 11
Alg_WC_Global_Shop_Discount_Core::check_if_applicable_by_user_role()
S
62 5 11
Alg_WC_Global_Shop_Discount_Settings_Group::maybe_convert_and_update_option_value()
S
62 5 11
Alg_WC_Global_Shop_Discount_Tools::save_prices_for_all_products()
S
57 4 17
Alg_WC_Global_Shop_Discount::wc_declare_compatibility()
S
58 4 16
Alg_WC_Global_Shop_Discount_Settings_Group::get_date_format_and_examples_desc()
S
45 1 60
Alg_WC_Global_Shop_Discount_Core::check_if_applicable()
S
65 5 9
Alg_WC_Global_Shop_Discount_Core::change_price_grouped()
S
60 4 13
Alg_WC_Global_Shop_Discount_Core::change_price()
S
55 3 22
Alg_WC_Global_Shop_Discount_Core::price_hooks()
S
55 3 19
Alg_WC_Global_Shop_Discount_Core::calculate_price()
S
63 4 9
Alg_WC_Global_Shop_Discount_Settings_Tools::get_settings()
S
47 1 45
Alg_WC_Global_Shop_Discount_Core::__construct()
S
63 4 10
Alg_WC_Global_Shop_Discount_Core::get_product_price_raw()
S
59 3 15
Alg_WC_Global_Shop_Discount::move_wc_settings_tab_to_wpfactory_menu()
S
59 3 14
Alg_WC_Global_Shop_Discount_Settings_Group::__construct()
S
59 3 14
Alg_WC_Global_Shop_Discount_Settings::get_settings()
S
51 2 28
Alg_WC_Global_Shop_Discount_Core::is_frontend()
S
78 3 3
Alg_WC_Global_Shop_Discount_Core::product_has_term()
S
65 3 9
Alg_WC_Global_Shop_Discount_Core::get_product_display_price()
S
63 3 10
Alg_WC_Global_Shop_Discount_Core::get_taxonomy_option_id()
S
78 3 3
Alg_WC_Global_Shop_Discount_Core::is_enabled_for_product_group()
S
59 2 13
Alg_WC_Global_Shop_Discount_Settings::__construct()
S
61 2 12
Alg_WC_Global_Shop_Discount::action_links()
S
61 2 12
Alg_WC_Global_Shop_Discount::add_cross_selling_library()
S
66 2 8
alg_wc_gsd_get_product_discount_groups()
S
74 2 5
alg_wc_gsd_get_product_ids()
S
72 2 5
Alg_WC_Global_Shop_Discount::instance()
S
72 2 6
Alg_WC_Global_Shop_Discount_Settings::save()
S
64 2 10
Alg_WC_Global_Shop_Discount::admin()
S
64 2 9
alg_wc_gsd_is_discount_product()
S
74 2 5
Alg_WC_Global_Shop_Discount_Core::maybe_convert_to_array()
S
77 2 3
Alg_WC_Global_Shop_Discount_Settings_Group::style()
S
100 1 11
Alg_WC_Global_Shop_Discount_Settings_Section::settings_section()
S
77 1 4
Alg_WC_Global_Shop_Discount_Shortcodes::__construct()
S
79 1 3
Alg_WC_Global_Shop_Discount::localize()
S
70 1 7
Alg_WC_Global_Shop_Discount::includes()
S
75 1 4
Alg_WC_Global_Shop_Discount_Settings_General::__construct()
S
73 1 5
Alg_WC_Global_Shop_Discount::add_woocommerce_settings_tab()
S
75 1 4
Alg_WC_Global_Shop_Discount::plugin_path()
S
80 1 3
Alg_WC_Global_Shop_Discount_Settings_Tools::__construct()
S
73 1 5
Alg_WC_Global_Shop_Discount_Core::get_product_discount_groups()
S
78 1 3
alg_wc_global_shop_discount()
S
82 1 3
Alg_WC_Global_Shop_Discount_Core::get_variation_prices_hash()
S
73 1 5
Alg_WC_Global_Shop_Discount::version_updated()
S
80 1 3
Alg_WC_Global_Shop_Discount_Settings_Section::__construct()
S
74 1 4
Alg_WC_Global_Shop_Discount::plugin_url()
S
80 1 3
Alg_WC_Global_Shop_Discount_Tools::__construct()
S
79 1 3
Alg_WC_Global_Shop_Discount_Core::is_gsd_product()
S
72 1 5