67% dastomize

Code Review | Dastomize - Advanced Interactive Product Designer & Personalizer for WooCommerce

WordPress plugin Dastomize - Advanced Interactive Product Designer & Personalizer for WooCommerce scored67%from 54 tests.

About plugin

  • Plugin page: dastomize
  • Plugin version: 1.0.19
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 124
  • Update frequency: every 5.5 days
  • Top authors: dasble (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /4,911 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.21 ▲2.15
Dashboard /wp-admin3.42 ▲0.0747.66 ▼21.08
Posts /wp-admin/edit.php3.47 ▲0.1146.88 ▼4.21
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.29 ▼10.63
Media Library /wp-admin/upload.php3.28 ▲0.0538.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.55 ▲0.131.75 ▲0.0553.26 ▲10.65
Dashboard /wp-admin2,226 ▲495.59 ▲0.0389.78 ▼5.4671.40 ▲29.10
Posts /wp-admin/edit.php2,140 ▲372.01 ▼0.0336.08 ▲0.5534.55 ▼0.14
Add New Post /wp-admin/post-new.php1,574 ▲4818.45 ▼4.57655.39 ▼73.95179.23 ▲117.11
Media Library /wp-admin/upload.php1,437 ▲404.23 ▲0.04102.00 ▼11.3977.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

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
Please take inspiration from this 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
85,233 lines of code in 1,439 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,32513,84552,25767,443
JSON32007,292
Markdown391,80905,332
XSD392482,803
JavaScript10252353973
CSS74853816
YAML6452154
C23570132
make3241667
XML10046
Vuejs Component28038
m41111438
HTML20032
C/C++ Header1101825
Bourne Shell141614
SVG20214
Dockerfile18010
DOS Batch1004

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 code0.40
Average class complexity10.27
▷ Minimum class complexity1.00
▷ Maximum class complexity296.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity138.00
Code structure
Namespaces91
Interfaces79
Traits71
Classes495
▷ Abstract classes224.44%
▷ Concrete classes47395.56%
▷ Final classes8117.12%
Methods4,279
▷ Static methods67015.66%
▷ Public methods3,44880.58%
▷ Protected methods3207.48%
▷ Private methods51111.94%
Functions620
▷ Named functions19731.77%
▷ Anonymous functions42368.23%
Constants347
▷ Global constants288.07%
▷ Class constants31991.93%
▷ Public constants28589.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
FileSize - originalSize - compressedSavings
assets/images/logo-dastomize.png273.52KB118.58KB▼ 56.65%
assets/images/dastomize-congratulation.png241.47KB240.69KB0.32%
assets/images/cubebik-integration.png25.05KB21.75KB▼ 13.21%
assets/images/support-icon.png39.03KB14.16KB▼ 63.71%
assets/images/icons-linkedin.png0.48KB0.50KB0.00%