Benchmarks
Plugin footprint 83% 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: ▲0.32MB] [CPU: ▼4.63ms] Passed 4 tests
Server-side resources used by Uploads for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 42.54 ▼4.34 |
Dashboard /wp-admin | 3.66 ▲0.32 | 51.96 ▼17.41 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 56.33 ▲0.78 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 103.20 ▲2.46 |
Media Library /wp-admin/upload.php | 3.52 ▲0.30 | 41.47 ▲3.22 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uploads for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.23 ▼1.15 | 1.60 ▼0.27 | 39.24 ▼4.19 |
Dashboard /wp-admin | 2,224 ▲21 | 5.91 ▲1.07 | 99.37 ▼1.56 | 43.28 ▼1.83 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.06 ▲0.01 | 40.92 ▲4.42 | 35.36 ▲1.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 17.71 ▲0.05 | 701.73 ▼52.32 | 57.51 ▼0.13 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▲0.08 | 97.44 ▼10.10 | 43.57 ▼7.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 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
9 plugin tags: upload, picture, file, image, ajax upload...
uploads-for-woocommerce/uploads-for-woocommerce.php Passed 13 tests
The primary PHP file in "Uploads for WooCommerce" version 1.0.2 is used by WordPress to initiate all plugin functionality
134 characters long description:
Let customers upload files to your WooCommerce products. Perfect for online photo or document processing services. Developer friendly.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,967 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 239 | 84 | 1,216 |
JavaScript | 2 | 18 | 8 | 364 |
CSS | 2 | 61 | 0 | 323 |
Markdown | 1 | 27 | 0 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 2 | 2.44% |
▷ Public methods | 79 | 96.34% |
▷ Protected methods | 1 | 1.22% |
▷ Private methods | 2 | 2.44% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/upload.png | 0.91KB | 1.05KB | 0.00% |
assets/images/default_thumbnail.png | 3.63KB | 1.84KB | ▼ 49.34% |