Restrict Block Content 0.9.1

Does Restrict Block Content work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
4PHP warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: -6.29 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 <10
WordPress.org page https://wordpress.org/plugins/restrict-block-content/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

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=restrict-block-content%2Frestrict-block-content.php&plugin_status=all&paged=1&s&_wpnonce=38b85cd867
Aspect after-activation
HTTP status 200
Load time 0.284 s
Memory usage 3.53 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.176 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.344 s0.340 s-0.004 s3.51 MiB3.51 MiB+ 5.32 KiB
/wp-admin/edit.php0.202 s0.184 s-0.018 s3.57 MiB3.58 MiB+ 5.32 KiB
/wp-admin/post-new.php0.772 s0.632 s-0.140 s6.06 MiB6.07 MiB+ 9.74 KiB
/wp-admin/upload.php0.589 s0.529 s-0.060 s3.52 MiB3.51 MiB- 12.09 KiB
/wp-admin/options-writing.php0.223 s0.200 s-0.023 s3.5 MiB3.49 MiB- 8.09 KiB
/wp-admin/media-new.php0.288 s0.208 s-0.080 s3.49 MiB3.49 MiB+ 104 bytes
/wp-admin/edit-tags.php?taxonomy=category0.224 s0.200 s-0.024 s3.5 MiB3.51 MiB+ 10.77 KiB
/wp-admin/post-new.php?post_type=page0.608 s0.628 s+0.020 s6.05 MiB6.06 MiB+ 5.27 KiB
/wp-admin/options-discussion.php0.435 s0.250 s-0.185 s3.5 MiB3.49 MiB- 11.59 KiB
/wp-admin/edit-comments.php0.239 s0.197 s-0.042 s3.52 MiB3.51 MiB- 12.09 KiB
/0.317 s0.396 s+0.079 s3.5 MiB3.44 MiB- 61.9 KiB
Average 0.386 s0.342 s-0.043 s3.98 MiB3.97 MiB- 6.29 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.

JSX
PHP
JSON
Language % Lines of code Comment lines Files
JSX47.8%153151
PHP30.3%97782
JSON20.9%6702
JavaScript0.9%341
Total 320 97 6

PHP Code Analysis | More results »

Lines of code 96
Total complexity 16
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function _pre_render_block()
Classes 0
Methods 0
Functions 3

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 4 lines

[19-May-2025 16:20:58 UTC] PHP Warning:  Undefined variable $access_levels_min in /wp-content/plugins/restrict-block-content/restrict-block-content.php on line 76
[19-May-2025 16:20:58 UTC] PHP Warning:  Undefined variable $access_levels_max in /wp-content/plugins/restrict-block-content/restrict-block-content.php on line 77
[19-May-2025 16:21:02 UTC] PHP Warning:  Undefined variable $access_levels_min in /wp-content/plugins/restrict-block-content/restrict-block-content.php on line 76
[19-May-2025 16:21:02 UTC] PHP Warning:  Undefined variable $access_levels_max in /wp-content/plugins/restrict-block-content/restrict-block-content.php on line 77
See also: All tests for this plugin