Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.76ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Product Design
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.03 | 41.23 ▼6.22 |
Dashboard /wp-admin | 3.66 ▲0.10 | 58.27 ▲0.47 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 50.60 ▼5.50 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.03 | 91.93 ▼7.77 |
Media Library /wp-admin/upload.php | 3.52 ▲0.03 | 39.35 ▲4.78 |
Server storage [IO: ▲19.37MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 360 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Product Design
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.27 ▼0.25 | 1.84 ▼0.23 | 46.71 ▲1.13 |
Dashboard /wp-admin | 2,201 ▲21 | 5.60 ▼0.07 | 87.34 ▼1.92 | 45.26 ▲2.89 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.00 ▼0.00 | 36.17 ▼5.70 | 37.02 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,555 ▲24 | 23.54 ▲0.19 | 663.50 ▼8.60 | 53.86 ▲1.70 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.20 ▼0.02 | 97.34 ▲1.09 | 43.16 ▼0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 items
- 179× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 78
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/woo-product-design/domPDF/phenx/php-svg-lib/src/Svg/Tag/RadialGradient.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Header' not found in wp-content/plugins/woo-product-design/domPDF/phenx/php-font-lib/src/FontLib/EOT/Header.php:21
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 52
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/src/FrameDecorator/ListBullet.php:19
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/lib/php-font-lib/src/FontLib/Autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/autoload.inc.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/woo-product-design/domPDF/phenx/php-font-lib/src/FontLib/Table/DirectoryEntry.php:19
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 84
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/src/FrameDecorator/TableRowGroup.php:20
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/woo-product-design/domPDF/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 53
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== woo-product-design ===
)
woo-product-design/woocommerce-product-design.php 92% from 13 tests
"Woocommerce Product Design" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-product-design.php" instead of "woocommerce-product-design.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin108,767 lines of code in 226 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 10,468 | 19,954 | 56,075 |
PHP | 175 | 8,495 | 13,067 | 34,507 |
JSON | 7 | 0 | 0 | 14,116 |
CSS | 14 | 120 | 75 | 2,664 |
SVG | 3 | 0 | 0 | 961 |
Markdown | 4 | 81 | 0 | 214 |
HTML | 2 | 14 | 8 | 165 |
XML | 2 | 1 | 0 | 34 |
YAML | 2 | 8 | 0 | 31 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 653)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 36.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 766.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 653.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 159 | |
▷ Abstract classes | 6 | 3.77% |
▷ Concrete classes | 153 | 96.23% |
▷ Final classes | 1 | 0.65% |
Methods | 1,700 | |
▷ Static methods | 76 | 4.47% |
▷ Public methods | 1,463 | 86.06% |
▷ Protected methods | 176 | 10.35% |
▷ Private methods | 61 | 3.59% |
Functions | 35 | |
▷ Named functions | 15 | 42.86% |
▷ Anonymous functions | 20 | 57.14% |
Constants | 149 | |
▷ Global constants | 2 | 1.34% |
▷ Class constants | 147 | 98.66% |
▷ Public constants | 147 | 100.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
24 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/customizer/images/select4.png | 0.19KB | 0.15KB | ▼ 20.10% |
assets/customizer/images/grid.png | 2.69KB | 0.13KB | ▼ 95.17% |
assets/customizer/images/overlay.png | 8.91KB | 8.24KB | ▼ 7.55% |
assets/customizer/images/select_hue.png | 0.56KB | 1.43KB | 0.00% |
assets/customizer/images/select3.png | 0.23KB | 0.17KB | ▼ 24.46% |