10% gf-loqate-bank-verification

Code Review | GF Loqate Bank Verification

WordPress plugin GF Loqate Bank Verification scored10%from 54 tests.

About plugin

  • Plugin page: gf-loqate-bank-ve...
  • Plugin version: 0.5.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.10-5.3
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: Oct 24, 2019
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: tangrufus (87.5%)itinerisltd (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Error in wp-content/plugins/gf-loqate-bank-verification/src/Plugin.php+20
    Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-loqate-bank-verification/src/Plugin.php:20
    Stack trace:
    #0 wp-content/plugins/gf-loqate-bank-verification/gf-loqate-bank-verification.php(30): Itineris\GFLoqateBankVerification\Plugin::run()
    #1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

Analyzing server-side resources used by GF Loqate Bank Verification
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.24 ▼5.45
Dashboard /wp-admin3.31 ▲0.0046.43 ▼6.93
Posts /wp-admin/edit.php3.36 ▲0.0043.14 ▼6.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.58 ▼8.73
Media Library /wp-admin/upload.php3.23 ▲0.0034.63 ▼3.65

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GF Loqate Bank Verification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.69 ▲0.361.74 ▼0.1941.66 ▼3.85
Dashboard /wp-admin2,198 ▲185.63 ▲0.0489.09 ▼8.3243.11 ▼1.09
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0839.01 ▲2.1339.26 ▼1.74
Add New Post /wp-admin/post-new.php1,539 ▲1318.33 ▼5.28635.65 ▼20.3465.51 ▲13.30
Media Library /wp-admin/upload.php1,397 ▼64.28 ▲0.10102.62 ▲0.2342.88 ▼0.75

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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

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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GFAddOn' not found in wp-content/plugins/gf-loqate-bank-verification/src/AddOn.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Itineris\\GFLoqateBankVerification\\API\\BankAccountValidator' not found in wp-content/plugins/gf-loqate-bank-verification/src/API/TransientCachedBankAccountValidator.php:7

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

gf-loqate-bank-verification/gf-loqate-bank-verification.php Passed 13 tests

The primary PHP file in "GF Loqate Bank Verification" version 0.5.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Verify Gravity Forms bank details with Loqate bank verification API.

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 plugin723 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP17171202723

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.92
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods51
▷ Static methods917.65%
▷ Public methods3568.63%
▷ Protected methods1427.45%
▷ Private methods23.92%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants650.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin