Disable REST API 1.6

Does Disable REST API work with WordPress 5.8 and PHP 7.4.8? 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: 4.82 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 version5.8
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=b8e515b307
Aspect after-activation
HTTP status 200
Load time 0.234 s
Memory usage 3.9 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.165 s
Memory usage 4.01 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.374 s
Memory usage 2.92 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.295 s0.225 s-0.070 s3.08 MiB3.09 MiB+ 11.13 KiB
/wp-admin/edit.php0.177 s0.174 s-0.003 s3.11 MiB3.12 MiB+ 11.13 KiB
/wp-admin/post-new.php0.755 s1.089 s+0.334 s5.27 MiB5.28 MiB+ 15.48 KiB
/wp-admin/upload.php0.538 s0.283 s-0.255 s3.03 MiB3.04 MiB+ 9.99 KiB
/wp-admin/options-writing.php0.143 s0.231 s+0.088 s3.02 MiB3.02 MiB- 6.03 KiB
/wp-admin/media-new.php0.238 s0.267 s+0.029 s3.01 MiB3.02 MiB+ 10.16 KiB
/wp-admin/edit-tags.php?taxonomy=category0.164 s0.168 s+0.004 s3.04 MiB3.05 MiB+ 11.07 KiB
/wp-admin/post-new.php?post_type=page0.817 s0.671 s-0.146 s5.26 MiB5.27 MiB+ 11.07 KiB
/wp-admin/options-discussion.php0.304 s0.303 s-0.001 s3 MiB3.01 MiB+ 10.48 KiB
/wp-admin/edit-comments.php0.204 s0.214 s+0.010 s3.04 MiB3.05 MiB+ 9.98 KiB
/0.314 s0.221 s-0.093 s2.96 MiB2.92 MiB- 41.41 KiB
Average 0.359 s0.350 s-0.009 s3.44 MiB3.44 MiB+ 4.82 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%4372529
JavaScript5.1%2402
CSS2.7%1301
Total 474 252 12

PHP Code Analysis | More results »

Lines of code 394
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