Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.36ms] Passed 4 tests
Server-side resources used by Awesome blocks for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.83 ▼1.70 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.28 ▲1.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.53 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.05 ▼11.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.05 ▼2.21 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Awesome blocks for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.24 ▼0.11 | 1.94 ▲0.03 | 46.15 ▲1.08 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.09 | 91.98 ▼5.49 | 38.54 ▼1.39 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.02 | 36.58 ▼4.73 | 30.87 ▼5.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.63 ▲0.50 | 657.70 ▼44.75 | 57.07 ▼5.05 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.23 ▲0.03 | 99.17 ▼4.61 | 41.86 ▼5.08 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in woo-blocks/assets to your readme.txt
woo-blocks/jms-wooblocks.php 85% from 13 tests
The main PHP script in "Awesome blocks for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-blocks.php" instead of "jms-wooblocks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin915 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 176 | 356 | 877 |
JavaScript | 13 | 6 | 61 | 23 |
JSON | 6 | 0 | 0 | 12 |
CSS | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 8 | 17.78% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 6 | 13.33% |
▷ Private methods | 1 | 2.22% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
PNG images were not found in this plugin