84% gf-excel-import

Code Review | Import Excel to Gravity Forms

WordPress plugin Import Excel to Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-excel-import
  • Plugin version: 1.18
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Sep 28, 2023
  • Number of updates: 22
  • Update frequency: every 36.6 days
  • Top authors: wpgear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,663 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.01MB] [CPU: ▼9.08ms] Passed 4 tests

An overview of server-side resources used by Import Excel to Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.18 ▼8.01
Dashboard /wp-admin3.32 ▲0.0144.28 ▼5.04
Posts /wp-admin/edit.php3.37 ▲0.0143.37 ▼3.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.29 ▼19.37
Media Library /wp-admin/upload.php3.24 ▲0.0132.94 ▼3.89
Import Excel to Gravity Forms /wp-admin/options-general.php?page=gf-excel-import/includes/admin/options.php3.2431.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import Excel to Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.61 ▲0.341.61 ▼0.1838.58 ▼7.56
Dashboard /wp-admin2,199 ▲225.54 ▲0.0181.83 ▼8.6838.01 ▼2.22
Posts /wp-admin/edit.php2,104 ▲72.00 ▲0.0334.34 ▼4.2233.16 ▼3.12
Add New Post /wp-admin/post-new.php1,537 ▲822.94 ▼0.04651.69 ▲6.3262.23 ▲13.32
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.0794.41 ▼0.5742.05 ▼2.61
Import Excel to Gravity Forms /wp-admin/options-general.php?page=gf-excel-import/includes/admin/options.php8572.0324.9326.12

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

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_send_json() in wp-content/plugins/gf-excel-import/includes/ajax_processing.php:258
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gf-excel-import/includes/admin/options.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-excel-import/includes/loader.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gf-excel-import/gf-excel-import.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-excel-import/includes/admin/admin.php:19

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: csv, gravityforms, import, bulk, gravity forms...

gf-excel-import/gf-excel-import.php 92% from 13 tests

Analyzing the main PHP file in "Import Excel to Gravity Forms" version 1.18
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 201 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected922 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript114550479
PHP88579353
CSS231089
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin