84% gravity-forms-mass-import

Code Review | Gravity Forms Mass Import

WordPress plugin Gravity Forms Mass Import scored 84% from 54 tests.

About plugin

  • Plugin page: gravity-forms-mas...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Apr 24, 2015
  • Number of updates: 38
  • Update frequency: every 24.3 days
  • Top authors: dunar21 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active / 15,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.57ms] Passed 4 tests

A check of server-side resources used by Gravity Forms Mass Import
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.84 ▲4.24
Dashboard /wp-admin3.31 ▲0.0147.54 ▲1.90
Posts /wp-admin/edit.php3.36 ▲0.0147.39 ▲1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.83 ▼3.62
Media Library /wp-admin/upload.php3.23 ▲0.0136.42 ▲2.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms Mass Import
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3413.31 ▼0.971.69 ▼0.0540.94 ▲3.56
Dashboard /wp-admin2,211 ▲195.81 ▲0.9196.70 ▼5.9840.62 ▲2.01
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0340.74 ▲2.2235.12 ▼0.29
Add New Post /wp-admin/post-new.php1,519 ▼2317.75 ▼0.55607.88 ▼22.7355.25 ▼10.12
Media Library /wp-admin/upload.php1,393 ▲24.28 ▲0.0694.28 ▼9.6042.76 ▼2.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Cannot redeclare get_field_list_massimport() (previously declared in wp-content/plugins/gravity-forms-mass-import/mass_importer_h.php:7) in wp-content/plugins/gravity-forms-mass-import/gravity-forms-mass-import.php on line 58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-mass-import/gravity-forms-mass-import.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === gravity-forms-mass-import === )
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

gravity-forms-mass-import/gravity-forms-mass-import.php Passed 13 tests

The main PHP file in "Gravity Forms Mass Import" ver. 1.5.1 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Allows mass import of form entries derived from CSV files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin794 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3953293768
JavaScript16026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity185.00
▷ Minimum class complexity185.00
▷ Maximum class complexity185.00
Average method complexity11.22
▷ Minimum method complexity3.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected