Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.18ms] Passed 4 tests
Server-side resources used by Upload Add-on for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 49.39 ▲8.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.23 ▼1.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 55.42 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 102.48 ▼5.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 45.43 ▲7.57 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
woo_ua_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Upload Add-on for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 14.47 ▲0.10 | 1.79 ▲0.10 | 44.87 ▼0.07 |
Dashboard /wp-admin | 2,220 ▲38 | 4.83 ▼0.03 | 108.58 ▼2.31 | 42.40 ▼4.63 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.12 ▲0.13 | 43.00 ▲1.54 | 37.29 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,525 ▲6 | 17.68 ▼5.44 | 680.96 ▼34.57 | 58.39 ▼14.16 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▼0.03 | 103.75 ▼12.82 | 58.01 ▲8.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/upload-add-on-for-woocommerce/wooua.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: uploads, addon, file upload, woocommerce file upload, woocommerce
upload-add-on-for-woocommerce/wooua.php 77% from 13 tests
The entry point to "Upload Add-on for Woocommerce" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "4.2.0")
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Name the main plugin file the same as the plugin slug ("upload-add-on-for-woocommerce.php" instead of "wooua.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin526 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 175 | 107 | 486 |
Markdown | 1 | 11 | 0 | 21 |
JavaScript | 1 | 2 | 1 | 15 |
CSS | 1 | 0 | 2 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/order-preview.PNG | 14.75KB | 8.15KB | ▼ 44.77% |
assets/img/setting-preview.PNG | 23.74KB | 11.95KB | ▼ 49.69% |
assets/img/single product preview.PNG | 12.71KB | 7.09KB | ▼ 44.19% |