Block Visibility 2.3.0

Does Block Visibility work with WordPress 5.9.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: 14.68 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.9.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 10,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=2cedf1a8db
Aspect after-activation
HTTP status 200
Load time 0.376 s
Memory usage 3.36 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.080 s
Memory usage 3.46 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 3.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.324 s0.251 s-0.073 s3.37 MiB3.4 MiB+ 28.91 KiB
/wp-admin/edit.php0.167 s0.171 s+0.004 s3.4 MiB3.43 MiB+ 28.91 KiB
/wp-admin/post-new.php0.985 s1.149 s+0.164 s6.14 MiB6.09 MiB- 56.18 KiB
/wp-admin/upload.php0.446 s0.306 s-0.140 s3.25 MiB3.28 MiB+ 35.77 KiB
/wp-admin/options-writing.php0.227 s0.223 s-0.004 s3.24 MiB3.26 MiB+ 19.63 KiB
/wp-admin/media-new.php0.221 s0.176 s-0.045 s3.23 MiB3.26 MiB+ 35.95 KiB
/wp-admin/edit-tags.php?taxonomy=category0.188 s0.171 s-0.017 s3.27 MiB3.29 MiB+ 28.85 KiB
/wp-admin/post-new.php?post_type=page0.904 s1.037 s+0.133 s6.14 MiB6.08 MiB- 60.55 KiB
/wp-admin/options-discussion.php0.377 s0.222 s-0.155 s3.22 MiB3.26 MiB+ 36.26 KiB
/wp-admin/edit-comments.php0.196 s0.198 s+0.002 s3.27 MiB3.36 MiB+ 91.76 KiB
/0.268 s0.202 s-0.066 s3.4 MiB3.37 MiB- 27.85 KiB
Average 0.391 s0.373 s-0.018 s3.81 MiB3.83 MiB+ 14.68 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%2,10195829
JavaScript0.9%2012
CSS0.1%303
Total 2,124 959 34

PHP Code Analysis | More results »

Lines of code 2,087
Total complexity 452
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 45

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