Code Analysis: JWT Authentication for WP-API 1.3.0

Most Complex Classes

Class Rating Complexity
Jwt_Auth_Public
S
29
Jwt_Auth
S
8
GeneralTest
S
7
Jwt_Auth_Loader
S
7
Jwt_Auth_i18n
S
2

Most Complex Functions

Function Rating Complexity
Jwt_Auth_Public::validate_token()
A
12
Jwt_Auth_Public::determine_current_user()
S
6
Jwt_Auth_Public::generate_token()
S
4
GeneralTest::test_jwt_write_access()
S
1
GeneralTest::test_validate_jwt_token()
S
1
Jwt_Auth_Loader::run()
S
3
Jwt_Auth_Public::add_cors_support()
S
3
Jwt_Auth_Public::rest_pre_dispatch()
S
2
GeneralTest::test_get_jwt_token()
S
1
Jwt_Auth_Public::add_api_routes()
S
1
Jwt_Auth_Loader::add_filter()
S
1
GeneralTest::test_is_wp_api_installed()
S
1