Code Analysis: Black Friday and Cyber Monday for WooCommerce 1.75

Function Rating Maintainability Complexity Lines of code
PW_Black_Friday::get_bogo_discounts()
D
27
44 132
PW_Black_Friday::override_price()
D
37 38 63
PW_Black_Friday::ajax_save_deal()
C
34 29 78
PW_Black_Friday::get_product_deals()
B
43 20 45
PW_Black_Friday::maybe_apply_bogo_coupon()
A
46 14 38
PW_Black_Friday::woocommerce_shortcode_products_query()
A
50 14 26
PW_Black_Friday::ajax_save_event()
A
41 11 56
PW_Black_Friday::woocommerce_add_to_cart_validation()
A
47 11 38
PW_Black_Friday::woocommerce_coupon_is_valid()
A
49 10 33
PW_Black_Friday::get_active_deals()
A
51 10 30
PW_Black_Friday::woocommerce_init()
A
37 6 75
PW_Black_Friday::flatten_cart()
A
50 9 28
PW_Black_Friday::woocommerce_shipping_zone_shipping_methods()
A
51 9 25
PW_Black_Friday::admin_enqueue_scripts()
A
40 6 58
PW_Black_Friday::offer_free_shipping()
A
52 8 24
PW_Black_Friday::index()
A
54 8 21
PW_Black_Friday::woocommerce_variation_prices()
S
54 7 21
PW_Black_Friday::woocommerce_update_cart_validation()
S
53 6 23
PW_Black_Friday::woocommerce_get_shop_coupon_data()
S
54 6 21
PW_Black_Friday::pwbf_to_default_currency()
S
55 6 19
PW_Black_Friday::get_event()
S
55 6 18
PW_Black_Friday::is_deal_coupon()
S
58 6 17
PW_Black_Friday::woocommerce_quantity_input_args()
S
57 6 16
pwbf_strtotime()
S
57 6 16
PW_Black_Friday::woocommerce_available_variation()
S
57 6 16
PW_Black_Friday::woocommerce_cart_totals_coupon_html()
S
57 6 14
PW_Black_Friday::sort_cart_items()
S
60 6 13
PW_Black_Friday::set_categories_query_args()
S
54 5 22
PW_Black_Friday::woocommerce_get_price_html()
S
55 5 18
PW_Black_Friday::woocommerce_coupon_message()
S
57 5 17
PW_Black_Friday::get_deal()
S
58 5 14
PW_Black_Friday::hierarchical_string()
S
59 5 13
PW_Black_Friday::woocommerce_order_get_items()
S
60 5 11
PW_Black_Friday::woocommerce_coupon_error()
S
62 5 11
PW_Black_Friday::ajax_deal_delete_event()
S
56 4 17
PW_Black_Friday::woocommerce_cart_totals_coupon_label()
S
58 4 15
PW_Black_Friday::get_discounted_price()
S
59 4 14
PW_Black_Friday::woocommerce_cart_calculate_fees()
S
59 4 14
PW_Black_Friday::get_cart_quantity()
S
60 4 13
PW_Black_Friday::woocommerce_cart_contents_total()
S
60 4 13
PW_Black_Friday::hierarchical_select()
S
59 4 12
PW_Black_Friday::get_active_events()
S
63 4 12
pwbfPrintProductList()
S
63 4 11
PW_Black_Friday::sort_terms_hierarchicaly()
S
62 4 11
PW_Black_Friday::get_active_bogo_deals()
S
64 4 11
PW_Black_Friday::get_all_events()
S
58 3 16
PW_Black_Friday::admin_menu()
S
52 2 30
PW_Black_Friday::get_local_date_in_format()
S
59 3 15
PW_Black_Friday::set_products_query_args()
S
62 3 11
PW_Black_Friday::ajax_save_countdowns()
S
57 2 16
PW_Black_Friday::ajax_deal_delete_deal()
S
64 3 9
PW_Black_Friday::register_post_types()
S
69 3 8
PW_Black_Friday::ajax_save_promo()
S
62 3 10
PW_Black_Friday::maybe_add_coupon_to_order_item()
S
67 3 8
PW_Black_Friday::woocommerce_product_is_on_sale()
S
64 3 10
PW_Black_Friday::local_date_and_time()
S
65 3 9
PW_Black_Friday::get_deals()
S
59 2 15
PW_Black_Friday::woocommerce_shipping_free_shipping_is_available()
S
72 2 6
PW_Black_Friday::local_date()
S
71 2 6
PW_Black_Friday::shortcode_atts_products()
S
71 2 6
PW_Black_Friday::unhook_price_overrides()
S
72 2 5
PW_Black_Friday::__construct()
S
65 2 9
PW_Black_Friday::field_required()
S
74 2 5
PW_Black_Friday::output_promos_and_countdowns()
S
70 2 6
pw_black_friday_is_product_on_sale()
S
66 2 9
PW_Black_Friday::field_error()
S
67 2 8
PW_Black_Friday::woocommerce_new_order_item()
S
73 2 5
PW_Black_Friday::is_event_active()
S
78 2 3
pimwick_define()
S
81 2 3
PW_Black_Friday::local_time()
S
71 2 6
PW_Black_Friday::sort_events_by_date()
S
69 2 7
PW_Black_Friday::hook_price_overrides()
S
72 2 5
pwbfEventActionButton()
S
67 1 10
pwbfWizardTitle()
S
68 1 8
PW_Black_Friday::wc_min_version()
S
79 1 3
PW_Black_Friday::relative_url()
S
80 1 3
PW_Black_Friday::plugins_loaded()
S
78 1 3
PW_Black_Friday::add_order_limit_notice()
S
70 1 5
PW_Black_Friday::woocommerce_order_add_coupon()
S
80 1 3
boolval()
S
82 1 3
pwbfAddEventButton()
S
67 1 10
PW_Black_Friday::is_bogo_coupon()
S
79 1 3
PW_Black_Friday::get_bogo_coupon_code()
S
79 1 3