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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.29 | 37.76 ▲16.82 |
Dashboard /wp-admin | 3.23 ▲0.18 | 43.18 ▲1.15 |
Posts /wp-admin/edit.php | 3.34 ▲0.24 | 45.18 ▲2.12 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 84.18 ▼566.99 |
Media Library /wp-admin/upload.php | 3.18 ▲0.17 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,687 ▲91 | 15.81 ▲0.31 | 8.19 ▼0.07 | 42.80 ▼1.34 |
Dashboard /wp-admin | 2,981 ▲50 | 6.02 ▲0.02 | 138.23 ▼2.21 | 111.00 ▼4.52 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.70 ▲0.02 | 65.79 ▲3.19 | 93.53 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,677 ▲179 | 18.87 ▲0.09 | 364.43 ▼7.26 | 105.36 ▼9.96 |
Media Library /wp-admin/upload.php | 1,756 ▼51 | 5.01 ▼0.02 | 150.08 ▼1.50 | 119.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 1,849 | 954 | 8,726 |
CSS | 8 | 310 | 262 | 7,988 |
PHP | 6 | 622 | 50 | 1,139 |
SVG | 1 | 0 | 0 | 229 |
PO File | 1 | 80 | 105 | 220 |
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 code | 0.36 |
Average class complexity | 37.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 27 | 90.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/getpro_small.png | 52.16KB | 18.73KB | ▼ 64.09% |
core/designer/tdesignAPI/images/Images/Halloween_H_5.png | 93.94KB | 41.74KB | ▼ 55.57% |
core/designer/tdesignAPI/images/Images/cgbug_Halloween_Tombstone_Angry_Face.png | 67.81KB | 37.06KB | ▼ 45.35% |
core/designer/tdesignAPI/images/Images/1284953487.png | 62.26KB | 37.26KB | ▼ 40.15% |
core/designer/tdesignAPI/css/images/ui-icons_222222_256x240.png | 3.69KB | 4.18KB | 0.00% |