Code Analysis: JWT Authentication for WP-API 1.3.0

Function Rating Maintainability Complexity Lines of code
Jwt_Auth_Public::validate_token()
A
39 12 76
Jwt_Auth_Public::determine_current_user()
S
54 6 21
Jwt_Auth_Public::generate_token()
S
43 4 51
GeneralTest::test_jwt_write_access()
S
50 1 32
GeneralTest::test_validate_jwt_token()
S
50 1 31
Jwt_Auth_Loader::run()
S
66 3 8
Jwt_Auth_Public::add_cors_support()
S
67 3 7
Jwt_Auth_Public::rest_pre_dispatch()
S
72 2 6
GeneralTest::test_get_jwt_token()
S
59 1 15
Jwt_Auth_Public::add_api_routes()
S
62 1 12
Jwt_Auth_Loader::add_filter()
S
77 1 3
GeneralTest::test_is_wp_api_installed()
S
66 1 8
Jwt_Auth::run()
S
82 1 3
Jwt_Auth_Loader::add()
S
64 1 10
Jwt_Auth::get_plugin_name()
S
82 1 3
Jwt_Auth::get_version()
S
82 1 3
Jwt_Auth_Public::__construct()
S
72 1 5
Jwt_Auth::__construct()
S
69 1 7
Jwt_Auth::load_dependencies()
S
68 1 7
Jwt_Auth_i18n::set_domain()
S
81 1 3
Jwt_Auth::set_locale()
S
72 1 5
Jwt_Auth::define_public_hooks()
S
67 1 7
GeneralTest::test_is_site_up()
S
75 1 4
GeneralTest::setUp()
S
73 1 5
GeneralTest::test_is_jwt_installed()
S
69 1 6
Jwt_Auth_i18n::load_plugin_textdomain()
S
69 1 7
Jwt_Auth_Loader::add_action()
S
77 1 3
run_jwt_auth()
S
77 1 4
Jwt_Auth::get_loader()
S
82 1 3
Jwt_Auth_Loader::__construct()
S
77 1 4