Code Analysis: Discount Rules and Dynamic Pricing for WooCommerce 4.11.1

Most Complex Functions

Function Rating Complexity
WCCS_Settings_Manager::get_registered_settings()
D
2
WCCS_Admin_Ajax::save_condition()
D
59
WCCS_Cart::filter_cart_products()
D
53
WCCS_Public_Pricing_Hooks::sale_badge_hooks()
C
29
WCCS_Date_Time_Validator::is_valid()
C
31
WCCS_Admin_Settings_Menu::register_settings()
C
30
WCCS_Admin_Assets::get_script_data()
C
2
WCCS_Products::get_products()
C
21
WCCS_Pricing::get_bulk_pricings()
C
26
WCCS_Cart_Items_Helpers::products_exists_in_items()
B
24
WCCS_DB_Conditions::get_conditions()
B
19
WCCS_Helpers::is_product_in_items()
B
21