Code Analysis: User Switching 1.7.3

Function Rating Maintainability Complexity Lines of code
user_switching::action_init()
B
35 20 83
user_switching::get_redirect()
B
38 21 64
user_switching::action_admin_bar_menu()
A
42 12 57
switch_to_user()
A
46 11 38
user_switching::action_admin_notices()
A
41 7 65
user_switching_clear_olduser_cookie()
A
49 8 30
user_switching::action_bp_button()
A
48 7 33
user_switching::filter_user_has_cap()
S
55 7 20
user_switching_set_olduser_cookie()
S
49 5 31
user_switching_get_auth_cookie()
S
59 6 14
user_switching::get_admin_redirect_to()
S
56 5 20
user_switching::action_wp_footer()
S
56 5 19
user_switching::filter_login_message()
S
53 4 24
user_switching::authenticate_old_user()
S
59 4 15
user_switching::forget_woocommerce_session()
S
61 4 13
user_switching::action_plugins_loaded()
S
65 4 11
user_switching::action_bbpress_button()
S
55 3 20
user_switching::filter_map_meta_cap()
S
66 4 8
user_switching::maybe_switch_url()
S
63 4 10
user_switching::action_woocommerce_order_details()
S
59 3 14
user_switching::action_personal_options()
S
58 2 18
user_switching::get_old_user()
S
64 3 10
user_switching::filter_woocommerce_get_endpoint_url()
S
65 3 10
user_switching::action_wp_meta()
S
61 2 13
user_switching::filter_user_row_actions()
S
62 2 12
switch_off_user()
S
62 2 12
user_switching::init_hooks()
S
50 1 27
user_switching::filter_plugin_row_meta()
S
63 2 11
user_switching::secure_auth_cookie()
S
77 2 3
user_switching_get_olduser_cookie()
S
69 2 7
user_switching::current_url()
S
77 2 3
user_switching::remember()
S
65 2 8
current_user_switched()
S
72 2 6
user_switching::get_instance()
S
69 2 7
user_switching::filter_woocommerce_account_menu_items()
S
67 2 8
user_switching::secure_olduser_cookie()
S
77 2 3
user_switching::switched_to_message()
S
64 1 11
user_switching::switch_back_message()
S
64 1 11
user_switching::switched_back_message()
S
64 1 11
user_switching::switch_off_url()
S
69 1 6
user_switching::filter_removable_query_args()
S
70 1 7
user_switching::switch_back_url()
S
69 1 6
user_switching::switch_to_url()
S
68 1 7
user_switching::__construct()
S
98 1 1
user_switching::remove_query_args()
S
79 1 3
user_switching::action_woocommerce_login_form_start()
S
80 1 3