Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.45MB] [CPU: ▼293.63ms] 75% from 4 tests
Analyzing server-side resources used by Drag and Drop & Multiple Image Uploads With Preview For WPForms
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,753.94ms on /wp-admin/admin.php?page=multiple-image-uploads-with-preview-for-wpforms)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.55 | 58.24 ▲11.46 |
Dashboard /wp-admin | 3.91 ▲0.50 | 36.49 ▲3.11 |
Posts /wp-admin/edit.php | 4.13 ▲0.49 | 38.94 ▼0.31 |
Add New Post /wp-admin/post-new.php | 7.38 ▲0.41 | 96.06 ▼1,178.09 |
Media Library /wp-admin/upload.php | 3.70 ▲0.41 | 25.16 ▲0.78 |
Multiple image uploads with preview for WPForms /wp-admin/admin.php?page=multiple-image-uploads-with-preview-for-wpforms | 4.06 | 1,753.94 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 4.05 | 25.98 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 186 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Drag and Drop & Multiple Image Uploads With Preview For WPForms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,981 ▲259 | 16.78 ▲0.80 | 21.67 ▲15.86 | 2.73 ▲0.17 |
Dashboard /wp-admin | 2,940 ▲82 | 6.16 ▼0.02 | 123.94 ▼6.90 | 169.74 ▲11.17 |
Posts /wp-admin/edit.php | 2,736 ▲42 | 3.23 ▲0.01 | 61.63 ▼2.45 | 152.27 ▲7.02 |
Add New Post /wp-admin/post-new.php | 1,688 ▼32 | 18.40 ▼2.33 | 371.50 ▼65.18 | 154.30 ▼3.07 |
Media Library /wp-admin/upload.php | 1,746 ▲45 | 5.53 ▼0.02 | 146.69 ▲7.42 | 197.08 ▲11.22 |
Multiple image uploads with preview for WPForms /wp-admin/admin.php?page=multiple-image-uploads-with-preview-for-wpforms | 1,284 | 2.46 | 54.98 | 184.27 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,430 | 2.61 | 54.41 | 112.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 4 options in the database
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/ajax-loader.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WPForms_Field' not found in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/includes/fields/class-miuwp-wpf-upload-file.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/multiple-image-uploads-with-preview-for-wpforms/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #1, #2, #3 in multiple-image-uploads-with-preview-for-wpforms/assets to your readme.txt
- Donate link: Please fix this invalid url: ""
multiple-image-uploads-with-preview-for-wpforms/multiple-image-uploads-with-preview-for-wpforms.php 77% from 13 tests
The entry point to "Drag and Drop & Multiple Image Uploads With Preview For WPForms" version 1.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/lang")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 5.2")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin46,873 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 7,506 | 16,621 | 32,106 |
JavaScript | 11 | 2,812 | 1,656 | 13,395 |
CSS | 13 | 124 | 44 | 1,131 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 91.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,179 | |
▷ Static methods | 177 | 15.01% |
▷ Public methods | 818 | 69.38% |
▷ Protected methods | 25 | 2.12% |
▷ Private methods | 336 | 28.50% |
Functions | 99 | |
▷ Named functions | 95 | 95.96% |
▷ Anonymous functions | 4 | 4.04% |
Constants | 130 | |
▷ Global constants | 105 | 80.77% |
▷ Class constants | 25 | 19.23% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |