Disable REST API 1.7

Does Disable REST API work with WordPress 6.3.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: 7.61 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.3.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 90,000+
WordPress.org page https://wordpress.org/plugins/disable-json-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=disable-json-api%2Fdisable-json-api.php&plugin_status=all&paged=1&s&_wpnonce=820c611b3a
Aspect after-activation
HTTP status 200
Load time 0.266 s
Memory usage 3.96 MiB
JS errors None
Resource errors None

Settings → Disable REST API

Page screenshot: Settings → Disable REST API
URL /wp-admin/options-general.php?page=disable_rest_api_settings
Aspect menu-item
HTTP status 200
Load time 0.225 s
Memory usage 4.15 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.178 s
Memory usage 3.08 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.318 s0.281 s-0.037 s2.82 MiB2.84 MiB+ 15.59 KiB
/wp-admin/edit.php0.203 s0.193 s-0.010 s2.85 MiB2.86 MiB+ 15.59 KiB
/wp-admin/post-new.php0.756 s0.547 s-0.209 s5.21 MiB5.23 MiB+ 19.96 KiB
/wp-admin/upload.php0.613 s0.494 s-0.119 s2.77 MiB2.77 MiB- 1.82 KiB
/wp-admin/options-writing.php0.230 s0.199 s-0.031 s2.76 MiB2.75 MiB- 9.85 KiB
/wp-admin/media-new.php0.273 s0.254 s-0.019 s2.74 MiB2.75 MiB+ 10.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.220 s+0.025 s2.76 MiB2.77 MiB+ 15.55 KiB
/wp-admin/post-new.php?post_type=page0.581 s0.566 s-0.015 s5.21 MiB5.22 MiB+ 15.55 KiB
/wp-admin/options-discussion.php0.228 s0.213 s-0.015 s2.75 MiB2.75 MiB- 1.32 KiB
/wp-admin/edit-comments.php0.418 s0.427 s+0.009 s2.78 MiB2.78 MiB- 1.82 KiB
/0.276 s0.220 s-0.056 s3.13 MiB3.14 MiB+ 5.89 KiB
Average 0.372 s0.329 s-0.043 s3.25 MiB3.26 MiB+ 7.61 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
Language % Lines of code Comment lines Files
PHP92.2%4362529
JavaScript5.1%2402
CSS2.7%1301
Total 473 252 12

PHP Code Analysis | More results »

Lines of code 393
Total complexity 94
Median class complexity 21.0
Median method complexity 2.0
Most complex class Disable_REST_API
Most complex function Disable_REST_API::maybe_process_settings_form()
Classes 4
Methods 34
Functions 2

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 "Disable REST API" Admin Menu