Disable REST API 1.8

Does Disable 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: 10.22 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 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=64311e2f3a
Aspect after-activation
HTTP status 200
Load time 0.287 s
Memory usage 4.82 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.232 s
Memory usage 4.95 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.181 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.406 s0.286 s-0.120 s3.51 MiB3.52 MiB+ 16.3 KiB
/wp-admin/edit.php0.199 s0.191 s-0.008 s3.57 MiB3.59 MiB+ 16.3 KiB
/wp-admin/post-new.php0.813 s0.643 s-0.170 s6.06 MiB6.08 MiB+ 20.73 KiB
/wp-admin/upload.php0.594 s0.537 s-0.057 s3.52 MiB3.52 MiB- 1.11 KiB
/wp-admin/options-writing.php0.239 s0.212 s-0.027 s3.5 MiB3.5 MiB+ 2.88 KiB
/wp-admin/media-new.php0.338 s0.239 s-0.099 s3.49 MiB3.5 MiB+ 11.08 KiB
/wp-admin/edit-tags.php?taxonomy=category0.216 s0.223 s+0.007 s3.5 MiB3.53 MiB+ 21.75 KiB
/wp-admin/post-new.php?post_type=page0.642 s0.637 s-0.005 s6.05 MiB6.07 MiB+ 16.25 KiB
/wp-admin/options-discussion.php0.286 s0.426 s+0.140 s3.5 MiB3.5 MiB- 632 bytes
/wp-admin/edit-comments.php0.417 s0.215 s-0.202 s3.52 MiB3.52 MiB- 1.12 KiB
/0.349 s0.420 s+0.071 s3.43 MiB3.44 MiB+ 10 KiB
Average 0.409 s0.366 s-0.043 s3.97 MiB3.98 MiB+ 10.22 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
Language % Lines of code Comment lines Files
PHP83.6%4272478
Markdown9.0%4602
JavaScript4.7%2402
CSS2.5%1301
YAML0.2%101
Total 511 247 14

PHP Code Analysis | More results »

Lines of code 384
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 1

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