10% wp-multi-file-uploader

Code Review | WP Multi File Uploader

WordPress plugin WP Multi File Uploader scored 10% from 54 tests.

About plugin

  • Plugin page: wp-multi-file-upl...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6.1
  • WordPress version: 5.8.1
  • First release: Mar 10, 2013
  • Latest release: Aug 30, 2015
  • Number of updates: 24
  • Update frequency: every 38.1 days
  • Top authors: dholloran (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active / 16,058 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method WPMFU_Init::on_activate() should not be called statically

Server metrics [RAM: ▲0.07MB] [CPU: ▼137.27ms] Passed 4 tests

A check of server-side resources used by WP Multi File Uploader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0847.84 ▲10.68
Dashboard /wp-admin3.14 ▲0.0849.09 ▲7.54
Posts /wp-admin/edit.php3.25 ▲0.1449.43 ▲5.20
Add New Post /wp-admin/post-new.php5.49 ▲0.06100.63 ▼563.53
Media Library /wp-admin/upload.php3.08 ▲0.0835.77 ▲1.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Multi File Uploader: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲22416.41 ▲0.8211.86 ▲2.6356.73 ▲1.56
Dashboard /wp-admin2,979 ▲486.24 ▲0.09144.09 ▼10.58110.59 ▼11.45
Posts /wp-admin/edit.php2,739 ▲32.68 ▼0.0069.20 ▼2.4394.39 ▲0.21
Add New Post /wp-admin/post-new.php1,683 ▲1118.39 ▼0.46390.75 ▲7.95114.67 ▼1.35
Media Library /wp-admin/upload.php1,813 ▲65.08 ▲0.07149.93 ▼2.72124.97 ▲7.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method WPMFU_Init::on_deactivate() should not be called statically

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPMFU_Plugin' not found in wp-content/plugins/wp-multi-file-uploader/classes/class-wpmfu-file-upload-handler.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPMFU_HTML' not found in wp-content/plugins/wp-multi-file-uploader/classes/class.wpmfu-form-builder.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multi-file-uploader/inc/wpmfu-post-type.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multi-file-uploader/classes/class-wpmfu-plugin.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multi-file-uploader/classes/class-wpmfu-plugin.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WPMFU_Plugin' not found in wp-content/plugins/wp-multi-file-uploader/classes/class.wpmfu-html.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #0, #0 in wp-multi-file-uploader/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-multi-file-uploader === )
  • Screenshots: These screenshots do not have images: #1 (/assets/screenshot1.png), #2 (/assets/screenshot2.png)
The official readme.txt is a good inspiration

wp-multi-file-uploader/wp-multi-file-uploader.php 92% from 13 tests

"WP Multi File Uploader" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,146 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript124212632,436
PHP7121280490
Sass3280171
Markdown112047
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.80
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods3597.22%
▷ Protected methods12.78%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png24.50KB6.97KB▼ 71.56%
screenshot-1.png16.97KB3.28KB▼ 80.65%