Code Analysis: Global Shop Discount for WooCommerce 1.6.0

Function Rating Maintainability Complexity Lines of code
Alg_WC_Global_Shop_Discount_Settings_Group::get_settings()
A
28
4 183
Alg_WC_Global_Shop_Discount_Core::products_shortcode()
A
44 11 44
Alg_WC_Global_Shop_Discount_Core::add_global_shop_discount()
A
56 11 15
Alg_WC_Global_Shop_Discount_Core::get_gsd_product_ids()
A
49 10 30
Alg_WC_Global_Shop_Discount_Core::is_enabled_for_product()
A
54 10 19
Alg_WC_Global_Shop_Discount_Core::check_if_applicable_by_product_scope()
A
53 9 24
Alg_WC_Global_Shop_Discount_Core::init()
A
47 8 31
Alg_WC_Global_Shop_Discount_Core::check_if_applicable_by_date()
S
53 7 21
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_General::get_settings()
S
38 1 83
Alg_WC_Global_Shop_Discount_Core::is_product_term()
S
59 5 15
Alg_WC_Global_Shop_Discount_Settings_Group::get_product_options()
S
59 5 13
Alg_WC_Global_Shop_Discount_Settings_Group::maybe_add_current_values()
S
60 5 13
Alg_WC_Global_Shop_Discount_Settings_Group::maybe_convert_and_update_option_value()
S
62 5 11
Alg_WC_Global_Shop_Discount_Core::check_if_applicable_by_user()
S
62 5 11
Alg_WC_Global_Shop_Discount_Core::get_product_id_or_variation_parent_id()
S
64 5 10
Alg_WC_Global_Shop_Discount_Core::change_price_grouped()
S
60 4 13
Alg_WC_Global_Shop_Discount::__construct()
S
61 4 13
Alg_WC_Global_Shop_Discount_Core::price_hooks()
S
55 3 19
Alg_WC_Global_Shop_Discount_Core::check_if_applicable()
S
66 4 8
Alg_WC_Global_Shop_Discount_Core::calculate_price()
S
70 3 5
Alg_WC_Global_Shop_Discount_Core::is_frontend()
S
78 3 3
Alg_WC_Global_Shop_Discount_Core::__construct()
S
65 3 9
Alg_WC_Global_Shop_Discount_Core::get_product_display_price()
S
63 3 10
Alg_WC_Global_Shop_Discount_Core::change_price()
S
63 3 10
Alg_WC_Global_Shop_Discount_Settings_Group::__construct()
S
66 3 7
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
58 2 14
Alg_WC_Global_Shop_Discount_Settings::__construct()
S
61 2 12
Alg_WC_Global_Shop_Discount_Settings::get_settings()
S
54 1 22
Alg_WC_Global_Shop_Discount_Core::maybe_convert_to_array()
S
77 2 3
Alg_WC_Global_Shop_Discount::instance()
S
72 2 6
Alg_WC_Global_Shop_Discount::action_links()
S
64 2 9
Alg_WC_Global_Shop_Discount::admin()
S
67 2 7
alg_wc_gsd_get_product_ids()
S
77 2 3
Alg_WC_Global_Shop_Discount::add_woocommerce_settings_tab()
S
76 1 4
Alg_WC_Global_Shop_Discount::includes()
S
77 1 4
Alg_WC_Global_Shop_Discount_Core::get_variation_prices_hash()
S
73 1 5
Alg_WC_Global_Shop_Discount::plugin_path()
S
80 1 3
Alg_WC_Global_Shop_Discount::version_updated()
S
80 1 3
Alg_WC_Global_Shop_Discount_Settings_Section::settings_section()
S
77 1 4
Alg_WC_Global_Shop_Discount_Settings_Section::__construct()
S
74 1 4
Alg_WC_Global_Shop_Discount::localize()
S
78 1 3
alg_wc_global_shop_discount()
S
82 1 3
Alg_WC_Global_Shop_Discount_Settings_General::__construct()
S
73 1 5
Alg_WC_Global_Shop_Discount::plugin_url()
S
80 1 3
Alg_WC_Global_Shop_Discount_Settings::save()
S
71 1 6