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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.54 | 17.29 ▼26.08 |
Dashboard /wp-admin | 2.98 ▼0.36 | 17.95 ▼48.95 |
Posts /wp-admin/edit.php | 2.99 ▼0.37 | 19.71 ▼31.79 |
Add New Post /wp-admin/post-new.php | 2.98 ▼2.90 | 21.10 ▼87.84 |
Media Library /wp-admin/upload.php | 2.98 ▼0.24 | 18.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲161 | 13.85 ▼0.50 | 9.27 ▲7.51 | 38.52 ▼4.33 |
Dashboard /wp-admin | 2,222 ▲45 | 5.64 ▲0.06 | 84.04 ▼9.85 | 44.57 ▲1.75 |
Posts /wp-admin/edit.php | 2,128 ▲25 | 2.12 ▲0.15 | 38.29 ▲1.12 | 36.58 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 22.00 ▼1.63 | 679.51 ▼7.47 | 59.20 ▲2.52 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.25 ▲0.05 | 101.87 ▼17.21 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 38 | 6,141 | 19,065 | 36,624 |
JSON | 2 | 0 | 0 | 23,541 |
CSS | 24 | 1,490 | 810 | 16,742 |
PHP | 27 | 3,479 | 2,721 | 10,899 |
SVG | 2 | 9 | 0 | 1,459 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 52.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 261.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 5 | 2.01% |
▷ Public methods | 130 | 52.21% |
▷ Protected methods | 1 | 0.40% |
▷ Private methods | 118 | 47.39% |
Functions | 48 | |
▷ Named functions | 45 | 93.75% |
▷ Anonymous functions | 3 | 6.25% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/colorpicker/images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
admin/js/colorpicker/images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
admin/js/colorpicker/images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |
admin/js/colorpicker/images/slider.png | 0.31KB | 1.51KB | 0.00% |
admin/js/colorpicker/images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |