84% bulk-download-for-gravity-forms

Code Review | Bulk Download for Gravity Forms

WordPress plugin Bulk Download for Gravity Forms scored 84% from 54 tests.

About plugin

  • Plugin page: bulk-download-for...
  • Plugin version: 3.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: Sep 29, 2023
  • Number of updates: 36
  • Update frequency: every 24.5 days
  • Top authors: VCATconsulting (91.67%)Kau-Boy (11.11%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 3,808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Bulk Download for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.37 ▼6.34
Dashboard /wp-admin3.37 ▲0.0745.42 ▼4.47
Posts /wp-admin/edit.php3.48 ▲0.1351.61 ▲4.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.22 ▲0.10
Media Library /wp-admin/upload.php3.29 ▲0.0636.79 ▼1.11

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Bulk Download for Gravity Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.731.76 ▼0.1647.84 ▲5.01
Dashboard /wp-admin2,209 ▲245.91 ▼0.0098.61 ▼13.5838.58 ▲0.93
Posts /wp-admin/edit.php2,068 ▼02.01 ▼0.0235.91 ▼0.9333.45 ▼1.31
Add New Post /wp-admin/post-new.php1,533 ▼023.39 ▲0.25619.89 ▲19.1258.72 ▼2.80
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.02113.14 ▲13.5148.05 ▲0.95

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BDFGF\\add_action() in wp-content/plugins/bulk-download-for-gravity-forms/lib/load.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bulk-download-for-gravity-forms/bulk-download-for-gravity-forms.php:23

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
No plugin tags provided

bulk-download-for-gravity-forms/bulk-download-for-gravity-forms.php Passed 13 tests

The main file in "Bulk Download for Gravity Forms" v. 3.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Bulk download all files from one or multiple Gravity Forms entries in one go.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,295 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP203149581,248
JSON30027
YAML10020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods79
▷ Static methods3240.51%
▷ Public methods7493.67%
▷ Protected methods00.00%
▷ Private methods56.33%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin