Code Analysis: Deluxe Shop as a Customer for WooCommerce 1.0.0

Function Rating Maintainability Complexity Lines of code
Deluxe_WC_Shop_As_A_Customer::action_init()
A
41 13 56
Deluxe_WC_Shop_As_A_Customer::switch_to_customer()
A
50 9 30
dsaac_get_settings()
S
42 5 58
Deluxe_WC_Shop_As_A_Customer::plugins_loaded()
S
53 6 21
Deluxe_WC_Shop_As_A_Customer::allowed_users()
S
56 5 19
dsaac_init_checkout_section()
S
61 5 11
dsaac_get_default()
S
63 5 10
Deluxe_WC_Shop_As_A_Customer::check_user_cap()
S
61 4 12
Deluxe_WC_Shop_As_A_Customer::maybe_shop_as_url()
S
62 4 11
dsaac_admin_page()
S
55 3 23
Deluxe_WC_Shop_As_A_Customer::enqueue_scripts()
S
57 3 19
Deluxe_WC_Shop_As_A_Customer::woocommerce_inactive_notice()
S
58 3 16
Deluxe_WC_Shop_As_A_Customer::is_woocommerce_activated()
S
63 4 9
Deluxe_WC_Shop_As_A_Customer::get_original_user()
S
63 3 11
dsaac_checkout()
S
63 3 11
Deluxe_WC_Shop_As_A_Customer::action_admin_bar_menu()
S
66 3 9
Deluxe_WC_Shop_As_A_Customer::build_shopping_as_user_menu()
S
54 1 22
Deluxe_WC_Shop_As_A_Customer::filter_customer_row_actions()
S
66 2 8
Deluxe_WC_Shop_As_A_Customer::get_original_user_cookie()
S
65 2 9
Deluxe_WC_Shop_As_A_Customer::clear_original_user_cookie()
S
69 2 6
dsaac_redirect_customer_on_order_processed()
S
66 2 8
Deluxe_WC_Shop_As_A_Customer::get_instance()
S
70 2 7
Deluxe_WC_Shop_As_A_Customer::filter_login_message()
S
64 2 9
Deluxe_WC_Shop_As_A_Customer::switch_to_url()
S
63 1 12
Deluxe_WC_Shop_As_A_Customer::switch_back_url()
S
64 1 11
Deluxe_WC_Shop_As_A_Customer::remember()
S
70 1 5
dsaac_get_option()
S
79 1 3
action_links()
S
69 1 6
unhook_new_order_email()
S
79 1 3
dsaac_admin_menu()
S
66 1 10
Deluxe_WC_Shop_As_A_Customer::init()
S
72 1 5
Deluxe_WC_Shop_As_A_Customer::is_switched()
S
80 1 3
Deluxe_WC_Shop_As_A_Customer::set_original_user_cookie()
S
71 1 5