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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.40ms] Passed 4 tests
Server-side resources used by WooCommerce Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.95 ▼0.05 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.95 ▼3.40 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.44 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.57 ▼14.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.70 ▲0.66 |
Server storage [IO: ▲19.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3,189 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Blocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲28 | 14.72 ▲0.37 | 2.09 ▲0.13 | 41.40 ▼2.62 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▼0.05 | 96.01 ▼7.65 | 42.88 ▼2.16 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▼0.07 | 38.01 ▼1.24 | 29.98 ▼8.28 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.11 ▲0.08 | 618.31 ▼26.44 | 63.82 ▲8.96 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▼0.03 | 98.51 ▼5.05 | 41.11 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-collection-simple-grid.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-query-4-column-product-row.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-collection-rows.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-query-product-list-with-full-product-description.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/header-centered-pattern.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/header-essential.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-collection-full-grid.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-query-product-list-with-1-1-images.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-collection-grid.php
- > /wp-content/plugins/woo-gutenberg-products-block/patterns/product-query-minimal-product-list.php
- 438× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\BlockTypes\\AbstractInnerBlock' not found in wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/CheckoutContactInformationBlock.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-gutenberg-products-block/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-gutenberg-products-block/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\AbstractCartRoute' not found in wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Routes/V1/CartExtensions.php:9
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Templates\\AbstractTemplateCompatibility' not found in wp-content/plugins/woo-gutenberg-products-block/src/Templates/SingleProductTemplateCompatibility.php:11
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\AbstractTermsRoute' not found in wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Routes/V1/ProductAttributeTerms.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-gutenberg-products-block/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\StoreApi\\Routes\\V1\\AbstractTermsRoute' not found in wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Routes/V1/ProductTags.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-gutenberg-products-block/vendor/composer/installers/src/Composer/Installers/PantheonInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\BlockTypes\\AbstractBlock' not found in wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/ProductGalleryThumbnails.php:10
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woocommerce, gutenberg, products, woo commerce, woocommerce blocks...
woo-gutenberg-products-block/woocommerce-gutenberg-products-block.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Blocks" version 11.5.4
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-gutenberg-products-block.php" instead of "woocommerce-gutenberg-products-block.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 plugin148,561 lines of code in 2,897 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
TypeScript | 1,177 | 6,901 | 10,930 | 69,559 |
PHP | 734 | 8,141 | 22,689 | 39,056 |
JavaScript | 455 | 1,402 | 3,140 | 13,459 |
Sass | 207 | 1,260 | 203 | 9,241 |
JSON | 112 | 0 | 0 | 5,466 |
Markdown | 31 | 1,380 | 0 | 4,867 |
XML | 4 | 3 | 0 | 4,196 |
JSX | 12 | 191 | 187 | 1,534 |
CSS | 116 | 0 | 0 | 610 |
SVG | 27 | 1 | 0 | 347 |
YAML | 4 | 31 | 3 | 125 |
HTML | 17 | 84 | 250 | 98 |
Bourne Shell | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 5 | |
Traits | 4 | |
Classes | 486 | |
▷ Abstract classes | 17 | 3.50% |
▷ Concrete classes | 469 | 96.50% |
▷ Final classes | 14 | 2.99% |
Methods | 2,137 | |
▷ Static methods | 304 | 14.23% |
▷ Public methods | 1,266 | 59.24% |
▷ Protected methods | 650 | 30.42% |
▷ Private methods | 221 | 10.34% |
Functions | 197 | |
▷ Named functions | 15 | 7.61% |
▷ Anonymous functions | 182 | 92.39% |
Constants | 190 | |
▷ Global constants | 5 | 2.63% |
▷ Class constants | 185 | 97.37% |
▷ Public constants | 185 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 6.28MB with 1.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pattern-placeholders/wood-home-wall-decoration-shelf-living-room.png | 636.81KB | 187.94KB | ▼ 70.49% |
assets/js/blocks/classic-template/assets/doc-image-single-product-classic-block.png | 188.40KB | 44.24KB | ▼ 76.52% |
images/pattern-placeholders/hand-made-pots.png | 122.40KB | 132.94KB | 0.00% |
images/pattern-placeholders/crafting-pots.png | 148.74KB | 162.37KB | 0.00% |
images/pattern-placeholders/table-wood-chair-floor-living-room-furniture-horizontal.png | 279.29KB | 279.30KB | 0.00% |