78% gforms-export-entries

Code Review | Gravity Forms Export Entries

WordPress plugin Gravity Forms Export Entries scored78%from 54 tests.

About plugin

  • Plugin page: gforms-export-ent...
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 16, 2018
  • Latest release: Mar 24, 2021
  • Number of updates: 27
  • Update frequency: every 36.4 days
  • Top authors: optimizedmarketing (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /7,658 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.00MB] [CPU: ▼3.98ms] Passed 4 tests

A check of server-side resources used by Gravity Forms Export Entries
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.20 ▼9.03
Dashboard /wp-admin3.31 ▲0.0047.73 ▼2.56
Posts /wp-admin/edit.php3.36 ▲0.0045.83 ▼3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.22 ▼0.59
Media Library /wp-admin/upload.php3.23 ▲0.0036.67 ▼0.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms Export Entries
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.73 ▼0.571.67 ▼0.4540.83 ▼10.00
Dashboard /wp-admin2,206 ▲155.86 ▼0.01111.55 ▼5.9642.31 ▼2.41
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0840.55 ▲2.6634.55 ▼3.60
Add New Post /wp-admin/post-new.php1,537 ▲923.05 ▼0.04617.08 ▼68.1648.78 ▼2.92
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0398.05 ▲0.4141.34 ▼2.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gforms-export-entries/js/index.php
    • > /wp-content/plugins/gforms-export-entries/css/index.php
    • > /wp-content/plugins/gforms-export-entries/includes/index.php
    • > /wp-content/plugins/gforms-export-entries/images/index.php
    • > /wp-content/plugins/gforms-export-entries/admin/index.php
    • > /wp-content/plugins/gforms-export-entries/index.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gforms-export-entries/includes/gfee_handler.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gforms-export-entries/includes/schedule.php:122
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gforms-export-entries/admin/admin-page-class.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gforms-export-entries/gforms-export-entries.php:113

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 your attention:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

gforms-export-entries/gforms-export-entries.php Passed 13 tests

"Gravity Forms Export Entries" version 1.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
Export Gravity Forms entries from selected dates to an excel spreadsheet.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,247 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP72412001,499
JavaScript3477577
CSS2191171

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity47.00
▷ Minimum class complexity23.00
▷ Maximum class complexity71.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/optireto.png9.68KB8.73KB▼ 9.84%