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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.60ms] Passed 4 tests
An overview of server-side resources used by Wicked Block Conditions
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.40 ▼5.45 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.08 ▼0.72 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.39 ▲0.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.31 ▼4.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.63 ▲7.08 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Wicked Block Conditions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.18 ▼1.57 | 5.30 ▲3.42 | 39.49 ▲0.61 |
Dashboard /wp-admin | 2,209 ▲18 | 4.87 ▼0.03 | 101.73 ▼5.03 | 40.04 ▼5.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.01 | 38.36 ▼1.64 | 37.63 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,676 ▲162 | 22.01 ▲4.54 | 587.58 ▼62.00 | 57.77 ▲4.79 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▲0.05 | 97.18 ▼2.66 | 43.20 ▲0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 22× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wicked-block-conditions/classes/condition/class-query-string.php
- > /wp-content/plugins/wicked-block-conditions/classes/token/class-token-collection.php
- > /wp-content/plugins/wicked-block-conditions/classes/util/class-json-mapper.php
- > /wp-content/plugins/wicked-block-conditions/classes/token/class-token.php
- > /wp-content/plugins/wicked-block-conditions/classes/condition/class-condition.php
- > /wp-content/plugins/wicked-block-conditions/classes/condition/class-current-date.php
- > /wp-content/plugins/wicked-block-conditions/classes/rest-api/v1/class-rest-api.php
- > /wp-content/plugins/wicked-block-conditions/classes/condition/class-post-slug.php
- > /wp-content/plugins/wicked-block-conditions/classes/condition/class-user-is-logged-in.php
- > /wp-content/plugins/wicked-block-conditions/classes/util/class-util.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: conditional blocks, conditions, administration, blocks, gutenberg...
wicked-block-conditions/wicked-block-conditions.php Passed 13 tests
The primary PHP file in "Wicked Block Conditions" version 1.2.2 is used by WordPress to initiate all plugin functionality
40 characters long description:
Show or hide blocks based on conditions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,265 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 199 | 2 | 1,134 |
PHP | 22 | 418 | 791 | 994 |
CSS | 1 | 27 | 6 | 112 |
JSON | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 2 | 9.52% |
▷ Concrete classes | 19 | 90.48% |
▷ Final classes | 2 | 10.53% |
Methods | 97 | |
▷ Static methods | 16 | 16.49% |
▷ Public methods | 77 | 79.38% |
▷ Protected methods | 15 | 15.46% |
▷ Private methods | 5 | 5.15% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin