Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method WPMFU_Init::on_activate() should not be called statically
Server metrics [RAM: ▲0.07MB] [CPU: ▼137.27ms] Passed 4 tests
A check of server-side resources used by WP Multi File Uploader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 47.84 ▲10.68 |
Dashboard /wp-admin | 3.14 ▲0.08 | 49.09 ▲7.54 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 49.43 ▲5.20 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 100.63 ▼563.53 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.77 ▲1.70 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Multi File Uploader: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲224 | 16.41 ▲0.82 | 11.86 ▲2.63 | 56.73 ▲1.56 |
Dashboard /wp-admin | 2,979 ▲48 | 6.24 ▲0.09 | 144.09 ▼10.58 | 110.59 ▼11.45 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.68 ▼0.00 | 69.20 ▼2.43 | 94.39 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,683 ▲11 | 18.39 ▼0.46 | 390.75 ▲7.95 | 114.67 ▼1.35 |
Media Library /wp-admin/upload.php | 1,813 ▲6 | 5.08 ▲0.07 | 149.93 ▼2.72 | 124.97 ▲7.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method WPMFU_Init::on_deactivate() should not be called statically
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPMFU_Plugin' not found in wp-content/plugins/wp-multi-file-uploader/classes/class-wpmfu-file-upload-handler.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPMFU_HTML' not found in wp-content/plugins/wp-multi-file-uploader/classes/class.wpmfu-form-builder.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multi-file-uploader/inc/wpmfu-post-type.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multi-file-uploader/classes/class-wpmfu-plugin.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multi-file-uploader/classes/class-wpmfu-plugin.php:32
- > PHP Fatal error
Uncaught Error: Class 'WPMFU_Plugin' not found in wp-content/plugins/wp-multi-file-uploader/classes/class.wpmfu-html.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #0, #0 in wp-multi-file-uploader/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-multi-file-uploader ===
) - Screenshots: These screenshots do not have images: #1 (/assets/screenshot1.png), #2 (/assets/screenshot2.png)
wp-multi-file-uploader/wp-multi-file-uploader.php 92% from 13 tests
"WP Multi File Uploader" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,146 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 421 | 263 | 2,436 |
PHP | 7 | 121 | 280 | 490 |
Sass | 3 | 28 | 0 | 171 |
Markdown | 1 | 12 | 0 | 47 |
CSS | 2 | 0 | 0 | 2 |
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.20 |
Average class complexity | 8.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 1 | 2.78% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 24.50KB | 6.97KB | ▼ 71.56% |
screenshot-1.png | 16.97KB | 3.28KB | ▼ 80.65% |