80% dresoo

Code Review | Dresoo - outfit builder for WooCommerce

WordPress plugin Dresoo - outfit builder for WooCommerce scored80%from 54 tests.

About plugin

  • Plugin page: dresoo
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2023
  • Latest release: Jan 26, 2023
  • Number of updates: 8
  • Update frequency: every 1.5 days
  • Top authors: mjonutz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /187 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.90ms] Passed 4 tests

Analyzing server-side resources used by Dresoo - outfit builder for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.28 ▼4.79
Dashboard /wp-admin3.31 ▲0.0048.25 ▼4.98
Posts /wp-admin/edit.php3.36 ▲0.0050.53 ▲1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.00105.71 ▲1.96
Media Library /wp-admin/upload.php3.23 ▲0.0035.32 ▼2.83

Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: 1 new table, 7 new options
New tables
wp_outfits
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
outfits_db_version
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Dresoo - outfit builder for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.112.06 ▲0.2042.88 ▼4.57
Dashboard /wp-admin2,209 ▲215.84 ▼0.0198.03 ▼10.2740.88 ▼4.44
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0439.98 ▼0.6835.76 ▼1.65
Add New Post /wp-admin/post-new.php1,533 ▲1423.52 ▲0.29621.93 ▼45.8053.52 ▲6.98
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0395.26 ▼2.8842.73 ▲0.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_outfits
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • outfits_db_version
    • theysaidso_admin_options

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in dresoo/assets to your readme.txt
Please take inspiration from this readme.txt

dresoo/dresoo.php Passed 13 tests

Analyzing the main PHP file in "Dresoo - outfit builder for WooCommerce" version 1.0.3
32 characters long description:
Infinite dressing possibilities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected140,688 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2433,23921,717127,208
JSON2009,186
CSS9558572,325
PHP54222451,492
SVG530463
Sass12014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes250.00%
▷ Concrete classes250.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods412.90%
▷ Protected methods2787.10%
▷ Private methods00.00%
Functions47
▷ Named functions4697.87%
▷ Anonymous functions12.13%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected