Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼5.87ms] Passed 4 tests
A check of server-side resources used by File Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 44.38 ▲4.29 |
Dashboard /wp-admin | 3.67 ▲0.36 | 44.13 ▼8.28 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 45.98 ▼3.15 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 84.41 ▼12.92 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 33.40 ▲0.89 |
Backup/Restore /wp-admin/admin.php?page=wpfm-backup | 3.62 | 35.40 |
Logs /wp-admin/admin.php?page=wpfm-logs | 3.55 | 32.50 |
System Properties /wp-admin/admin.php?page=wp_file_manager_sys_properties | 3.56 | 30.49 |
Settings /wp-admin/admin.php?page=wp_file_manager_settings | 3.56 | 30.98 |
Shortcode - PRO /wp-admin/admin.php?page=wp_file_manager_shortcode_doc | 3.60 | 32.53 |
Preferences /wp-admin/admin.php?page=wp_file_manager_preferences | 3.60 | 32.16 |
WP File Manager /wp-admin/admin.php?page=wp_file_manager | 3.68 | 36.79 |
Server storage [IO: ▲16.41MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/wp-file-manager/" and "wp-content/uploads/"
- (new file) .quarantine/.empty
- (new file) .tmb/.empty
Filesystem: 906 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpfm_backup |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
fm_key |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for File Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲98 | 14.28 ▲0.12 | 1.73 ▲0.08 | 38.91 ▼3.82 |
Dashboard /wp-admin | 2,268 ▲91 | 5.50 ▼0.15 | 82.14 ▼5.33 | 70.35 ▲28.75 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 1.96 ▼0.07 | 35.62 ▼2.12 | 35.66 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,592 ▲64 | 23.18 ▲0.02 | 742.66 ▲120.71 | 52.72 ▲6.07 |
Media Library /wp-admin/upload.php | 1,473 ▲73 | 4.06 ▼0.13 | 91.86 ▼1.19 | 78.00 ▲30.90 |
Backup/Restore /wp-admin/admin.php?page=wpfm-backup | 1,199 | 2.07 | 27.43 | 67.60 |
Logs /wp-admin/admin.php?page=wpfm-logs | 871 | 2.04 | 22.00 | 26.90 |
System Properties /wp-admin/admin.php?page=wp_file_manager_sys_properties | 914 | 2.00 | 21.00 | 25.69 |
Settings /wp-admin/admin.php?page=wp_file_manager_settings | 897 | 2.13 | 23.22 | 27.61 |
Shortcode - PRO /wp-admin/admin.php?page=wp_file_manager_shortcode_doc | 1,317 | 2.12 | 22.59 | 40.39 |
Preferences /wp-admin/admin.php?page=wp_file_manager_preferences | 948 | 1.99 | 23.77 | 29.38 |
WP File Manager /wp-admin/admin.php?page=wp_file_manager | 4,712 | 5.89 | 299.18 | 118.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wpfm_backup
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- fm_key
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-file-manager/lib/wpfilemanager.php
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeLocalFileSystem' not found in wp-content/plugins/wp-file-manager/lib/php/elFinderVolumeTrash.class.php:8
- > PHP Fatal error
Uncaught Error: Interface 'elFinderSessionInterface' not found in wp-content/plugins/wp-file-manager/lib/php/elFinderSession.php:11
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/wp-file-manager/lib/php/elFinderVolumeDropbox2.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/wp-file-manager/lib/php/elFinderVolumeLocalFileSystem.class.php:34
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/wp-file-manager/lib/php/elFinderVolumeBox.class.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-file-manager/file_folder_manager.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wp-file-manager/classes/db-restore.php:5
- > PHP Fatal error
Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/wp-file-manager/lib/php/editors/ZohoOffice/editor.php:3
- > PHP Fatal error
Uncaught Error: Class 'elFinder' not found in wp-content/plugins/wp-file-manager/lib/php/elFinderVolumeDropbox.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/wp-file-manager/lib/php/plugins/AutoResize/plugin.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-file-manager/file_folder_manager.php 92% from 13 tests
This is the main PHP file of "File Manager" version 7.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-file-manager.php" instead of "file_folder_manager.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin194,697 lines of code in 628 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 289 | 10,491 | 13,834 | 113,497 |
PO File | 52 | 15,955 | 25,708 | 26,618 |
PHP | 43 | 3,364 | 9,630 | 21,193 |
CSS | 51 | 2,252 | 1,111 | 16,282 |
HTML | 128 | 2,509 | 8 | 13,351 |
SVG | 62 | 91 | 43 | 3,710 |
Markdown | 3 | 11 | 0 | 46 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,408)
- Method cyclomatic complexity should be reduced to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 142.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,408.00 |
Average method complexity | 7.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 1 | 2.70% |
▷ Concrete classes | 36 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 891 | |
▷ Static methods | 50 | 5.61% |
▷ Public methods | 284 | 31.87% |
▷ Protected methods | 585 | 65.66% |
▷ Private methods | 22 | 2.47% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 107 | |
▷ Global constants | 30 | 28.04% |
▷ Class constants | 77 | 71.96% |
▷ Public constants | 77 | 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
162 compressed PNG files occupy 0.40MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/quicklook-bg.png | 0.07KB | 0.09KB | 0.00% |
lib/themes/windows - 10/images/16px/redo.png | 0.66KB | 0.51KB | ▼ 21.73% |
lib/themes/light/images/16px/deselect_all.png | 0.40KB | 0.42KB | 0.00% |
lib/themes/windows - 10/images/16px/upload.png | 0.44KB | 0.50KB | 0.00% |
lib/themes/light/images/48px/directory.png | 1.00KB | 1.61KB | 0.00% |