Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲0.00ms] Passed 4 tests
Analyzing server-side resources used by Block Visibility — Conditional Visibility Control for the Block Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.39 | 51.05 ▲14.52 |
Dashboard /wp-admin | 3.56 ▲0.25 | 46.95 ▲1.50 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 46.20 ▲0.86 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 81.44 ▼4.84 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 34.77 ▲2.48 |
Block Visibility /wp-admin/options-general.php?page=block-visibility-settings | 3.48 | 34.86 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Block Visibility — Conditional Visibility Control for the Block Editor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.08 ▼0.19 | 2.34 ▲0.57 | 44.08 ▲3.15 |
Dashboard /wp-admin | 2,193 ▲16 | 5.53 ▼0.17 | 83.25 ▼3.52 | 40.26 ▼1.09 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.01 | 34.03 ▲0.08 | 35.48 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,703 ▲175 | 25.88 ▲2.79 | 692.91 ▲21.80 | 37.04 ▼19.31 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.02 | 98.05 ▲0.57 | 43.74 ▼1.57 |
Block Visibility /wp-admin/options-general.php?page=block-visibility-settings | 1,124 | 10.40 | 256.36 | 55.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: visibility, conditional blocks, restrict blocks, dynamic content, conditional content
block-visibility/block-visibility.php Passed 13 tests
Analyzing the main PHP file in "Block Visibility — Conditional Visibility Control for the Block Editor" version 3.1.2
82 characters long description:
Provides visibility controls and scheduling functionality to all WordPress blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin7,047 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 2,015 | 3,270 | 7,009 |
JavaScript | 2 | 0 | 32 | 35 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 109.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 358.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 111 | |
▷ Static methods | 7 | 6.31% |
▷ Public methods | 48 | 43.24% |
▷ Protected methods | 60 | 54.05% |
▷ Private methods | 3 | 2.70% |
Functions | 146 | |
▷ Named functions | 143 | 97.95% |
▷ Anonymous functions | 3 | 2.05% |
Constants | 60 | |
▷ Global constants | 8 | 13.33% |
▷ Class constants | 52 | 86.67% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin