Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.52ms] Passed 4 tests
Server-side resources used by File Manager – 100% Free & Open Source File Manager Plugin for WordPress | Bit File Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.50 ▲0.82 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.30 ▼11.08 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.35 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.22 ▼1.00 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.27 ▲4.94 |
Home /wp-admin/admin.php?page=file-manager | 3.28 | 32.20 |
Settings /wp-admin/admin.php?page=file-manager-settings | 3.36 | 32.22 |
Logs /wp-admin/admin.php?page=file-manager-logs | 3.63 | 36.01 |
Permissions /wp-admin/admin.php?page=file-manager-permissions | 3.33 | 31.71 |
System Information /wp-admin/admin.php?page=file-manager-system-info | 3.28 | 30.10 |
Server storage [IO: ▲21.55MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 406 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_fm_logs |
New WordPress options |
---|
bit_fm_installed |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
bit_fm_version |
widget_recent-comments |
widget_theysaidso_widget |
bit_fm_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for File Manager – 100% Free & Open Source File Manager Plugin for WordPress | Bit File Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲101 | 14.54 ▲0.20 | 1.53 ▼0.11 | 38.30 ▲1.13 |
Dashboard /wp-admin | 2,293 ▲118 | 5.54 ▼0.11 | 95.40 ▼20.04 | 74.17 ▲30.92 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 1.94 ▲0.00 | 40.16 ▼0.65 | 35.30 ▲4.53 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 22.87 ▼0.15 | 684.67 ▲29.77 | 47.92 ▼6.03 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.21 ▲0.03 | 96.03 ▼1.19 | 65.41 ▲24.17 |
Home /wp-admin/admin.php?page=file-manager | 4,633 | 4.86 | 232.69 | 152.16 |
Settings /wp-admin/admin.php?page=file-manager-settings | 1,657 | 2.13 | 25.68 | 46.49 |
Logs /wp-admin/admin.php?page=file-manager-logs | 1,083 | 2.08 | 26.60 | 36.82 |
Permissions /wp-admin/admin.php?page=file-manager-permissions | 1,814 | 2.33 | 31.47 | 51.89 |
System Information /wp-admin/admin.php?page=file-manager-system-info | 1,087 | 1.99 | 25.26 | 36.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_fm_logs
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=file-manager-logs
- > Warning in wp-content/plugins/file-manager/views/admin/logs.php+95
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/file-manager/assets/js/utility.php
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/file-manager/libs/elFinder/php/elFinderVolumeGoogleDrive.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeFTP' not found in wp-content/plugins/file-manager/libs/elFinder/php/elFinderVolumeSFTPphpseclib.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/file-manager/backend/core/Http/Router/APIRouter.php:8
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/file-manager/libs/elFinder/php/plugins/Sanitizer/plugin.php:47
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/file-manager/libs/elFinder/php/elFinderVolumeLocalFileSystem.class.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/file-manager/backend/config/app.php:14
- > PHP Fatal error
Uncaught Error: Interface 'elFinderSessionInterface' not found in wp-content/plugins/file-manager/libs/elFinder/php/elFinderSession.php:11
- > PHP Fatal error
Trait 'BitApps\\FM\\Core\\Http\\IpTool' not found in wp-content/plugins/file-manager/backend/core/Http/Request/Request.php on line 16
- > PHP Fatal error
Trait 'BitApps\\FM\\Core\\Http\\Request\\Validator\\ValidateAttributes' not found in wp-content/plugins/file-manager/backend/core/Http/Request/Validator/Validator.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/file-manager/libs/elFinder/php/plugins/AutoRotate/plugin.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: Screenshot #1 (Overall View) image missing
file-manager/file-manager.php Passed 13 tests
The principal PHP file in "File Manager – 100% Free & Open Source File Manager Plugin for WordPress | Bit File Manager" v. 6.3.2 is loaded by WordPress automatically on each request
55 characters long description:
File Manager let you manage your file the way you like.
Code Analysis 95% from 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
No dangerous file extensions were detected97,279 lines of code in 324 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 85 | 3,398 | 6,151 | 53,144 |
PHP | 118 | 5,264 | 12,203 | 27,328 |
CSS | 15 | 1,743 | 365 | 10,392 |
SVG | 72 | 92 | 0 | 2,871 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JSON | 5 | 0 | 0 | 9 |
Markdown | 1 | 6 | 0 | 9 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,400)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 62.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,400.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 2 | |
Traits | 4 | |
Classes | 91 | |
▷ Abstract classes | 3 | 3.30% |
▷ Concrete classes | 88 | 96.70% |
▷ Final classes | 25 | 28.41% |
Methods | 1,514 | |
▷ Static methods | 169 | 11.16% |
▷ Public methods | 859 | 56.74% |
▷ Protected methods | 554 | 36.59% |
▷ Private methods | 101 | 6.67% |
Functions | 19 | |
▷ Named functions | 11 | 57.89% |
▷ Anonymous functions | 8 | 42.11% |
Constants | 148 | |
▷ Global constants | 38 | 25.68% |
▷ Class constants | 110 | 74.32% |
▷ Public constants | 110 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
36 compressed PNG files occupy 0.39MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/js/jquery-ui/images/ui-icons_555555_256x240.png | 6.96KB | 4.18KB | ▼ 39.91% |
assets/img/icon-256x256.png | 8.04KB | 5.46KB | ▼ 32.06% |
libs/elFinder/img/volume_icon_onedrive.png | 0.20KB | 0.24KB | 0.00% |
libs/elFinder/img/icons-small.png | 3.59KB | 3.68KB | 0.00% |
libs/elFinder/img/volume_icon_box.png | 0.61KB | 0.68KB | 0.00% |