JWT Authentication for WP-API 1.3.8

Does JWT Authentication for WP-API work with WordPress 6.8.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: 23.6 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.1
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=e1421a54fe
Aspect after-activation
HTTP status 200
Load time 0.403 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.363 s
Memory usage 3.54 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.242 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.326 s0.241 s-0.085 s3.51 MiB3.53 MiB+ 25.85 KiB
/wp-admin/edit.php0.191 s0.191 s+0.000 s3.57 MiB3.6 MiB+ 25.37 KiB
/wp-admin/post-new.php0.737 s0.582 s-0.155 s6.06 MiB6.11 MiB+ 52.25 KiB
/wp-admin/upload.php0.615 s0.302 s-0.313 s3.52 MiB3.53 MiB+ 8.33 KiB
/wp-admin/options-writing.php0.189 s0.369 s+0.180 s3.5 MiB3.51 MiB+ 12.32 KiB
/wp-admin/media-new.php0.273 s0.277 s+0.004 s3.49 MiB3.51 MiB+ 20.52 KiB
/wp-admin/edit-tags.php?taxonomy=category0.184 s0.172 s-0.012 s3.5 MiB3.54 MiB+ 31.19 KiB
/wp-admin/post-new.php?post_type=page0.611 s0.598 s-0.013 s6.05 MiB6.1 MiB+ 47.77 KiB
/wp-admin/options-discussion.php0.279 s0.282 s+0.003 s3.5 MiB3.51 MiB+ 8.82 KiB
/wp-admin/edit-comments.php0.198 s0.201 s+0.003 s3.52 MiB3.53 MiB+ 8.32 KiB
/0.290 s0.195 s-0.095 s3.43 MiB3.45 MiB+ 18.82 KiB
Average 0.354 s0.310 s-0.044 s3.97 MiB3.99 MiB+ 23.6 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
JavaScript
Language % Lines of code Comment lines Files
PHP42.1%55459910
Markdown22.7%29901
JavaScript22.6%297136
Sass7.8%10211
JSON4.7%6202
CSS0.1%101
Total 1,315 613 21

PHP Code Analysis | More results »

Lines of code 552
Total complexity 80
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 JWT Authentication for WP-API Admin Menus