JWT Authentication for WP-API 1.2.6

Does JWT Authentication for WP-API work with WordPress 6.0.2 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
4PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 5.02 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.0.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 50,000+
WordPress.org page https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=jwt-authentication-for-wp-rest-api%2Fjwt-auth.php&plugin_status=all&paged=1&s&_wpnonce=e784caa47b
Aspect after-activation
HTTP status 200
Load time 0.408 s
Memory usage 3.7 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.240 s
Memory usage 3.57 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.348 s0.298 s-0.050 s3.72 MiB3.73 MiB+ 7.45 KiB
/wp-admin/edit.php0.193 s0.211 s+0.018 s3.76 MiB3.76 MiB+ 6.74 KiB
/wp-admin/post-new.php0.967 s1.244 s+0.277 s5.55 MiB5.57 MiB+ 20.98 KiB
/wp-admin/upload.php0.475 s0.360 s-0.115 s3.69 MiB3.69 MiB+ 6.32 KiB
/wp-admin/options-writing.php0.160 s0.140 s-0.020 s3.62 MiB3.63 MiB+ 13.9 KiB
/wp-admin/media-new.php0.383 s0.195 s-0.188 s3.66 MiB3.67 MiB+ 6.49 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.190 s-0.007 s3.69 MiB3.7 MiB+ 7.4 KiB
/wp-admin/post-new.php?post_type=page1.339 s1.280 s-0.059 s5.54 MiB5.56 MiB+ 12.56 KiB
/wp-admin/options-discussion.php0.223 s0.241 s+0.018 s3.6 MiB3.6 MiB+ 6.8 KiB
/wp-admin/edit-comments.php0.226 s0.218 s-0.008 s3.7 MiB3.7 MiB+ 6.3 KiB
/0.284 s0.213 s-0.071 s3.6 MiB3.57 MiB- 39.77 KiB
Average 0.436 s0.417 s-0.019 s4.01 MiB4.02 MiB+ 5.02 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Markdown
Language % Lines of code Comment lines Files
PHP63.1%4204227
Markdown35.1%23401
JSON1.8%1201
Total 666 422 9

PHP Code Analysis | More results »

Lines of code 419
Total complexity 53
Median class complexity 7.0
Median method complexity 1.0
Most complex class Jwt_Auth_Public
Most complex function Jwt_Auth_Public::validate_token()
Classes 5
Methods 29
Functions 1

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

No new entries found.

PHP Error Log 4 lines

[31-Aug-2022 01:07:24 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>jwt-auth/v1/token</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5831
[31-Aug-2022 01:07:24 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>jwt-auth/v1/token/validate</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5831
[31-Aug-2022 01:07:28 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>jwt-auth/v1/token</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5831
[31-Aug-2022 01:07:28 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>jwt-auth/v1/token/validate</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5831
See also: All tests for this plugin, How to Hide the "JWT Authentication" Admin Menu