84% seamlesschex-echeck-payments

Code Review | Accept eCheck Payments for WooCommerce - Verify and Accept eChecks Online Today!

WordPress plugin Accept eCheck Payments for WooCommerce - Verify and Accept eChecks Online Today! scored84%from 54 tests.

About plugin

  • Plugin page: seamlesschex-eche...
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.3-6.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2020
  • Latest release: Aug 15, 2023
  • Number of updates: 42
  • Update frequency: every 25.6 days
  • Top authors: seamlesschex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.40ms] Passed 4 tests

An overview of server-side resources used by Accept eCheck Payments for WooCommerce - Verify and Accept eChecks Online Today!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1839.46 ▲1.88
Dashboard /wp-admin3.39 ▲0.0833.34 ▼19.94
Posts /wp-admin/edit.php3.45 ▲0.0936.43 ▼9.18
Add New Post /wp-admin/post-new.php5.63 ▼0.2668.89 ▼17.70
Media Library /wp-admin/upload.php3.39 ▲0.1634.02 ▲1.24

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accept eCheck Payments for WooCommerce - Verify and Accept eChecks Online Today!
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.50 ▼0.849.56 ▲7.8742.06 ▲4.96
Dashboard /wp-admin2,217 ▲435.59 ▼0.0683.41 ▼18.4371.01 ▲25.54
Posts /wp-admin/edit.php2,119 ▲192.06 ▲0.0335.12 ▼1.5835.18 ▲1.68
Add New Post /wp-admin/post-new.php1,697 ▲16922.00 ▼0.98687.26 ▼5.2353.67 ▼1.58
Media Library /wp-admin/upload.php1,419 ▲164.25 ▲0.0896.53 ▼0.8366.53 ▲17.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seamlesschex-echeck-payments/includes/seamlesschex_extra_functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seamlesschex-echeck-payments/includes/seamlesschex_settings.php:636
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seamlesschex-echeck-payments/includes/manual-enrollment.php:6

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
5 plugin tags: woocommerce payment, seamlesschex, payment, pay, check

seamlesschex-echeck-payments/woocommerce-gateway-seamlesschex.php 85% from 13 tests

The main PHP script in "Accept eCheck Payments for WooCommerce - Verify and Accept eChecks Online Today!" version 1.3.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("seamlesschex-echeck-payments.php" instead of "woocommerce-gateway-seamlesschex.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,932 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP53273861,561
CSS35213298
JavaScript28973

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity50.00
▷ Minimum class complexity9.00
▷ Maximum class complexity91.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods513.51%
▷ Public methods3081.08%
▷ Protected methods12.70%
▷ Private methods616.22%
Functions48
▷ Named functions4797.92%
▷ Anonymous functions12.08%
Constants5
▷ Global constants5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png0.39KB0.39KB▼ 1.24%