Disable REST API 1.5.1

Does Disable REST API work with WordPress 5.6.1 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: -1.94 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.6.1
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=11631a104a
Aspect after-activation
HTTP status 200
Load time 0.273 s
Memory usage 2.69 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.174 s
Memory usage 3.45 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.261 s
Memory usage 2.62 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.294 s0.331 s+0.037 s2.8 MiB2.8 MiB+ 9.38 KiB
/wp-admin/edit.php0.196 s0.199 s+0.003 s2.84 MiB2.85 MiB+ 9.38 KiB
/wp-admin/post-new.php1.092 s1.073 s-0.019 s4.94 MiB4.95 MiB+ 13.74 KiB
/wp-admin/upload.php0.566 s0.328 s-0.238 s2.67 MiB2.67 MiB+ 4.25 KiB
/wp-admin/options-writing.php0.328 s0.287 s-0.041 s2.69 MiB2.66 MiB- 27.77 KiB
/wp-admin/media-new.php0.252 s0.220 s-0.032 s2.65 MiB2.65 MiB+ 4.42 KiB
/wp-admin/edit-tags.php?taxonomy=category0.232 s0.193 s-0.039 s2.68 MiB2.69 MiB+ 5.33 KiB
/wp-admin/post-new.php?post_type=page1.177 s0.743 s-0.434 s4.93 MiB4.93 MiB+ 5.33 KiB
/wp-admin/options-discussion.php0.302 s0.326 s+0.024 s2.65 MiB2.65 MiB+ 4.73 KiB
/wp-admin/edit-comments.php0.232 s0.244 s+0.012 s2.75 MiB2.75 MiB+ 4.23 KiB
/0.281 s0.233 s-0.048 s2.67 MiB2.62 MiB- 54.33 KiB
Average 0.450 s0.380 s-0.070 s3.11 MiB3.11 MiB- 1.94 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
PHP100.0%2451337
Total 245 133 7

PHP Code Analysis | More results »

Lines of code 244
Total complexity 50
Median class complexity 19.5
Median method complexity 1.5
Most complex class Disable_REST_API
Most complex function DRA_display_route_checkboxes()
Classes 2
Methods 20
Functions 4

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, How to Hide the "Disable REST API" Admin Menu