Block Visibility 2.4.2

Does Block Visibility work with WordPress 6.0.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.33 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 version6.0.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=34b42a54ee
Aspect after-activation
HTTP status 200
Load time 0.408 s
Memory usage 3.73 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.103 s
Memory usage 3.74 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.251 s
Memory usage 3.57 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.355 s0.297 s-0.058 s3.72 MiB3.75 MiB+ 29.48 KiB
/wp-admin/edit.php0.219 s0.205 s-0.014 s3.75 MiB3.78 MiB+ 29.48 KiB
/wp-admin/post-new.php1.532 s1.024 s-0.508 s5.55 MiB5.55 MiB+ 8.51 KiB
/wp-admin/upload.php0.440 s0.344 s-0.096 s3.68 MiB3.71 MiB+ 28.34 KiB
/wp-admin/options-writing.php0.227 s0.287 s+0.060 s3.62 MiB3.69 MiB+ 72.25 KiB
/wp-admin/media-new.php0.414 s0.210 s-0.204 s3.66 MiB3.69 MiB+ 28.52 KiB
/wp-admin/edit-tags.php?taxonomy=category0.247 s0.193 s-0.054 s3.69 MiB3.72 MiB+ 29.42 KiB
/wp-admin/post-new.php?post_type=page0.786 s0.894 s+0.108 s5.54 MiB5.55 MiB+ 4.14 KiB
/wp-admin/options-discussion.php0.221 s0.217 s-0.004 s3.6 MiB3.69 MiB+ 92.83 KiB
/wp-admin/edit-comments.php0.233 s0.217 s-0.016 s3.69 MiB3.72 MiB+ 28.33 KiB
/0.286 s0.219 s-0.067 s3.6 MiB3.57 MiB- 28.66 KiB
Average 0.451 s0.373 s-0.078 s4.01 MiB4.04 MiB+ 29.33 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
PHP99.0%2,2661,05629
JavaScript0.9%2012
CSS0.1%303
Total 2,289 1,057 34

PHP Code Analysis | More results »

Lines of code 2,252
Total complexity 492
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 51

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