67% auto-advance-for-gravity-forms

Code Review | Multi Page Auto Advance for Gravity Forms

WordPress plugin Multi Page Auto Advance for Gravity Forms scored67%from 54 tests.

About plugin

  • Plugin page: auto-advance-for-...
  • Plugin version: 4.6.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Oct 16, 2023
  • Number of updates: 64
  • Update frequency: every 27.8 days
  • Top authors: zerozendesign (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

4,000+ active /35,513 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.36MB] [CPU: ▲19.24ms] 75% from 4 tests

Analyzing server-side resources used by Multi Page Auto Advance for Gravity Forms
The following require your attention
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.36MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.21 ▲5.7561.21 ▲20.29
Dashboard /wp-admin9.23 ▲5.9366.48 ▲17.79
Posts /wp-admin/edit.php9.24 ▲5.8875.60 ▲29.07
Add New Post /wp-admin/post-new.php9.77 ▲3.89101.15 ▲14.14
Media Library /wp-admin/upload.php9.23 ▲6.0162.67 ▲24.72
Auto Advance for GravityForms /wp-admin/admin.php?page=auto-advance-for-gravity-forms9.2360.13
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius9.2453.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 219 new files
Database: no new tables, 9 new options
New WordPress options
fs_accounts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
fs_debug_mode
widget_recent-posts
widget_recent-comments
fs_active_plugins
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Page Auto Advance for Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.35 ▲0.001.54 ▼0.1928.21 ▼18.40
Dashboard /wp-admin2,226 ▲465.76 ▲0.1695.36 ▲7.4144.34 ▲2.45
Posts /wp-admin/edit.php2,136 ▲362.12 ▲0.1141.25 ▲8.2438.53 ▲0.41
Add New Post /wp-admin/post-new.php1,546 ▲2021.50 ▼1.68691.21 ▲15.6658.92 ▲1.68
Media Library /wp-admin/upload.php1,435 ▲354.22 ▲0.1294.58 ▼7.3947.05 ▲0.36
Auto Advance for GravityForms /wp-admin/admin.php?page=auto-advance-for-gravity-forms9791.5625.2558.94
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0541.5525.2327.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/auto-advance-for-gravity-forms/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 9 options in the database
    • fs_debug_mode
    • widget_recent-comments
    • fs_accounts
    • widget_theysaidso_widget
    • widget_recent-posts
    • fs_active_plugins
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php
  • 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: form_id in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 18
    • > PHP Notice
      Undefined variable: completed_number_color in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 29
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/auto-advance-for-gravity-forms/php/color-customizer.php on line 3
    • > PHP Notice
      Undefined variable: inactive_border in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 4
    • > PHP Notice
      Undefined variable: completed_number_bg in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 23
    • > PHP Notice
      Undefined variable: inactive_number_bg in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 2
    • > PHP Notice
      Undefined variable: form_id in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 1
    • > PHP Notice
      Undefined variable: completed_text_color in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 33
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/auto-advance-for-gravity-forms/class-gfautoadvancedaddon.php:3
    • > PHP Notice
      Undefined variable: inactive_text_color in wp-content/plugins/auto-advance-for-gravity-forms/css/dynamic-css.php on line 8

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

auto-advance-for-gravity-forms/auto-advance-for-gravity-forms.php 92% from 13 tests

Analyzing the main PHP file in "Multi Page Auto Advance for Gravity Forms" version 4.6.2
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 226 characters long)

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin52,873 lines of code in 167 files:
LanguageFilesBlank linesComment linesLines of code
PHP1258,16517,39535,132
PO File126,9608,45515,240
CSS19203851,150
JavaScript63771201,116
Markdown1680214
XML13016
SVG3005

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity91.27
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes51
▷ Abstract classes23.92%
▷ Concrete classes4996.08%
▷ Final classes00.00%
Methods1,298
▷ Static methods20615.87%
▷ Public methods90869.95%
▷ Protected methods171.31%
▷ Private methods37328.74%
Functions108
▷ Named functions108100.00%
▷ Anonymous functions00.00%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
icon.png9.95KB9.95KB0.00%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
images/arrow.png59.36KB23.15KB▼ 61.00%
images/icon.png22.65KB7.95KB▼ 64.92%