Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.44ms] Passed 4 tests
An overview of server-side resources used by Dastomize - Advanced Interactive Product Designer & Personalizer for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.21 ▲2.15 |
Dashboard /wp-admin | 3.42 ▲0.07 | 47.66 ▼21.08 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.88 ▼4.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.29 ▼10.63 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.02 ▲2.86 |
Server storage [IO: ▲7.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,701 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dastomize - Advanced Interactive Product Designer & Personalizer for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.55 ▲0.13 | 1.75 ▲0.05 | 53.26 ▲10.65 |
Dashboard /wp-admin | 2,226 ▲49 | 5.59 ▲0.03 | 89.78 ▼5.46 | 71.40 ▲29.10 |
Posts /wp-admin/edit.php | 2,140 ▲37 | 2.01 ▼0.03 | 36.08 ▲0.55 | 34.55 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 18.45 ▼4.57 | 655.39 ▼73.95 | 179.23 ▲117.11 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.23 ▲0.04 | 102.00 ▼11.39 | 77.30 ▲30.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dastomize/vendor/symfony/translation/Resources/bin/translation-status.php
- 409× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/dastomize/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/dastomize/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php:36
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dastomize/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Prophecy\\Argument\\Token\\TokenInterface' not found in wp-content/plugins/dastomize/vendor/google/cloud-core/src/Testing/ArrayHasSameValuesToken.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Event\\SubscriberInterface' not found in wp-content/plugins/dastomize/vendor/google/auth/src/Subscriber/AuthTokenSubscriber.php:37
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/dastomize/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/dastomize/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Cloud\\Core\\Testing\\TestHelpers' not found in wp-content/plugins/dastomize/vendor/google/cloud-core/system-bootstrap.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\Factory' not found in wp-content/plugins/dastomize/vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php:225
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/dastomize/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in dastomize/assets to your readme.txt
dastomize/dastomize.php 85% from 13 tests
The main PHP script in "Dastomize - Advanced Interactive Product Designer & Personalizer for WooCommerce" version 1.0.19 is automatically included on every request by WordPress
It is important to fix the following:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 80 characters long)
- Description: Please don't use more than 140 characters for the plugin description (currently 279 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/dastomize/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,325 | 13,845 | 52,257 | 67,443 |
JSON | 32 | 0 | 0 | 7,292 |
Markdown | 39 | 1,809 | 0 | 5,332 |
XSD | 3 | 92 | 48 | 2,803 |
JavaScript | 10 | 252 | 353 | 973 |
CSS | 7 | 48 | 53 | 816 |
YAML | 6 | 45 | 2 | 154 |
C | 2 | 35 | 70 | 132 |
make | 3 | 24 | 16 | 67 |
XML | 1 | 0 | 0 | 46 |
Vuejs Component | 2 | 8 | 0 | 38 |
m4 | 1 | 11 | 14 | 38 |
HTML | 2 | 0 | 0 | 32 |
C/C++ Header | 1 | 10 | 18 | 25 |
Bourne Shell | 1 | 4 | 16 | 14 |
SVG | 2 | 0 | 2 | 14 |
Dockerfile | 1 | 8 | 0 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 91 | |
Interfaces | 79 | |
Traits | 71 | |
Classes | 495 | |
▷ Abstract classes | 22 | 4.44% |
▷ Concrete classes | 473 | 95.56% |
▷ Final classes | 81 | 17.12% |
Methods | 4,279 | |
▷ Static methods | 670 | 15.66% |
▷ Public methods | 3,448 | 80.58% |
▷ Protected methods | 320 | 7.48% |
▷ Private methods | 511 | 11.94% |
Functions | 620 | |
▷ Named functions | 197 | 31.77% |
▷ Anonymous functions | 423 | 68.23% |
Constants | 347 | |
▷ Global constants | 28 | 8.07% |
▷ Class constants | 319 | 91.93% |
▷ Public constants | 285 | 89.34% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 1.44MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-dastomize.png | 273.52KB | 118.58KB | ▼ 56.65% |
assets/images/dastomize-congratulation.png | 241.47KB | 240.69KB | 0.32% |
assets/images/cubebik-integration.png | 25.05KB | 21.75KB | ▼ 13.21% |
assets/images/support-icon.png | 39.03KB | 14.16KB | ▼ 63.71% |
assets/images/icons-linkedin.png | 0.48KB | 0.50KB | 0.00% |