Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.86ms] Passed 4 tests
A check of server-side resources used by Conditional Blocks - Advanced Content Visibility Control and Full Site Editing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 40.78 ▼5.51 |
Dashboard /wp-admin | 3.42 ▲0.07 | 51.84 ▼14.64 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.87 ▼4.34 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 89.96 ▼10.93 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.60 ▲2.04 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Conditional Blocks - Advanced Content Visibility Control and Full Site Editing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲8 | 14.48 ▼0.05 | 2.00 ▲0.23 | 43.45 ▼0.56 |
Dashboard /wp-admin | 2,186 ▲12 | 5.56 ▼0.00 | 97.18 ▲9.62 | 39.10 ▼4.48 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.02 | 35.33 ▼5.75 | 35.38 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,699 ▲173 | 26.38 ▲3.14 | 718.49 ▲14.72 | 37.84 ▼22.82 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.10 | 102.70 ▼2.47 | 44.92 ▼2.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (19 tag instead of maximum 10)
conditional-blocks/conditional-blocks.php Passed 13 tests
The main file in "Conditional Blocks - Advanced Content Visibility Control and Full Site Editing" v. 3.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Conditionally change the visibility of WordPress Blocks for any reason.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin784 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 184 | 337 | 539 |
CSS | 2 | 2 | 11 | 245 |
JavaScript | 1 | 0 | 2 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 15.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin