Block Visibility 2.1.2

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.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 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=222989c047
Aspect after-activation
HTTP status 200
Load time 0.371 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.051 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.220 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.363 s0.262 s-0.101 s3.08 MiB3.11 MiB+ 28.28 KiB
/wp-admin/edit.php0.201 s0.206 s+0.005 s3.11 MiB3.2 MiB+ 92.28 KiB
/wp-admin/post-new.php0.817 s0.793 s-0.024 s5.27 MiB5.29 MiB+ 19.18 KiB
/wp-admin/upload.php0.385 s0.310 s-0.075 s3.03 MiB3.06 MiB+ 27.09 KiB
/wp-admin/options-writing.php0.270 s0.252 s-0.018 s3.02 MiB3.03 MiB+ 11.07 KiB
/wp-admin/media-new.php0.305 s0.209 s-0.096 s3.01 MiB3.03 MiB+ 27.27 KiB
/wp-admin/edit-tags.php?taxonomy=category0.183 s0.185 s+0.002 s3.04 MiB3.07 MiB+ 28.17 KiB
/wp-admin/post-new.php?post_type=page0.615 s0.675 s+0.060 s5.26 MiB5.28 MiB+ 14.4 KiB
/wp-admin/options-discussion.php0.253 s0.240 s-0.013 s3 MiB3.03 MiB+ 27.63 KiB
/wp-admin/edit-comments.php0.220 s0.208 s-0.012 s3.04 MiB3.07 MiB+ 27.13 KiB
/0.287 s0.213 s-0.074 s2.91 MiB2.93 MiB+ 19.7 KiB
Average 0.354 s0.323 s-0.031 s3.43 MiB3.46 MiB+ 29.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.

PHP
Language % Lines of code Comment lines Files
PHP98.9%1,96888828
JavaScript1.0%1912
CSS0.2%303
Total 1,990 889 33

PHP Code Analysis | More results »

Lines of code 1,954
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 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