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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.28MB] [CPU: ▲24.40ms] Passed 4 tests
An overview of server-side resources used by Wordpress File Upload
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.76 ▲4.30 | 64.80 ▲21.77 |
Dashboard /wp-admin | 7.59 ▲4.28 | 69.42 ▲23.03 |
Posts /wp-admin/edit.php | 7.64 ▲4.28 | 78.02 ▲27.44 |
Add New Post /wp-admin/post-new.php | 10.17 ▲4.28 | 122.34 ▲26.63 |
Media Library /wp-admin/upload.php | 7.51 ▲4.28 | 65.16 ▲26.18 |
Wordpress File Upload /wp-admin/options-general.php?page=wordpress_file_upload | 7.51 | 384.07 |
Server storage [IO: ▲4.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 135 new files
Database: 3 new tables, 15 new options
New tables |
---|
wp_wfu_dbxqueue |
wp_wfu_userdata |
wp_wfu_log |
New WordPress options |
---|
db_upgraded |
wfu_environment_variables |
wfu_userstate_list_last_check |
wordpress_file_upload_last_idlog |
widget_theysaidso_widget |
widget_wordpress_file_upload_widget |
can_compress_scripts |
wordpress_file_upload_table_dbxqueue_version |
wfu_userstate_peyyxg6jd6fl8mj7wm9hmz9mn8z14gtd |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Wordpress File Upload: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,987 ▲225 | 13.58 ▼0.85 | 11.51 ▲9.71 | 35.40 ▼9.57 |
Dashboard /wp-admin | 2,235 ▲61 | 5.61 ▼0.07 | 94.97 ▼7.58 | 42.81 ▲0.72 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.01 ▲0.03 | 39.73 ▲3.86 | 34.88 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,556 ▲31 | 22.70 ▼0.49 | 680.56 ▲13.62 | 52.59 ▲2.08 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.19 ▼0.04 | 97.46 ▼5.26 | 42.62 ▼4.04 |
Wordpress File Upload /wp-admin/options-general.php?page=wordpress_file_upload | 1,659 | 2.07 | 30.54 | 36.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 3 tables
- wp_wfu_dbxqueue
- wp_wfu_log
- wp_wfu_userdata
- This plugin did not uninstall successfully, leaving 15 options in the database
- wfu_userstate_list
- widget_recent-posts
- can_compress_scripts
- wordpress_file_upload_table_log_version
- wordpress_file_upload_table_dbxqueue_version
- widget_theysaidso_widget
- widget_wordpress_file_upload_widget
- wfu_userstate_list_last_check
- wordpress_file_upload_table_userdata_version
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WFU_Original_Template' not found in wp-content/plugins/wp-file-upload/templates/uploader-Custom1.php:13
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/wp-file-upload/vendor/minifier/path-converter/src/NoConverter.php:14
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/JS.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/wp-file-upload/wordpress_file_upload.php:44
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/CSS.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-file-upload/lib/wfu_constants.php:15
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/Exceptions/IOException.php:20
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/Exceptions/BasicException.php:22
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/wp-file-upload/vendor/minifier/minify/src/Exceptions/FileImportException.php:20
- > PHP Warning
Use of undefined constant ABSWPFILEUPLOAD_DIR - assumed 'ABSWPFILEUPLOAD_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-file-upload/lib/wfu_security.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (A screenshot of the plugin in its most simple form.), #2 (A screenshot of the plugin showing the progress bar.), #3 (A screenshot of the plugin showing the successful upload message.), #4 (A screenshot of the plugin with additional form fields.), #5 (A screenshot of the plugin with subfolder selection.), #6 (A screenshot of the plugin in a sidebar.), #7 (A screenshot of the shortcode composer.), #8 (A screenshot of the file browser.)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-file-upload/wordpress_file_upload.php 92% from 13 tests
The main PHP script in "Wordpress File Upload" version 4.24.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-file-upload.php" instead of "wordpress_file_upload.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin31,925 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,812 | 10,484 | 20,444 |
PO File | 14 | 3,428 | 3,538 | 10,503 |
CSS | 9 | 32 | 40 | 588 |
SVG | 4 | 223 | 1 | 250 |
JavaScript | 5 | 18 | 14 | 140 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 25.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 3 | 21.43% |
▷ Concrete classes | 11 | 78.57% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 3 | 2.91% |
▷ Public methods | 61 | 59.22% |
▷ Protected methods | 38 | 36.89% |
▷ Private methods | 4 | 3.88% |
Functions | 434 | |
▷ Named functions | 423 | 97.47% |
▷ Anonymous functions | 11 | 2.53% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.21MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add_16.png | 0.40KB | 0.39KB | ▼ 2.67% |
images/add_12.png | 0.20KB | 0.15KB | ▼ 25.25% |
vendor/jquery/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/Version Comparison.png | 174.57KB | 54.77KB | ▼ 68.62% |
images/remove_16.png | 0.74KB | 0.82KB | 0.00% |