68% allada-tshirt-designer-for-woocommerce

Code Review | Allada T-shirt Designer for Woocommerce - Custom Product Designer for T-shirt personalization and design

WordPress plugin Allada T-shirt Designer for Woocommerce - Custom Product Designer for T-shirt personalization and design scored68%from 54 tests.

About plugin

  • Plugin page: allada-tshirt-des...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 17, 2022
  • Latest release: Dec 15, 2022
  • Number of updates: 4
  • Update frequency: every 76.8 days
  • Top authors: mano88 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,297 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.04MB] [CPU: ▼48.67ms] Passed 4 tests

Analyzing server-side resources used by Allada T-shirt Designer for Woocommerce - Custom Product Designer for T-shirt personalization and design
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.92 ▼0.5417.29 ▼26.08
Dashboard /wp-admin2.98 ▼0.3617.95 ▼48.95
Posts /wp-admin/edit.php2.99 ▼0.3719.71 ▼31.79
Add New Post /wp-admin/post-new.php2.98 ▼2.9021.10 ▼87.84
Media Library /wp-admin/upload.php2.98 ▼0.2418.54 ▼18.65

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 148 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Allada T-shirt Designer for Woocommerce - Custom Product Designer for T-shirt personalization and design
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲16113.85 ▼0.509.27 ▲7.5138.52 ▼4.33
Dashboard /wp-admin2,222 ▲455.64 ▲0.0684.04 ▼9.8544.57 ▲1.75
Posts /wp-admin/edit.php2,128 ▲252.12 ▲0.1538.29 ▲1.1236.58 ▼4.27
Add New Post /wp-admin/post-new.php1,554 ▲2822.00 ▼1.63679.51 ▼7.4759.20 ▲2.52
Media Library /wp-admin/upload.php1,430 ▲334.25 ▲0.05101.87 ▼17.2145.01 ▼1.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/allada-tshirt-designer-for-woocommerce/public/class-atd-public.php+178
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/allada-tshirt-designer-for-woocommerce/admin/partials/atd-admin-display.php
    • > /wp-content/plugins/allada-tshirt-designer-for-woocommerce/public/partials/atd-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/allada-tshirt-designer-for-woocommerce/includes/functions.php:781

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: t-shirt customizer, t-shirt designer, custom t-shirt

allada-tshirt-designer-for-woocommerce/atd.php 85% from 13 tests

The primary PHP file in "Allada T-shirt Designer for Woocommerce - Custom Product Designer for T-shirt personalization and design" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("allada-tshirt-designer-for-woocommerce.php" instead of "atd.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin89,265 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript386,14119,06536,624
JSON20023,541
CSS241,49081016,742
PHP273,4792,72110,899
SVG2901,459

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity52.89
▷ Minimum class complexity1.00
▷ Maximum class complexity261.00
Average method complexity4.97
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods249
▷ Static methods52.01%
▷ Public methods13052.21%
▷ Protected methods10.40%
▷ Private methods11847.39%
Functions48
▷ Named functions4593.75%
▷ Anonymous functions36.25%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/js/colorpicker/images/colorpicker_rgb_r.png1.04KB0.77KB▼ 26.17%
admin/js/colorpicker/images/custom_rgb_g.png1.04KB0.80KB▼ 23.67%
admin/js/colorpicker/images/custom_hsb_b.png1.07KB0.82KB▼ 23.61%
admin/js/colorpicker/images/slider.png0.31KB1.51KB0.00%
admin/js/colorpicker/images/custom_submit.png0.97KB0.99KB0.00%