68% media-library-plus

Code Review | Media Library Folders

WordPress plugin Media Library Folders scored68%from 54 tests.

About plugin

  • Plugin page: media-library-plus
  • Plugin version: 8.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2015
  • Latest release: Nov 10, 2023
  • Number of updates: 313
  • Update frequency: every 9.5 days
  • Top authors: AlanP57 (97.12%)maxfoundry (3.19%)

Code review

54 tests

User reviews

456 reviews

Install metrics

9,000+ active /1,705,532 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.28MB] [CPU: ▼0.98ms] Passed 4 tests

Analyzing server-side resources used by Media Library Folders
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.74 ▲1.2842.07 ▼0.25
Dashboard /wp-admin4.59 ▲1.2551.21 ▼5.65
Posts /wp-admin/edit.php4.64 ▲1.2958.37 ▲12.17
Add New Post /wp-admin/post-new.php7.18 ▲1.2990.01 ▼7.33
Media Library /wp-admin/upload.php4.52 ▲1.2942.92 ▲9.31
Settings /wp-admin/admin.php?page=mlf-settings84.4441.47
Upgrade to Pro /wp-admin/admin.php?page=mlp-upgrade-to-pro4.4237.83
Search Library /wp-admin/admin.php?page=search-library4.4338.61
Folders & Files /wp-admin/admin.php?page=mlf-folders84.6044.30
Image SEO /wp-admin/admin.php?page=mlf-image-seo4.4340.46
Support /wp-admin/admin.php?page=mlf-support84.4637.51
Thumbnails /wp-admin/admin.php?page=mlf-thumbnails4.4739.25

Server storage [IO: ▲9.08MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 251 new files
Database: 3 new tables, 14 new options
New tables
wp_mgmlp_blocked_ips
wp_mgmlp_folders
wp_mgmlp_block_access
New WordPress options
widget_recent-posts
widget_theysaidso_widget
mlf-folder-check
mgmlp_upload_folder_id
maxgalleria_media_library_version
mgmlp_upload_folder_name
mgmlp_src_fix
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Media Library Folders
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6714.22 ▼0.041.62 ▼0.0037.71 ▼6.12
Dashboard /wp-admin2,237 ▲635.56 ▼0.1394.58 ▼0.6141.52 ▲0.29
Posts /wp-admin/edit.php2,142 ▲392.01 ▲0.0340.45 ▼0.2034.57 ▼0.68
Add New Post /wp-admin/post-new.php1,572 ▲4624.87 ▲1.63596.22 ▼74.8162.78 ▲2.78
Media Library /wp-admin/upload.php1,450 ▲474.20 ▲0.03103.84 ▲2.1942.04 ▼0.00
Settings /wp-admin/admin.php?page=mlf-settings81,0222.2127.1931.63
Upgrade to Pro /wp-admin/admin.php?page=mlp-upgrade-to-pro1,2982.1125.23104.22
Search Library /wp-admin/admin.php?page=search-library9002.2028.2639.56
Folders & Files /wp-admin/admin.php?page=mlf-folders81,4912.3849.1759.84
Image SEO /wp-admin/admin.php?page=mlf-image-seo9712.0824.2628.40
Support /wp-admin/admin.php?page=mlf-support81,0522.1924.6129.07
Thumbnails /wp-admin/admin.php?page=mlf-thumbnails9642.0727.8226.34

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
These items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_mgmlp_folders
    • wp_mgmlp_blocked_ips
    • wp_mgmlp_block_access
  • The uninstall procedure has failed, leaving 14 options in the database
    • mgmlp_move_or_copy
    • mgmlp_src_fix
    • mgmlp_upload_folder_id
    • widget_theysaidso_widget
    • mlf_sort_order_type
    • mgmlp_sort_order
    • mgmlp_upload_folder_name
    • widget_recent-comments
    • mlf-folder-check
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/media-library-plus/includes/mlf-support-articles.php
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/media-library-plus/includes/mlf-image-seo.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/media-library-plus/media-library-plus.php:80
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/media-library-plus/includes/mlf-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/media-library-plus/includes/mlfp-bda-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/media-library-plus/includes/mlf-support-tips.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/media-library-plus/includes/media-folders.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/media-library-plus/includes/mlf-support-sys-info.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/media-library-plus/includes/mlf-support.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/media-library-plus/includes/media-library.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/media-library-plus/mlp-reset.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: organize media library, media library folders

media-library-plus/media-library-plus.php Passed 13 tests

The main PHP file in "Media Library Folders" ver. 8.1.6 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
Gives you the ability to adds folders and move files in the WordPress Media Library.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin56,831 lines of code in 160 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript702,8853,03616,747
CSS285,57626716,486
PHP162,2543857,617
Sass19551716,314
LESS18548716,244
PO File89801,1133,406
Markdown14017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity970.00
▷ Minimum class complexity970.00
▷ Maximum class complexity970.00
Average method complexity6.13
▷ Minimum method complexity1.00
▷ Maximum method complexity88.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods189
▷ Static methods00.00%
▷ Public methods17190.48%
▷ Protected methods00.00%
▷ Private methods189.52%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants71
▷ Global constants71100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
55 PNG files occupy 5.34MB with 3.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/jstree/themes/default/40px.png2.16KB1.84KB▼ 15.12%
images/mlfp-help.png2.56KB0.42KB▼ 83.78%
images/get-mlp-pro.png570.84KB0.50KB▼ 99.91%
images/assets/block-direct-access.png414.81KB124.40KB▼ 70.01%
images/closedimage.png4.54KB0.42KB▼ 90.69%