Block Visibility 2.1.1

Does Block Visibility work with WordPress 5.8.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: 29.3 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.1
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=13bdbbea16
Aspect after-activation
HTTP status 200
Load time 0.235 s
Memory usage 3.07 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 1.110 s
Memory usage 3.08 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.229 s
Memory usage 2.93 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.327 s0.255 s-0.072 s3.08 MiB3.11 MiB+ 28.28 KiB
/wp-admin/edit.php0.195 s0.194 s-0.001 s3.11 MiB3.2 MiB+ 92.28 KiB
/wp-admin/post-new.php0.802 s0.823 s+0.021 s5.27 MiB5.29 MiB+ 19.18 KiB
/wp-admin/upload.php0.597 s0.289 s-0.308 s3.03 MiB3.06 MiB+ 27.15 KiB
/wp-admin/options-writing.php0.196 s0.300 s+0.104 s3.02 MiB3.03 MiB+ 11.07 KiB
/wp-admin/media-new.php0.244 s0.157 s-0.087 s3.01 MiB3.03 MiB+ 27.27 KiB
/wp-admin/edit-tags.php?taxonomy=category0.172 s0.167 s-0.005 s3.04 MiB3.07 MiB+ 28.17 KiB
/wp-admin/post-new.php?post_type=page0.836 s0.748 s-0.088 s5.26 MiB5.28 MiB+ 14.4 KiB
/wp-admin/options-discussion.php0.319 s0.235 s-0.084 s3 MiB3.03 MiB+ 27.63 KiB
/wp-admin/edit-comments.php0.224 s0.205 s-0.019 s3.04 MiB3.07 MiB+ 27.13 KiB
/0.334 s0.257 s-0.077 s2.91 MiB2.93 MiB+ 19.7 KiB
Average 0.386 s0.330 s-0.056 s3.43 MiB3.46 MiB+ 29.3 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
PHP98.9%1,95788728
JavaScript1.0%1912
CSS0.2%303
Total 1,979 888 33

PHP Code Analysis | More results »

Lines of code 1,943
Total complexity 392
Median class complexity 22.0
Median method complexity 2.0
Most complex class Block_Visibility
Most complex function user_role_test()
Classes 3
Methods 23
Functions 40

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 "Block Visibility" Admin Menu