Disable REST API 1.8

Does Disable REST 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: 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.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=eaf224ce8b
Aspect after-activation
HTTP status 200
Load time 0.280 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.167 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.201 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.334 s0.271 s-0.063 s3.51 MiB3.52 MiB+ 16.3 KiB
/wp-admin/edit.php0.185 s0.173 s-0.012 s3.57 MiB3.59 MiB+ 16.3 KiB
/wp-admin/post-new.php0.731 s0.580 s-0.151 s6.06 MiB6.08 MiB+ 20.73 KiB
/wp-admin/upload.php0.518 s0.287 s-0.231 s3.52 MiB3.52 MiB- 1.11 KiB
/wp-admin/options-writing.php0.181 s0.183 s+0.002 s3.5 MiB3.5 MiB+ 2.88 KiB
/wp-admin/media-new.php0.250 s0.202 s-0.048 s3.49 MiB3.5 MiB+ 11.08 KiB
/wp-admin/edit-tags.php?taxonomy=category0.153 s0.328 s+0.175 s3.5 MiB3.53 MiB+ 21.75 KiB
/wp-admin/post-new.php?post_type=page0.560 s0.537 s-0.023 s6.05 MiB6.07 MiB+ 16.25 KiB
/wp-admin/options-discussion.php0.305 s0.267 s-0.038 s3.5 MiB3.5 MiB- 632 bytes
/wp-admin/edit-comments.php0.191 s0.179 s-0.012 s3.52 MiB3.52 MiB- 1.12 KiB
/0.276 s0.187 s-0.089 s3.43 MiB3.44 MiB+ 10 KiB
Average 0.335 s0.290 s-0.045 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