JWT Authentication for WP-API 1.4.0

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

Summary

Errors
No PHP errors, warnings or notices
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 38.24 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.8.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 60,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 3

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=ef8f7d7e96
Aspect after-activation
HTTP status 200
Load time 0.343 s
Memory usage 3.55 MiB
JS errors None
Resource errors None

Settings → JWT Authentication

Page screenshot: Settings → JWT Authentication
URL /wp-admin/options-general.php?page=jwt_authentication
Aspect menu-item
HTTP status 200
Load time 0.892 s
Memory usage 3.54 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'init')\n    at HTMLDocument.<anonymous> (/wp-admin/js/svg-painter.js?ver=6.8.2:16:17)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.2:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.2:2:27330)",
        "trace": null,
        "code": null
    }
]
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.181 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.373 s0.321 s-0.052 s3.51 MiB3.54 MiB+ 31.68 KiB
/wp-admin/edit.php0.207 s0.189 s-0.018 s3.57 MiB3.6 MiB+ 26.98 KiB
/wp-admin/post-new.php0.817 s0.696 s-0.121 s6.06 MiB6.18 MiB+ 123.43 KiB
/wp-admin/upload.php0.624 s0.691 s+0.067 s3.52 MiB3.53 MiB+ 9.94 KiB
/wp-admin/options-writing.php0.236 s0.190 s-0.046 s3.5 MiB3.51 MiB+ 13.93 KiB
/wp-admin/media-new.php0.340 s0.255 s-0.085 s3.49 MiB3.51 MiB+ 22.13 KiB
/wp-admin/edit-tags.php?taxonomy=category0.210 s0.225 s+0.015 s3.5 MiB3.54 MiB+ 32.8 KiB
/wp-admin/post-new.php?post_type=page0.610 s0.696 s+0.086 s6.05 MiB6.17 MiB+ 118.95 KiB
/wp-admin/options-discussion.php0.273 s0.289 s+0.016 s3.5 MiB3.51 MiB+ 10.43 KiB
/wp-admin/edit-comments.php0.426 s0.194 s-0.232 s3.52 MiB3.53 MiB+ 9.93 KiB
/0.315 s0.189 s-0.126 s3.43 MiB3.45 MiB+ 20.43 KiB
Average 0.403 s0.358 s-0.045 s3.97 MiB4.01 MiB+ 38.24 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.

TypeScript
PHP
Language % Lines of code Comment lines Files
TypeScript68.3%2,7463738
PHP28.9%1,1637999
CSS2.7%10931
Total 4,018 839 48

PHP Code Analysis | More results »

Lines of code 1,173
Total complexity 145
Median class complexity 7.5
Median method complexity 1.0
Most complex class Jwt_Auth_Admin
Most complex function Jwt_Auth_Public::validate_token()
Classes 8
Methods 55
Functions 3

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

The log file is empty.

See also: All tests for this plugin, How to Hide JWT Authentication for WP-API Admin Menus