84% gf-multi-uploader

Code Review | Multi Uploader for Gravity Forms

WordPress plugin Multi Uploader for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-multi-uploader
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 3, 2021
  • Latest release: May 3, 2023
  • Number of updates: 16
  • Update frequency: every 37.9 days
  • Top authors: sh1zen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,137 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.92ms] Passed 4 tests

Server-side resources used by Multi Uploader for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0852.21 ▼0.11
Dashboard /wp-admin3.38 ▲0.0845.40 ▼3.81
Posts /wp-admin/edit.php3.49 ▲0.1445.13 ▼2.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.12 ▼13.33
Media Library /wp-admin/upload.php3.30 ▲0.0836.88 ▲2.89

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multi Uploader for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.53 ▼1.025.58 ▲3.4144.21 ▼1.73
Dashboard /wp-admin2,209 ▲244.81 ▼1.09108.80 ▲4.6945.58 ▲1.27
Posts /wp-admin/edit.php2,086 ▼32.03 ▼0.0234.55 ▼1.2234.45 ▲3.99
Add New Post /wp-admin/post-new.php1,514 ▼2217.66 ▼5.61633.31 ▼40.6667.80 ▲17.95
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.04101.47 ▲3.5341.75 ▼2.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gf-multi-uploader/inc/GFMUHandlePluploader.class.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/gf-multi-uploader/inc/GFMUHandlePluploader.class.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gf-multi-uploader/gf-multi-uploader.php:16
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/gf-multi-uploader/inc/GFMUHandlePluploader.class.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: gravity forms uploader, file uploader, uploader, gravity forms, plupload...

gf-multi-uploader/gf-multi-uploader.php 92% from 13 tests

The main file in "Multi Uploader for Gravity Forms" v. 1.0.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin3,088 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP63914211,308
JavaScript543882811,281
CSS49919499

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity37.80
▷ Minimum class complexity4.00
▷ Maximum class complexity72.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods57
▷ Static methods814.04%
▷ Public methods4273.68%
▷ Protected methods58.77%
▷ Private methods1017.54%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/jquery-ui/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
assets/custom-plupload/jquery.plupload.queue/img/buttons-disabled.png1.00KB1.02KB0.00%
assets/jquery-ui/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
assets/custom-plupload/jquery.plupload.queue/img/transp50.png0.11KB0.11KB0.00%
assets/jquery-ui/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%