10% easy-folders

Code Review | Easy Folders - WordPress Media Library Folders, File Manager

WordPress plugin Easy Folders - WordPress Media Library Folders, File Manager scored10%from 54 tests.

About plugin

  • Plugin page: easy-folders
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 2, 2023
  • Latest release: Apr 23, 2023
  • Number of updates: 7
  • Update frequency: every 8.1 days
  • Top authors: ripebits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /353 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/easy-folders/admin/helpers/class-easy-folders-helper.php+367
    Undefined index: HTTP_CLIENT_IP

Server metrics [RAM: ▲1.56MB] [CPU: ▲8.51ms] Passed 4 tests

A check of server-side resources used by Easy Folders - WordPress Media Library Folders, File Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.00 ▲1.5351.99 ▲13.32
Dashboard /wp-admin4.95 ▲1.6069.37 ▲11.89
Posts /wp-admin/edit.php4.88 ▲1.5260.82 ▲11.21
Add New Post /wp-admin/post-new.php7.57 ▲1.68106.28 ▼2.37
Media Library /wp-admin/upload.php4.82 ▲1.5855.33 ▲17.80
Install /wp-admin/admin.php?page=easyfolders4.8957.70
Easy Folders Pro /wp-admin/admin.php?page=easyfolders-pro4.8958.30

Server storage [IO: ▲6.40MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 100 new files
Database: 4 new tables, 68 new options
New tables
wp_efs_attachment_folder
wp_efs
wp_efs_upload_file_types
wp_efs_colors
New WordPress options
easy-folders-gutenberg_support
easy-folders-media_rename
widget_theysaidso_widget
easy-folders-auto_media_rename
widget_recent-comments
easy-folders-user_folder
easy-folders-media_replace
easy-folders-custom-post-types
easy-folders-language
easy-folders-fusion_support
...

Browser metrics Passed 4 tests

Easy Folders - WordPress Media Library Folders, File Manager: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,203 ▲45725.92 ▲11.574.89 ▲3.2236.70 ▼9.05
Dashboard /wp-admin2,547 ▲36216.08 ▲10.23385.24 ▲285.8889.57 ▲45.32
Posts /wp-admin/edit.php28 ▼2,0610.44 ▼1.570.06 ▼40.073.82 ▼32.94
Add New Post /wp-admin/post-new.php1,572 ▲4223.78 ▲5.45773.13 ▲160.0851.53 ▼2.82
Media Library /wp-admin/upload.php28 ▼1,3600.44 ▼3.780.06 ▼103.643.71 ▼37.46
Install /wp-admin/admin.php?page=easyfolders1,32013.37130.8895.23
Easy Folders Pro /wp-admin/admin.php?page=easyfolders-pro2,09913.13110.38107.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 4 tables
    • wp_efs
    • wp_efs_attachment_folder
    • wp_efs_upload_file_types
    • wp_efs_colors
  • The uninstall procedure has failed, leaving 70 options in the database
    • easy-folders-account-uninstall-timestamp
    • easy-folders-auto_media_rename
    • easy-folders-starred_media
    • easy-folders-is_folder_media_deleted
    • easyfolders_version
    • easy-folders-media_hover_detail_list
    • theysaidso_admin_options
    • easy-folders-rename_media_type_values
    • easy-folders-activation-country-code
    • easy-folders-brizy_support
    • ...

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
Even though everything seems fine, this is not 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
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-folders/admin/partials/easy-folders-settings.php
    • > /wp-content/plugins/easy-folders/vendor/enshrined/svg-sanitize/src/svg-scanner.php
    • > /wp-content/plugins/easy-folders/admin/partials/easy-folders-pro.php
    • > /wp-content/plugins/easy-folders/admin/partials/easy-folders-install.php
    • > /wp-content/plugins/easy-folders/public/partials/easy-folders-public-display.php
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/easy-folders/admin/partials/notices/free-to-pro-plugin-conversion-notice.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/easy-folders/admin/partials/notices/initial-trial-upgrade-notice.php:1
    • > PHP Fatal error
      Trait 'Easy_Folders_Notice_Hooks' not found in wp-content/plugins/easy-folders/admin/class-easy-folders-admin.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/easy-folders/admin/partials/notices/show-plugin-conflict-notice.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\AttributeInterface' not found in wp-content/plugins/easy-folders/vendor/enshrined/svg-sanitize/src/data/AllowedAttributes.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'enshrined\\svgSanitize\\data\\AllowedAttributes' not found in wp-content/plugins/easy-folders/admin/repositories/svg/class-easy-folders-svg-attributes.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/easy-folders/vendor/enshrined/svg-sanitize/src/data/AllowedTags.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/easy-folders/admin/partials/notices/easy-folders-rate-notice.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/easy-folders/admin/partials/notices/plugin-usage-tracking-notice.php:4
    • > PHP Warning
      array_values() expects parameter 1 to be array, null given in wp-content/plugins/easy-folders/vendor/enshrined/svg-sanitize/src/svg-scanner.php on line 70

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: media folder, media library, media manager, media library folders, folders...

easy-folders/easy-folders.php Passed 13 tests

The main PHP file in "Easy Folders - WordPress Media Library Folders, File Manager" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
113 characters long description:
A single powerful and easy-to-use plugin to take care of all media needs. Organize your media files into folders.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin8,824 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PHP671,9383,5927,864
SVG400416
JavaScript83797287
CSS679119
JSON40089
Markdown143049

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity25.70
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces6
Interfaces2
Traits3
Classes41
▷ Abstract classes00.00%
▷ Concrete classes41100.00%
▷ Final classes00.00%
Methods393
▷ Static methods14536.90%
▷ Public methods34387.28%
▷ Protected methods256.36%
▷ Private methods256.36%
Functions41
▷ Named functions717.07%
▷ Anonymous functions3482.93%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin