Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▼1.67MB] [CPU: ▼48.69ms] Passed 4 tests
This is a short check of server-side resources used by Organic Widget Area Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 10.00 ▼32.19 |
Dashboard /wp-admin | 2.33 ▼0.97 | 18.57 ▼34.16 |
Posts /wp-admin/edit.php | 2.33 ▼1.02 | 13.99 ▼36.76 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.55 | 12.71 ▼91.63 |
Media Library /wp-admin/upload.php | 2.33 ▼0.89 | 10.25 ▼25.72 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Organic Widget Area Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 14.35 ▲0.06 | 1.73 ▼0.23 | 39.82 ▼6.32 |
Dashboard /wp-admin | 2,220 ▲40 | 5.52 ▼0.09 | 94.56 ▲8.50 | 39.98 ▼5.32 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.03 ▲0.09 | 42.09 ▲1.81 | 35.64 ▼2.15 |
Add New Post /wp-admin/post-new.php | 6,228 ▲4,700 | 21.39 ▼1.65 | 887.73 ▲212.40 | 70.60 ▲23.49 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.28 ▲0.10 | 99.68 ▼4.53 | 45.78 ▲0.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method OWA_Block::register_widget_sidebar() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: traditional widgets, blocks, widget area, widgets, block editor...
organic-widget-area-block/organic-widget-area.php 77% from 13 tests
This is the main PHP file of "Organic Widget Area Block" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("organic-widget-area-block.php" instead of "organic-widget-area.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected481 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 79 | 186 | 243 |
JavaScript | 2 | 19 | 6 | 195 |
CSS | 2 | 0 | 1 | 43 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 7 | 43.75% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin