89% drag-and-drop-multiple-file-upload-for-woocommerce

Code Review | Drag and Drop Multiple File Upload for WooCommerce

WordPress plugin Drag and Drop Multiple File Upload for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: drag-and-drop-mul...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Nov 7, 2023
  • Number of updates: 36
  • Update frequency: every 33.8 days
  • Top authors: glenwpcoder (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

5,000+ active /32,406 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.08MB] [CPU: ▼1.09ms] Passed 4 tests

Server-side resources used by Drag and Drop Multiple File Upload for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.25 ▲2.54
Dashboard /wp-admin3.38 ▲0.0849.54 ▼2.36
Posts /wp-admin/edit.php3.44 ▲0.0853.77 ▲4.97
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.76 ▼9.51
Media Library /wp-admin/upload.php3.31 ▲0.0835.80 ▲5.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Drag and Drop Multiple File Upload for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2814.38 ▼0.351.92 ▲0.1044.44 ▲7.52
Dashboard /wp-admin2,198 ▲215.61 ▼0.0493.50 ▼3.0136.88 ▼9.54
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0133.86 ▼3.4331.84 ▼4.31
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.13688.59 ▲51.1253.81 ▲2.81
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.0895.37 ▼6.6241.03 ▼0.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: woocommerce, drag and drop, woocommerce uploader, multiple file, ajax uploader...

drag-and-drop-multiple-file-upload-for-woocommerce/drag-and-drop-file-uploads-wc.php 77% from 13 tests

"Drag and Drop Multiple File Upload for WooCommerce" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.5.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("drag-and-drop-multiple-file-upload-for-woocommerce.php" instead of "drag-and-drop-file-uploads-wc.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,986 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP6321317911
JavaScript3195180523
PO File4131158358
CSS11810179
SVG10015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity29.00
▷ Minimum class complexity3.00
▷ Maximum class complexity55.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1688.89%
▷ Protected methods15.56%
▷ Private methods15.56%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin