84% gravity-forms-data-persistence-add-on

Code Review | Gravity Forms Data Persistence Add-On

WordPress plugin Gravity Forms Data Persistence Add-On scored84%from 54 tests.

About plugin

  • Plugin page: gravity-forms-dat...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2012
  • Latest release: Feb 27, 2013
  • Number of updates: 15
  • Update frequency: every 10.7 days
  • Top authors: asthait (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100+ active /6,179 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.02MB] [CPU: ▼2.43ms] Passed 4 tests

A check of server-side resources used by Gravity Forms Data Persistence Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.83 ▲2.23
Dashboard /wp-admin3.33 ▲0.0244.40 ▼2.24
Posts /wp-admin/edit.php3.38 ▲0.0245.11 ▼6.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.05 ▼2.97
Media Library /wp-admin/upload.php3.25 ▲0.0234.73 ▲3.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms Data Persistence Add-On
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.17 ▼1.521.52 ▼0.5141.24 ▲1.68
Dashboard /wp-admin2,206 ▲184.87 ▼1.03102.04 ▼6.6839.38 ▲1.30
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0533.48 ▼4.0534.63 ▲1.06
Add New Post /wp-admin/post-new.php1,545 ▲3118.39 ▲0.97595.33 ▼85.1869.84 ▲15.11
Media Library /wp-admin/upload.php1,388 ▼04.31 ▲0.1295.89 ▼15.5144.34 ▼5.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× 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/gravity-forms-data-persistence-add-on/persistent_multipage_forms.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: plugin, persistence, form, data, plug-in...

gravity-forms-data-persistence-add-on/persistent_multipage_forms.php 85% from 13 tests

The main PHP script in "Gravity Forms Data Persistence Add-On" version 3.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-data-persistence-add-on.php" instead of "persistent_multipage_forms.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 295 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14015106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin