88% woo-shirt-product-designer

Code Review | Shirt Product Designer for WooCommerce

WordPress plugin Shirt Product Designer for WooCommerce scored 88% from 54 tests.

About plugin

  • Plugin page: woo-shirt-product...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Aug 12, 2019
  • Latest release: Oct 10, 2020
  • Number of updates: 32
  • Update frequency: every 13.3 days
  • Top authors: mlfactory (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,304 total downloads

Benchmarks

Plugin footprint Passed 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.19MB] [CPU: ▼141.34ms] Passed 4 tests

This is a short check of server-side resources used by Shirt Product Designer for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.2937.76 ▲16.82
Dashboard /wp-admin3.23 ▲0.1843.18 ▲1.15
Posts /wp-admin/edit.php3.34 ▲0.2445.18 ▲2.12
Add New Post /wp-admin/post-new.php5.59 ▲0.1684.18 ▼566.99
Media Library /wp-admin/upload.php3.18 ▲0.1731.61 ▼1.62

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 141 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Shirt Product Designer for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,687 ▲9115.81 ▲0.318.19 ▼0.0742.80 ▼1.34
Dashboard /wp-admin2,981 ▲506.02 ▲0.02138.23 ▼2.21111.00 ▼4.52
Posts /wp-admin/edit.php2,746 ▲72.70 ▲0.0265.79 ▲3.1993.53 ▲0.97
Add New Post /wp-admin/post-new.php1,677 ▲17918.87 ▲0.09364.43 ▼7.26105.36 ▼9.96
Media Library /wp-admin/upload.php1,756 ▼515.01 ▼0.02150.08 ▼1.50119.15 ▲3.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-shirt-product-designer/core/designer/tdesignAPI/index.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-shirt-product-designer/core/inc/spdfw_backend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-shirt-product-designer/core/inc/spdfw_product_tab.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product_Data_Store_CPT' not found in wp-content/plugins/woo-shirt-product-designer/core/inc/spdfw_datastore_class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: tshirt designer, product designer, designer, product builder, woocommerce

woo-shirt-product-designer/woo-shirt-product-designer.php Passed 13 tests

The main file in "Shirt Product Designer for WooCommerce" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
Simple / Modern / Fast T-Shirt - Product Designer for WooCommerce with a lot nice features.

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 detected18,302 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript221,8499548,726
CSS83102627,988
PHP6622501,139
SVG100229
PO File180105220

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity37.25
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods2790.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
88 PNG files occupy 6.12MB with 2.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/img/getpro_small.png52.16KB18.73KB▼ 64.09%
core/designer/tdesignAPI/images/Images/Halloween_H_5.png93.94KB41.74KB▼ 55.57%
core/designer/tdesignAPI/images/Images/cgbug_Halloween_Tombstone_Angry_Face.png67.81KB37.06KB▼ 45.35%
core/designer/tdesignAPI/images/Images/1284953487.png62.26KB37.26KB▼ 40.15%
core/designer/tdesignAPI/css/images/ui-icons_222222_256x240.png3.69KB4.18KB0.00%