89% novalnet-payment-add-on-for-gravity-forms

Code Review | Gravity Forms payment plugin - Novalnet AG

WordPress plugin Gravity Forms payment plugin - Novalnet AG scored89%from 54 tests.

About plugin

  • Plugin page: novalnet-payment-...
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2023
  • Latest release: Sep 29, 2023
  • Number of updates: 21
  • Update frequency: every 11.1 days
  • Top authors: Novalnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /203 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by Gravity Forms payment plugin - Novalnet AG
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.01 ▼0.51
Dashboard /wp-admin3.32 ▲0.0152.03 ▼1.28
Posts /wp-admin/edit.php3.37 ▲0.0146.14 ▼4.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.73 ▼4.91
Media Library /wp-admin/upload.php3.24 ▲0.0135.54 ▼1.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms payment plugin - Novalnet AG
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.22 ▼0.502.16 ▲0.2244.22 ▼5.18
Dashboard /wp-admin2,195 ▲215.51 ▼0.0987.56 ▼17.5542.73 ▼1.12
Posts /wp-admin/edit.php2,103 ▲62.00 ▲0.0235.25 ▼0.6633.88 ▼0.53
Add New Post /wp-admin/post-new.php1,528 ▼023.08 ▲0.20676.70 ▼4.9456.02 ▲3.56
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0397.46 ▼12.9142.30 ▼3.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 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
4 plugin tags: payment gateway, novalnet payment, credit cards, payments

novalnet-payment-add-on-for-gravity-forms/novalnet-gravity-forms.php 85% from 13 tests

The entry point to "Gravity Forms payment plugin - Novalnet AG" version 3.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("novalnet-payment-add-on-for-gravity-forms.php" instead of "novalnet-gravity-forms.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,745 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP73029622,550
JavaScript1316166
SVG10029

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity83.40
▷ Minimum class complexity5.00
▷ Maximum class complexity162.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods107
▷ Static methods4844.86%
▷ Public methods10699.07%
▷ Protected methods00.00%
▷ Private methods10.93%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin