Block Visibility 1.7.0

Does Block Visibility work with WordPress 5.7 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
3PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 23.62 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.7
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 20,000+
WordPress.org page https://wordpress.org/plugins/block-visibility/
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=block-visibility%2Fblock-visibility.php&plugin_status=all&paged=1&s&_wpnonce=3d7d13b53a
Aspect after-activation
HTTP status 200
Load time 0.251 s
Memory usage 2.81 MiB
JS errors None
Resource errors None

Settings → Block Visibility

Page screenshot: Settings → Block Visibility
URL /wp-admin/options-general.php?page=block-visibility-settings
Aspect menu-item
HTTP status 200
Load time 0.698 s
Memory usage 2.76 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.207 s
Memory usage 2.67 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.268 s0.254 s-0.014 s2.82 MiB2.85 MiB+ 29.32 KiB
/wp-admin/edit.php0.189 s0.347 s+0.158 s2.86 MiB2.89 MiB+ 29.32 KiB
/wp-admin/post-new.php0.913 s0.829 s-0.084 s5.02 MiB5.06 MiB+ 36.79 KiB
/wp-admin/upload.php0.481 s0.266 s-0.215 s2.7 MiB2.72 MiB+ 24.23 KiB
/wp-admin/options-writing.php0.269 s0.143 s-0.126 s2.71 MiB2.7 MiB- 7.8 KiB
/wp-admin/media-new.php0.228 s0.176 s-0.052 s2.67 MiB2.7 MiB+ 24.4 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.183 s-0.010 s2.77 MiB2.8 MiB+ 25.3 KiB
/wp-admin/post-new.php?post_type=page1.161 s0.737 s-0.424 s5.01 MiB5.04 MiB+ 28.42 KiB
/wp-admin/options-discussion.php0.344 s0.290 s-0.054 s2.67 MiB2.7 MiB+ 24.71 KiB
/wp-admin/edit-comments.php0.242 s0.248 s+0.006 s2.78 MiB2.8 MiB+ 24.21 KiB
/0.318 s0.250 s-0.068 s2.65 MiB2.67 MiB+ 20.95 KiB
Average 0.419 s0.338 s-0.080 s3.15 MiB3.17 MiB+ 23.62 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%1,53975821
Total 1,539 758 21

PHP Code Analysis | More results »

Lines of code 1,530
Total complexity 261
Median class complexity 11.0
Median method complexity 2.0
Most complex class Block_Visibility
Most complex function user_role_test()
Classes 3
Methods 22
Functions 33

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

[29-Mar-2021 20:29:04 UTC] PHP Notice:  Undefined variable: tags_for_select in /wp-content/plugins/block-visibility/includes/rest-api/controllers/class-block-visibility-rest-variables-controller.php on line 217
[29-Mar-2021 20:29:07 UTC] PHP Notice:  Undefined variable: tags_for_select in /wp-content/plugins/block-visibility/includes/rest-api/controllers/class-block-visibility-rest-variables-controller.php on line 217
[29-Mar-2021 20:29:10 UTC] PHP Notice:  Undefined variable: tags_for_select in /wp-content/plugins/block-visibility/includes/rest-api/controllers/class-block-visibility-rest-variables-controller.php on line 217
See also: All tests for this plugin, How to Hide the "Block Visibility" Admin Menu