Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/filesfm-file-upload-form/files-fm-file-upload-form.php+29
Function create_function() is deprecated
Server metrics [RAM: ▼1.62MB] [CPU: ▼184.84ms] Passed 4 tests
Server-side resources used by Customizable File Upload Form with Backend Cloud Storage
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.01 ▼0.82 | 6.41 ▼27.36 |
Dashboard /wp-admin | 2.03 ▼1.02 | 6.20 ▼37.53 |
Posts /wp-admin/edit.php | 2.03 ▼1.08 | 5.58 ▼37.16 |
Add New Post /wp-admin/post-new.php | 2.03 ▼3.40 | 5.85 ▼637.32 |
Media Library /wp-admin/upload.php | 2.03 ▼0.97 | 5.80 ▼25.28 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_filesfmupload_widget_idbase |
Browser metrics Passed 4 tests
Customizable File Upload Form with Backend Cloud Storage: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 16.29 ▲0.54 | 9.52 ▲0.85 | 47.65 ▲0.14 |
Dashboard /wp-admin | 3,007 ▲73 | 5.91 ▼0.07 | 144.93 ▲4.42 | 106.88 ▼10.23 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.73 ▲0.01 | 67.29 ▲1.04 | 85.26 ▼13.11 |
Add New Post /wp-admin/post-new.php | 1,894 ▲222 | 19.15 ▲0.46 | 372.44 ▲9.45 | 108.02 ▼13.06 |
Media Library /wp-admin/upload.php | 1,844 ▲37 | 5.03 ▼0.02 | 144.29 ▼8.76 | 119.64 ▼10.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/filesfm-file-upload-form/files-fm-file-upload-form.php+29
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 1 option
- widget_filesfmupload_widget_idbase
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filesfm-file-upload-form/files-fm-file-upload-form.php:28
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: receive, storage, custom, email, form...
filesfm-file-upload-form/files-fm-file-upload-form.php 85% from 13 tests
The primary PHP file in "Customizable File Upload Form with Backend Cloud Storage" version 1.3.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("filesfm-file-upload-form.php" instead of "files-fm-file-upload-form.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
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
Everything looks great! No dangerous files found in this plugin767 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 175 | 32 | 767 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin