84% gf-confirmation-page-list

Code Review | Gravity Forms Confirmation Page List

WordPress plugin Gravity Forms Confirmation Page List scored84%from 54 tests.

About plugin

  • Plugin page: gf-confirmation-p...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Mar 8, 2019
  • Latest release: Mar 8, 2019
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: prontotools (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /676 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.17ms] Passed 4 tests

Analyzing server-side resources used by Gravity Forms Confirmation Page List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.73 ▼5.30
Dashboard /wp-admin3.31 ▼0.0343.51 ▼21.02
Posts /wp-admin/edit.php3.36 ▲0.0144.23 ▲0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.40 ▼16.16
Media Library /wp-admin/upload.php3.24 ▲0.0132.53 ▼2.19

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms Confirmation Page List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.371.68 ▼0.2741.85 ▼2.05
Dashboard /wp-admin2,206 ▲184.86 ▼0.02113.79 ▼3.0639.33 ▼6.23
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0440.46 ▲4.6735.05 ▲0.40
Add New Post /wp-admin/post-new.php1,547 ▲118.40 ▼0.02596.25 ▼70.0467.84 ▲17.89
Media Library /wp-admin/upload.php1,385 ▼64.19 ▼0.0496.93 ▲1.7340.92 ▼1.55

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gf-confirmation-page-list/gravityforms-confirmation-page-list.php:18
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gf-confirmation-page-list/tests/test_confirmation_page.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_PLUGIN_DIR/gf-confirmation-page-list/gravityforms-confirmation-page-list.php' (include_path='.:/usr/share/php') in wp-content/plugins/gf-confirmation-page-list/tests/test_confirmation_page.php on line 2
    • > PHP Warning
      require_once(WP_PLUGIN_DIR/gf-confirmation-page-list/gravityforms-confirmation-page-list.php): failed to open stream: No such file or directory in wp-content/plugins/gf-confirmation-page-list/tests/test_confirmation_page.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: confirmations, add-on, gravity forms

gf-confirmation-page-list/gravityforms-confirmation-page-list.php 92% from 13 tests

Analyzing the main PHP file in "Gravity Forms Confirmation Page List" version 1.0.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gf-confirmation-page-list.php" instead of "gravityforms-confirmation-page-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin86 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2131050
Bourne Shell16429
Markdown2707

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected