84% gf-ach-field

Code Review | Gravity Forms ACH Field Type

WordPress plugin Gravity Forms ACH Field Type scored84%from 54 tests.

About plugin

  • Plugin page: gf-ach-field
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 14, 2020
  • Latest release: Aug 11, 2023
  • Number of updates: 11
  • Update frequency: every 119.0 days
  • Top authors: mohsinoffline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,872 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Gravity Forms ACH Field Type
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.21 ▼3.05
Dashboard /wp-admin3.31 ▲0.0145.23 ▼5.80
Posts /wp-admin/edit.php3.36 ▲0.0045.44 ▼2.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.11 ▼14.37
Media Library /wp-admin/upload.php3.23 ▲0.0034.86 ▼1.19

Server storage [IO: ▲0.03MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms ACH Field Type
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.40 ▼0.981.68 ▼0.4940.50 ▼10.33
Dashboard /wp-admin2,206 ▲214.86 ▼0.22102.47 ▼12.7438.88 ▼6.96
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0035.36 ▼3.7133.81 ▲0.68
Add New Post /wp-admin/post-new.php1,533 ▲523.14 ▲4.91623.51 ▼19.9451.09 ▲4.83
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.1194.54 ▼2.3439.71 ▼1.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gf-ach-field/core.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-ach-field/scripts.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can look at the official readme.txt

gf-ach-field/core.php 92% from 13 tests

The primary PHP file in "Gravity Forms ACH Field Type" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gf-ach-field.php" instead of "core.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin324 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37074324

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity71.00
▷ Minimum class complexity71.00
▷ Maximum class complexity71.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.90KB0.97KB0.00%