93% gf-payment-continue

Code Review | Gravity Forms Payment Continue

WordPress plugin Gravity Forms Payment Continue scored 93% from 54 tests.

About plugin

  • Plugin page: gf-payment-continue
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.4-5.0.2
  • WordPress version: 5.8.1
  • First release: May 4, 2017
  • Latest release: Jan 2, 2019
  • Number of updates: 41
  • Update frequency: every 15.0 days
  • Top authors: eclev91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,328 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Gravity Forms Payment Continue
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.98 ▲1.17
Dashboard /wp-admin3.06 ▲0.0134.67 ▼18.47
Posts /wp-admin/edit.php3.11 ▲0.0145.80 ▲1.57
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.51 ▼686.39
Media Library /wp-admin/upload.php3.00 ▲0.0034.68 ▲4.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms Payment Continue
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10616.26 ▲0.6611.12 ▲1.5548.95 ▼2.76
Dashboard /wp-admin2,973 ▲425.94 ▼0.12137.55 ▼5.27117.77 ▲9.65
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0264.41 ▼4.0090.36 ▲3.32
Add New Post /wp-admin/post-new.php1,672 ▲17418.88 ▲0.08365.50 ▼3.49110.48 ▼3.32
Media Library /wp-admin/upload.php1,810 ▼05.02 ▼0.04143.16 ▼8.27119.09 ▼5.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-payment-continue/payment-continue.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gf-payment-continue/includes/upgraders/upgrade_1_1_0.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-payment-continue/gravity-forms-payment-continue.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: paypal, gravity forms

gf-payment-continue/payment-continue.php 77% from 13 tests

The main file in "Gravity Forms Payment Continue" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("gf-payment-continue.php" instead of "payment-continue.php")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,197 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON200921
PHP483273201
JavaScript18144
Markdown115031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin