Block Visibility 2.2.0

Does Block Visibility work with WordPress 5.8.2 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: 25.31 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.2
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=7f4fcec45c
Aspect after-activation
HTTP status 200
Load time 0.444 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.178 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.255 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.366 s0.327 s-0.039 s3.08 MiB3.11 MiB+ 28.28 KiB
/wp-admin/edit.php0.199 s0.212 s+0.013 s3.11 MiB3.2 MiB+ 92.28 KiB
/wp-admin/post-new.php1.006 s1.156 s+0.150 s5.27 MiB5.29 MiB+ 19.18 KiB
/wp-admin/upload.php0.425 s0.343 s-0.082 s3.03 MiB3.06 MiB+ 27.15 KiB
/wp-admin/options-writing.php0.156 s0.322 s+0.166 s3.02 MiB3.03 MiB+ 11.13 KiB
/wp-admin/media-new.php0.543 s0.164 s-0.379 s3.01 MiB3.03 MiB+ 27.32 KiB
/wp-admin/edit-tags.php?taxonomy=category0.209 s0.207 s-0.002 s3.04 MiB3.07 MiB+ 28.23 KiB
/wp-admin/post-new.php?post_type=page0.963 s1.067 s+0.104 s5.26 MiB5.28 MiB+ 18.81 KiB
/wp-admin/options-discussion.php0.247 s0.253 s+0.006 s3 MiB3.03 MiB+ 27.63 KiB
/wp-admin/edit-comments.php0.285 s0.231 s-0.054 s3.04 MiB3.07 MiB+ 27.13 KiB
/0.278 s0.215 s-0.063 s2.96 MiB2.93 MiB- 28.7 KiB
Average 0.425 s0.409 s-0.016 s3.44 MiB3.46 MiB+ 25.31 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,96090429
JavaScript1.0%1912
CSS0.2%303
Total 1,982 905 34

PHP Code Analysis | More results »

Lines of code 1,946
Total complexity 394
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 41

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