Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.16MB] [CPU: ▲0.41ms] Passed 4 tests
Analyzing server-side resources used by Frontend File Manager Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.18 | 51.01 ▲12.20 |
Dashboard /wp-admin | 4.47 ▲1.16 | 51.26 ▲0.66 |
Posts /wp-admin/edit.php | 4.58 ▲1.22 | 54.23 ▲8.39 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 87.60 ▼18.10 |
Media Library /wp-admin/upload.php | 4.39 ▲1.15 | 40.24 ▲10.69 |
Add New Files /wp-admin/edit.php?post_type=wpfm-files&page=wpfm-addnew | 4.40 | 42.99 |
Settings /wp-admin/edit.php?post_type=wpfm-files&page=wpfm-settings | 4.38 | 39.28 |
All Files /wp-admin/edit.php?post_type=wpfm-files | 4.44 | 41.16 |
Server storage [IO: ▲4.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 244 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Frontend File Manager Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲177 | 13.51 ▼0.63 | 9.06 ▲7.37 | 37.19 ▼6.35 |
Dashboard /wp-admin | 2,225 ▲45 | 5.52 ▼0.14 | 94.89 ▼2.54 | 80.89 ▲38.75 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.96 ▲0.02 | 39.75 ▼1.44 | 36.78 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.29 ▲0.22 | 745.64 ▲126.84 | 49.67 ▲2.87 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.20 ▲0.00 | 96.82 ▼9.64 | 78.29 ▲33.09 |
Add New Files /wp-admin/edit.php?post_type=wpfm-files&page=wpfm-addnew | 1,075 | 2.59 | 52.10 | 35.55 |
Settings /wp-admin/edit.php?post_type=wpfm-files&page=wpfm-settings | 1,147 | 2.45 | 57.87 | 37.97 |
All Files /wp-admin/edit.php?post_type=wpfm-files | 1,216 | 1.93 | 33.09 | 31.90 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 11× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/nmedia-user-file-uploader/templates/admin/fields.php
- > /wp-content/plugins/nmedia-user-file-uploader/templates/email/template.email.1.php
- > /wp-content/plugins/nmedia-user-file-uploader/inc/file-detail.php
- > /wp-content/plugins/nmedia-user-file-uploader/inc/classes/class.email.php
- > /wp-content/plugins/nmedia-user-file-uploader/inc/files.php
- > /wp-content/plugins/nmedia-user-file-uploader/inc/classes/class.meta.php
- > /wp-content/plugins/nmedia-user-file-uploader/templates/email/template.email.php
- > /wp-content/plugins/nmedia-user-file-uploader/inc/migrate.php
- > /wp-content/plugins/nmedia-user-file-uploader/templates/admin/howtouse.php
- > /wp-content/plugins/nmedia-user-file-uploader/templates/admin/more-plugins.php
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nmedia-user-file-uploader/templates/admin/ftp-files.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wpfm_array_get_admin_settigns() in wp-content/plugins/nmedia-user-file-uploader/templates/admin/settings.php:6
- > PHP Warning
Use of undefined constant WPFM_URL - assumed 'WPFM_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/nmedia-user-file-uploader/templates/admin/more-plugins.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Inputs' not found in wp-content/plugins/nmedia-user-file-uploader/inc/inputs/input.radio.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nmedia-user-file-uploader/inc/classes/class.rest.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Inputs' not found in wp-content/plugins/nmedia-user-file-uploader/inc/inputs/input.text.php:8
- > PHP Warning
Use of undefined constant WPFM_URL - assumed 'WPFM_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/nmedia-user-file-uploader/templates/admin/more-plugins.php on line 38
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Inputs' not found in wp-content/plugins/nmedia-user-file-uploader/inc/inputs/input.section.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Inputs' not found in wp-content/plugins/nmedia-user-file-uploader/inc/inputs/input.date.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Inputs' not found in wp-content/plugins/nmedia-user-file-uploader/inc/inputs/input.hidden.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: front end upload, image upload, user files, user files manager, file uploaders...
nmedia-user-file-uploader/wp-file-manager.php 85% from 13 tests
"Frontend File Manager Plugin" version 22.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nmedia-user-file-uploader.php" instead of "wp-file-manager.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected33,696 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 30 | 3,604 | 1,975 | 13,327 |
CSS | 14 | 414 | 219 | 9,262 |
PHP | 53 | 2,354 | 955 | 6,674 |
PO File | 5 | 1,424 | 1,776 | 3,230 |
SVG | 4 | 0 | 1 | 1,052 |
HTML | 1 | 7 | 8 | 143 |
XML | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 4 | 2.48% |
▷ Public methods | 151 | 93.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 6.21% |
Functions | 155 | |
▷ Named functions | 148 | 95.48% |
▷ Anonymous functions | 7 | 4.52% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
92 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ext/48px/pdf.png | 1.69KB | 1.45KB | ▼ 14.55% |
images/ext/48px/ods.png | 1.56KB | 1.24KB | ▼ 20.81% |
css/images/shadow.png | 5.42KB | 3.93KB | ▼ 27.43% |
images/ext/48px/1dir.png | 6.59KB | 3.75KB | ▼ 43.08% |
css/images/ui-icons_e1e463_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |