62% file-manager

Code Review | File Manager – 100% Free & Open Source File Manager Plugin for WordPress | Bit File Manager

WordPress plugin File Manager – 100% Free & Open Source File Manager Plugin for WordPress | Bit File Manager scored62%from 54 tests.

About plugin

  • Plugin page: file-manager
  • Plugin version: 6.3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2016
  • Latest release: Nov 25, 2023
  • Number of updates: 132
  • Update frequency: every 21.6 days
  • Top authors: aihimel (80.3%)bitpressadmin (20.45%)

Code review

54 tests

User reviews

180 reviews

Install metrics

20,000+ active /1,106,040 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.50 ▲0.82
Dashboard /wp-admin3.36 ▲0.0148.30 ▼11.08
Posts /wp-admin/edit.php3.44 ▲0.0848.35 ▲1.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.22 ▼1.00
Media Library /wp-admin/upload.php3.28 ▲0.0535.27 ▲4.94
Home /wp-admin/admin.php?page=file-manager3.2832.20
Settings /wp-admin/admin.php?page=file-manager-settings3.3632.22
Logs /wp-admin/admin.php?page=file-manager-logs3.6336.01
Permissions /wp-admin/admin.php?page=file-manager-permissions3.3331.71
System Information /wp-admin/admin.php?page=file-manager-system-info3.2830.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲10114.54 ▲0.201.53 ▼0.1138.30 ▲1.13
Dashboard /wp-admin2,293 ▲1185.54 ▼0.1195.40 ▼20.0474.17 ▲30.92
Posts /wp-admin/edit.php2,140 ▲401.94 ▲0.0040.16 ▼0.6535.30 ▲4.53
Add New Post /wp-admin/post-new.php1,568 ▲4222.87 ▼0.15684.67 ▲29.7747.92 ▼6.03
Media Library /wp-admin/upload.php1,437 ▲434.21 ▲0.0396.03 ▼1.1965.41 ▲24.17
Home /wp-admin/admin.php?page=file-manager4,6334.86232.69152.16
Settings /wp-admin/admin.php?page=file-manager-settings1,6572.1325.6846.49
Logs /wp-admin/admin.php?page=file-manager-logs1,0832.0826.6036.82
Permissions /wp-admin/admin.php?page=file-manager-permissions1,8142.3331.4751.89
System Information /wp-admin/admin.php?page=file-manager-system-info1,0871.9925.2636.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript853,3986,15153,144
PHP1185,26412,20327,328
CSS151,74336510,392
SVG729202,871
Sass1434341,768
LESS1434441,758
JSON5009
Markdown1609

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 code0.58
Average class complexity62.36
▷ Minimum class complexity1.00
▷ Maximum class complexity1,400.00
Average method complexity5.04
▷ Minimum method complexity1.00
▷ Maximum method complexity150.00
Code structure
Namespaces23
Interfaces2
Traits4
Classes91
▷ Abstract classes33.30%
▷ Concrete classes8896.70%
▷ Final classes2528.41%
Methods1,514
▷ Static methods16911.16%
▷ Public methods85956.74%
▷ Protected methods55436.59%
▷ Private methods1016.67%
Functions19
▷ Named functions1157.89%
▷ Anonymous functions842.11%
Constants148
▷ Global constants3825.68%
▷ Class constants11074.32%
▷ Public constants110100.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
FileSize - originalSize - compressedSavings
libs/js/jquery-ui/images/ui-icons_555555_256x240.png6.96KB4.18KB▼ 39.91%
assets/img/icon-256x256.png8.04KB5.46KB▼ 32.06%
libs/elFinder/img/volume_icon_onedrive.png0.20KB0.24KB0.00%
libs/elFinder/img/icons-small.png3.59KB3.68KB0.00%
libs/elFinder/img/volume_icon_box.png0.61KB0.68KB0.00%