77% fileorganizer

Code Review | FileOrganizer - Manage WordPress and Website Files

WordPress plugin FileOrganizer - Manage WordPress and Website Files scored77%from 54 tests.

About plugin

  • Plugin page: fileorganizer
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Mar 14, 2023
  • Latest release: Sep 19, 2023
  • Number of updates: 8
  • Update frequency: every 24.0 days
  • Top authors: softaculous (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100,000+ active /294,937 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.69ms] Passed 4 tests

An overview of server-side resources used by FileOrganizer - Manage WordPress and Website Files
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.28 ▲1.08
Dashboard /wp-admin3.35 ▲0.0147.90 ▼12.20
Posts /wp-admin/edit.php3.46 ▲0.1145.46 ▼9.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.76 ▼12.85
Media Library /wp-admin/upload.php3.27 ▲0.0535.67 ▼0.44
File Organizer /wp-admin/admin.php?page=fileorganizer3.2630.30
Settings /wp-admin/admin.php?page=settings3.3530.31

Server storage [IO: ▲5.09MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/fileorganizer/" and "wp-content/uploads/"
    • (new file) .tmb/.empty
Filesystem: 258 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
fileorganizer_version
fileorganizer_promo_time
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for FileOrganizer - Manage WordPress and Website Files
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.19 ▼1.191.88 ▲0.2143.78 ▲2.87
Dashboard /wp-admin2,233 ▲485.90 ▲0.92110.27 ▲4.8341.38 ▼1.51
Posts /wp-admin/edit.php2,116 ▲272.02 ▼0.0033.81 ▼7.2234.66 ▼0.70
Add New Post /wp-admin/post-new.php1,564 ▲4723.14 ▲5.65635.03 ▲25.4349.51 ▼3.07
Media Library /wp-admin/upload.php1,415 ▲244.17 ▼0.0498.28 ▼8.5440.55 ▼6.68
File Organizer /wp-admin/admin.php?page=fileorganizer4,0496.91222.73116.71
Settings /wp-admin/admin.php?page=settings1,4631.8324.5144.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • fileorganizer_version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • fileorganizer_promo_time
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fileorganizer/main/ajax.php
    • > /wp-content/plugins/fileorganizer/main/settings.php
    • > /wp-content/plugins/fileorganizer/main/fileorganizer.php
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/fileorganizer/manager/php/plugins/AutoResize/plugin.php:62
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/fileorganizer/manager/php/editors/ZipArchive/editor.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderVolumeMySQL' not found in wp-content/plugins/fileorganizer/manager/php/elFinderVolumeTrashMySQL.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/fileorganizer/manager/php/plugins/AutoRotate/plugin.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/fileorganizer/manager/php/elFinderVolumeDropbox2.class.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/fileorganizer/manager/php/elFinderVolumeGroup.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/fileorganizer/manager/php/elFinderVolumeMySQL.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/fileorganizer/manager/php/elFinderVolumeFTP.class.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'elFinder' not found in wp-content/plugins/fileorganizer/manager/php/elFinderVolumeDropbox.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/fileorganizer/manager/php/editors/OnlineConvert/editor.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt is a good inspiration

fileorganizer/fileorganizer.php Passed 13 tests

"FileOrganizer - Manage WordPress and Website Files" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
FileOrganizer is a plugin that helps you to manage all files in your WordPress Site.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected83,569 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript583,3425,96749,223
PHP373,3249,44319,830
CSS231,30984713,324
SVG209301,146
Markdown311046

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,400)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 150)
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity146.63
▷ Minimum class complexity1.00
▷ Maximum class complexity1,400.00
Average method complexity7.34
▷ Minimum method complexity1.00
▷ Maximum method complexity150.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes34
▷ Abstract classes12.94%
▷ Concrete classes3397.06%
▷ Final classes00.00%
Methods837
▷ Static methods475.62%
▷ Public methods23628.20%
▷ Protected methods58169.41%
▷ Private methods202.39%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants107
▷ Global constants3028.04%
▷ Class constants7771.96%
▷ Public constants77100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
98 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
manager/php/resources/video.png2.24KB2.10KB▼ 6.12%
css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%
manager/themes/windows10/images/16px/extract.png0.47KB0.55KB0.00%
images/twitter.png1.29KB1.46KB0.00%
manager/img/ui-icons_ffffff_256x240.png3.67KB4.17KB0.00%