84% easy-upload-files-during-checkout

Code Review | Easy Upload Files During Checkout

WordPress plugin Easy Upload Files During Checkout scored84%from 54 tests.

About plugin

  • Plugin page: easy-upload-files...
  • Plugin version: 2.9.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 26, 2015
  • Latest release: Oct 19, 2023
  • Number of updates: 268
  • Update frequency: every 10.9 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

60 reviews

Install metrics

900+ active /115,118 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.79ms] Passed 4 tests

A check of server-side resources used by Easy Upload Files During Checkout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.00 ▲0.17
Dashboard /wp-admin3.31 ▼0.0346.76 ▼14.51
Posts /wp-admin/edit.php3.36 ▲0.0143.50 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.78 ▼10.66
Media Library /wp-admin/upload.php3.23 ▲0.0137.47 ▲4.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Upload Files During Checkout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.33 ▼0.041.85 ▲0.1744.47 ▲5.64
Dashboard /wp-admin2,192 ▲155.57 ▲0.0397.91 ▲6.6141.74 ▲3.04
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.1135.25 ▼1.7334.19 ▼3.29
Add New Post /wp-admin/post-new.php1,528 ▲223.33 ▲0.50632.75 ▼14.4350.46 ▼3.47
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.0695.56 ▼2.8439.29 ▼1.25

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-upload-files-during-checkout/inc/functions-inner.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
5 plugin tags: checkout process, attach files, during checkout process, login, upload files

easy-upload-files-during-checkout/index.php 92% from 13 tests

The primary PHP file in "Easy Upload Files During Checkout" version 2.9.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-upload-files-during-checkout.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin16,168 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,546
PO File81,4921,6433,294
PHP41,1888881,494
JavaScript653124990
CSS58715844

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions56
▷ Named functions5496.43%
▷ Anonymous functions23.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/premium-r.png6.20KB3.67KB▼ 40.68%
img/premium-g.png6.20KB3.70KB▼ 40.32%
img/dimensions.png54.72KB18.91KB▼ 65.44%
img/disk.png8.33KB3.79KB▼ 54.56%