93% importexport-add-on-feeds-for-gravity-forms

Code Review | Import/Export Add-On Feeds for Gravity Forms

WordPress plugin Import/Export Add-On Feeds for Gravity Forms scored 93% from 54 tests.

About plugin

  • Plugin page: importexport-add-...
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 5.9.2
  • First release: Nov 7, 2016
  • Latest release: Apr 2, 2020
  • Number of updates: 18
  • Update frequency: every 68.8 days
  • Top authors: italianst4 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 2,590 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼304.23ms] Passed 4 tests

This is a short check of server-side resources used by Import/Export Add-On Feeds for Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.48 ▲1.88
Dashboard /wp-admin3.42 ▲0.0134.38 ▲0.65
Posts /wp-admin/edit.php3.65 ▲0.0138.81 ▼4.13
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.05 ▼1,203.58
Media Library /wp-admin/upload.php3.30 ▼0.0025.20 ▼9.85

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import/Export Add-On Feeds for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲7415.94 ▲0.276.12 ▲0.442.75 ▲0.49
Dashboard /wp-admin2,895 ▲346.13 ▼0.05116.68 ▼17.67154.86 ▼6.32
Posts /wp-admin/edit.php2,688 ▼03.24 ▼0.0063.10 ▲1.88136.69 ▼0.99
Add New Post /wp-admin/post-new.php1,711 ▼020.81 ▲0.10434.24 ▼15.22160.02 ▼1.81
Media Library /wp-admin/upload.php1,698 ▲65.53 ▼0.01137.03 ▼2.66187.88 ▼2.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/importexport-add-on-feeds-for-gravity-forms/GFImportExportFeeds.class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/importexport-add-on-feeds-for-gravity-forms/import-export-feeds-for-gravity-forms.php:15

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === importexport-add-on-feeds-for-gravity-forms === )
Please take inspiration from this readme.txt

importexport-add-on-feeds-for-gravity-forms/import-export-feeds-for-gravity-forms.php 85% from 13 tests

"Import/Export Add-On Feeds for Gravity Forms" version 0.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("importexport-add-on-feeds-for-gravity-forms.php" instead of "import-export-feeds-for-gravity-forms.php")

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 plugin364 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP390155364

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.50
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods1058.82%
▷ Public methods1694.12%
▷ Protected methods15.88%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.45MB with 0.33MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png206.62KB52.92KB▼ 74.39%
screenshot-1.png258.85KB72.54KB▼ 71.97%