Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼3.28ms] Passed 4 tests
Server-side resources used by Upload Fields for WPForms - Drag and Drop Multiple File Upload, Image Upload, and Google Drive Upload for WPForms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.52 ▼1.69 |
Dashboard /wp-admin | 3.31 ▼0.03 | 51.62 ▼6.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.16 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 129.12 ▲30.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.83 ▼3.39 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 136 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
upwpforms_version |
Browser metrics Passed 4 tests
A check of browser resources used by Upload Fields for WPForms - Drag and Drop Multiple File Upload, Image Upload, and Google Drive Upload for WPForms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.41 | 1.64 ▲0.12 | 39.86 ▼0.93 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.01 | 91.89 ▼8.09 | 41.55 ▼5.83 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.07 | 39.15 ▼2.47 | 36.73 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.54 ▲0.13 | 871.55 ▲182.06 | 65.89 ▲11.89 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.22 ▲0.05 | 95.16 ▼11.75 | 42.27 ▼0.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- upwpforms_version
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function UPWPForms\\add_action() in wp-content/plugins/upload-fields-for-wpforms/includes/class-uploader.php:93
- > PHP Fatal error
Uncaught Error: Class 'IGDGoogle_Service' not found in wp-content/plugins/upload-fields-for-wpforms/vendors/Google-sdk/src/Google/Service/Logging.php:30
- > PHP Fatal error
Uncaught Error: Class 'IGDGoogle_Service' not found in wp-content/plugins/upload-fields-for-wpforms/vendors/Google-sdk/src/Google/Service/Drive.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/upload-fields-for-wpforms/plugin.php:17
- > PHP Fatal error
Uncaught Error: Class 'IGDGoogle_Service' not found in wp-content/plugins/upload-fields-for-wpforms/vendors/Google-sdk/src/Google/Service/Oauth2.php:29
- > PHP Fatal error
Uncaught Error: Class 'IGDGoogle_Service' not found in wp-content/plugins/upload-fields-for-wpforms/vendors/Google-sdk/src/Google/Service/FireBase.php:29
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: image upload, wpforms, uploader, form, google drive...
upload-fields-for-wpforms/plugin.php 92% from 13 tests
The main PHP script in "Upload Fields for WPForms - Drag and Drop Multiple File Upload, Image Upload, and Google Drive Upload for WPForms" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("upload-fields-for-wpforms.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin13,055 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 2,497 | 4,119 | 12,128 |
SVG | 25 | 0 | 0 | 916 |
CSS | 7 | 0 | 0 | 7 |
JavaScript | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 137 | |
▷ Abstract classes | 6 | 4.38% |
▷ Concrete classes | 131 | 95.62% |
▷ Final classes | 1 | 0.76% |
Methods | 1,268 | |
▷ Static methods | 30 | 2.37% |
▷ Public methods | 1,182 | 93.22% |
▷ Protected methods | 34 | 2.68% |
▷ Private methods | 52 | 4.10% |
Functions | 12 | |
▷ Named functions | 5 | 41.67% |
▷ Anonymous functions | 7 | 58.33% |
Constants | 70 | |
▷ Global constants | 6 | 8.57% |
▷ Class constants | 64 | 91.43% |
▷ Public constants | 64 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
28 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/audio.png | 1.02KB | 1.03KB | 0.00% |
assets/images/icons/drawing.png | 0.87KB | 0.89KB | 0.00% |
assets/images/products/integrate-google-drive.png | 8.30KB | 3.59KB | ▼ 56.74% |
assets/images/icons/powerpoint.png | 0.79KB | 0.79KB | 0.12% |
assets/images/products/dracula-dark-mode.png | 12.43KB | 7.74KB | ▼ 37.70% |