WP REST API 2.0-beta15

Does WP REST 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
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 318.7 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 40,000+
WordPress.org page https://wordpress.org/plugins/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=rest-api%2Fplugin.php&plugin_status=all&paged=1&s&_wpnonce=e4202c1a51
Aspect after-activation
HTTP status 200
Load time 0.296 s
Memory usage 3.53 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.187 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.384 s0.288 s-0.096 s3.51 MiB3.51 MiB+ 7.41 KiB
/wp-admin/edit.php0.211 s0.204 s-0.007 s3.57 MiB3.58 MiB+ 7.41 KiB
/wp-admin/post-new.php0.854 s0.668 s-0.186 s6.06 MiB7.77 MiB+ 1.71 MiB
/wp-admin/upload.php0.810 s0.646 s-0.164 s3.52 MiB3.51 MiB- 10 KiB
/wp-admin/options-writing.php0.247 s0.228 s-0.019 s3.5 MiB3.5 MiB- 6.01 KiB
/wp-admin/media-new.php0.302 s0.256 s-0.046 s3.49 MiB3.49 MiB+ 2.19 KiB
/wp-admin/edit-tags.php?taxonomy=category0.209 s0.209 s+0.000 s3.5 MiB3.52 MiB+ 12.86 KiB
/wp-admin/post-new.php?post_type=page0.773 s0.661 s-0.112 s6.05 MiB7.76 MiB+ 1.71 MiB
/wp-admin/options-discussion.php0.481 s0.248 s-0.233 s3.5 MiB3.49 MiB- 9.51 KiB
/wp-admin/edit-comments.php0.254 s0.226 s-0.028 s3.52 MiB3.51 MiB- 10.01 KiB
/0.326 s0.209 s-0.117 s3.43 MiB3.44 MiB+ 7.45 KiB
Average 0.441 s0.349 s-0.092 s3.97 MiB4.28 MiB+ 318.7 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
PHP63.5%5,6452,00519
Markdown28.4%2,52503
JavaScript8.1%7193831
Total 8,889 2,388 23

PHP Code Analysis | More results »

Lines of code 5,645
Total complexity 1,219
Median class complexity 38.0
Median method complexity 3.0
Most complex class WP_REST_Posts_Controller
Most complex function WP_REST_Posts_Controller::prepare_item_for_database()
Classes 16
Methods 203
Functions 22

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