Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/file-uploader-for-woocommerce/src/Models/class-optionsmodel.php+244
Invalid argument supplied for foreach()
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.60ms] Passed 4 tests
A check of server-side resources used by File Uploader for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.77 ▼7.46 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.20 ▼17.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.47 ▼0.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.43 ▼17.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.31 ▲1.35 |
Server storage [IO: ▲2.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 175 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for File Uploader for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.12 | 1.66 ▼0.49 | 39.93 ▼13.25 |
Dashboard /wp-admin | 2,206 ▲15 | 5.86 ▼0.01 | 102.55 ▲0.41 | 37.92 ▼3.67 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.06 | 38.54 ▲0.43 | 35.38 ▲4.83 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.26 ▲4.82 | 673.71 ▲20.59 | 63.97 ▲8.48 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.18 ▼0.23 | 96.13 ▼7.30 | 43.43 ▼3.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 53× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\MessageFormatterInterface' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/guzzle/src/MessageFormatter.php:38
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/psr/http-client/src/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/file-uploader-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 17 tag instead of maximum 10
file-uploader-for-woocommerce/file-uploader-woocommerce.php 92% from 13 tests
"File Uploader for WooCommerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("file-uploader-for-woocommerce.php" instead of "file-uploader-woocommerce.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
Good job! No executable or dangerous file extensions detected16,031 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 2,292 | 6,483 | 11,319 |
Markdown | 15 | 1,278 | 0 | 3,664 |
JSON | 9 | 0 | 0 | 1,040 |
YAML | 1 | 0 | 0 | 7 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 89 | |
▷ Abstract classes | 1 | 1.12% |
▷ Concrete classes | 88 | 98.88% |
▷ Final classes | 36 | 40.91% |
Methods | 814 | |
▷ Static methods | 151 | 18.55% |
▷ Public methods | 681 | 83.66% |
▷ Protected methods | 20 | 2.46% |
▷ Private methods | 113 | 13.88% |
Functions | 130 | |
▷ Named functions | 39 | 30.00% |
▷ Anonymous functions | 91 | 70.00% |
Constants | 69 | |
▷ Global constants | 2 | 2.90% |
▷ Class constants | 67 | 97.10% |
▷ Public constants | 56 | 83.58% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin