JWT Authentication for WP-API 1.3.5

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

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 20.15 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.7.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
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 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=611f849c28
Aspect after-activation
HTTP status 200
Load time 0.373 s
Memory usage 3.52 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.324 s
Memory usage 3.51 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.214 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.294 s0.237 s-0.057 s3.48 MiB3.5 MiB+ 25.3 KiB
/wp-admin/edit.php0.185 s0.175 s-0.010 s3.54 MiB3.57 MiB+ 25.18 KiB
/wp-admin/post-new.php0.741 s0.586 s-0.155 s5.92 MiB5.96 MiB+ 36.05 KiB
/wp-admin/upload.php0.519 s0.511 s-0.008 s3.49 MiB3.5 MiB+ 8.14 KiB
/wp-admin/options-writing.php0.203 s0.238 s+0.035 s3.47 MiB3.48 MiB+ 12.13 KiB
/wp-admin/media-new.php0.256 s0.239 s-0.017 s3.46 MiB3.48 MiB+ 20.33 KiB
/wp-admin/edit-tags.php?taxonomy=category0.189 s0.177 s-0.012 s3.48 MiB3.51 MiB+ 31 KiB
/wp-admin/post-new.php?post_type=page0.529 s0.572 s+0.043 s5.92 MiB5.95 MiB+ 31.59 KiB
/wp-admin/options-discussion.php0.280 s0.235 s-0.045 s3.47 MiB3.48 MiB+ 8.63 KiB
/wp-admin/edit-comments.php0.209 s0.199 s-0.010 s3.49 MiB3.5 MiB+ 8.13 KiB
/0.467 s0.181 s-0.286 s3.41 MiB3.43 MiB+ 15.13 KiB
Average 0.352 s0.305 s-0.047 s3.92 MiB3.94 MiB+ 20.15 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
JavaScript
Markdown
Sass
Language % Lines of code Comment lines Files
PHP42.2%51459810
JavaScript24.4%297136
Markdown19.9%24301
Sass8.4%10211
JSON5.1%6202
CSS0.1%101
Total 1,219 612 21

PHP Code Analysis | More results »

Lines of code 512
Total complexity 79
Median class complexity 7.5
Median method complexity 1.0
Most complex class Jwt_Auth_Public
Most complex function Jwt_Auth_Public::validate_token()
Classes 8
Methods 34
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.

Options wp_options 1

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "JWT Authentication" Admin Menu