Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.09ms] Passed 4 tests
A check of server-side resources used by Block Conditions - Hide WordPress block for various conditions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 33.87 ▼6.37 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.36 ▼2.82 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.65 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.08 ▼7.03 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.40 ▲6.25 |
Block Conditions /wp-admin/options-general.php?page=block-conditions | 3.28 | 34.41 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Block Conditions - Hide WordPress block for various conditions: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,015 ▲280 | 23.12 ▲8.45 | 5.04 ▲3.26 | 40.62 ▼8.82 |
Dashboard /wp-admin | 2,307 ▲122 | 12.35 ▲6.49 | 292.36 ▲190.38 | 41.85 ▼1.03 |
Posts /wp-admin/edit.php | 2,186 ▲97 | 11.93 ▲9.87 | 86.72 ▲47.53 | 30.45 ▼7.33 |
Add New Post /wp-admin/post-new.php | 1,685 ▲148 | 24.43 ▲6.18 | 512.82 ▼95.05 | 36.28 ▼12.80 |
Media Library /wp-admin/upload.php | 1,510 ▲122 | 12.54 ▲8.33 | 143.77 ▲33.66 | 40.67 ▼2.59 |
Block Conditions /wp-admin/options-general.php?page=block-conditions | 951 | 11.54 | 83.67 | 25.89 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/block-conditions/admin/partials/block-conditions-admin-display.php
- > /wp-content/plugins/block-conditions/public/partials/block-conditions-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: visibility, restrict blocks, responsive, conditional blocks, conditional content...
block-conditions/block-conditions.php 92% from 13 tests
The primary PHP file in "Block Conditions - Hide WordPress block for various conditions" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin22,217 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,795 | 2,487 | 21,859 |
PHP | 12 | 150 | 558 | 332 |
CSS | 2 | 3 | 8 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin