Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.15ms] Passed 4 tests
An overview of server-side resources used by Gutenberg Block for WooCommerce Product Table
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.03 | 47.04 ▼7.04 |
Dashboard /wp-admin | 3.59 ▲0.03 | 56.36 ▲2.95 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 49.28 ▼5.51 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.03 | 96.66 ▼0.79 |
Media Library /wp-admin/upload.php | 3.52 ▲0.03 | 40.60 ▲0.75 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Gutenberg Block for WooCommerce Product Table
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.23 ▼0.15 | 2.08 ▲0.39 | 45.99 ▲4.86 |
Dashboard /wp-admin | 2,195 ▲18 | 5.66 ▲0.11 | 97.10 ▲4.61 | 41.57 ▼1.29 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.02 | 38.24 ▼5.49 | 33.67 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,545 ▼4 | 23.13 ▼0.05 | 645.31 ▼73.30 | 58.26 ▲6.25 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.31 ▲0.09 | 100.24 ▼9.94 | 42.06 ▼6.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Barn2\\Plugin\\WC_Product_Table_Block\\add_action() in wp-content/plugins/block-for-woo-product-table/src/class-compat.php:154
- > PHP Fatal error
Uncaught Error: Call to undefined function Barn2\\Plugin\\WC_Product_Table_Block\\add_action() in wp-content/plugins/block-for-woo-product-table/src/class-plugin.php:173
- > PHP Fatal error
Uncaught Error: Call to undefined function Barn2\\Plugin\\WC_Product_Table_Block\\add_action() in wp-content/plugins/block-for-woo-product-table/src/class-block.php:312
- > PHP Fatal error
Uncaught Error: Call to undefined function Barn2\\Plugin\\WC_Product_Table_Block\\add_action() in wp-content/plugins/block-for-woo-product-table/src/class-rest.php:111
- > PHP Fatal error
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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: order form, product table, block, blocks, gutenberg block
block-for-woo-product-table/block-for-woo-product-table.php 77% from 13 tests
The main file in "Gutenberg Block for WooCommerce Product Table" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.3" instead of "3.7")
- Git Repository: Please do not include Git repositories in your plugin
- Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,588 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 262 | 65 | 1,272 |
CSS | 2 | 0 | 3 | 499 |
PHP | 5 | 176 | 215 | 404 |
Sass | 1 | 60 | 1 | 366 |
YAML | 2 | 0 | 0 | 32 |
JSON | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 18 | 58.06% |
▷ Public methods | 25 | 80.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 19.35% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-2.png | 91.70KB | 90.26KB | ▼ 1.57% |
.wordpress-org/icon-256x256.png | 2.14KB | 2.20KB | 0.00% |
assets/images/block-preview.png | 43.32KB | 38.99KB | ▼ 9.98% |
.wordpress-org/banner-772x250.png | 12.82KB | 13.31KB | 0.00% |
.wordpress-org/banner-1544x500.png | 23.76KB | 24.26KB | 0.00% |