83% chasee-xact-payment-gateway-for-woocommerce

Code Review | Chase E-Xact Payment Gateway For WooCommerce

WordPress plugin Chase E-Xact Payment Gateway For WooCommercescored83%from 54 tests.

About plugin

  • Plugin page: chasee-xact-payme...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Jun 12, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: kwoodall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,721 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.51ms] Passed 4 tests

An overview of server-side resources used by Chase E-Xact Payment Gateway For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0633.90 ▼5.19
Dashboard /wp-admin3.36 ▲0.0246.15 ▼11.92
Posts /wp-admin/edit.php3.41 ▲0.0647.60 ▼0.84
Add New Post /wp-admin/post-new.php5.94 ▲0.0678.86 ▼20.08
Media Library /wp-admin/upload.php3.28 ▲0.0634.44 ▼0.10

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Chase E-Xact Payment Gateway For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.161.67 ▼0.0940.69 ▼2.43
Dashboard /wp-admin2,203 ▲125.83 ▲0.78112.03 ▲11.6241.07 ▼0.73
Posts /wp-admin/edit.php2,089 ▼62.00 ▲0.0136.33 ▼0.8034.25 ▼1.78
Add New Post /wp-admin/post-new.php1,545 ▲3123.03 ▲5.48669.31 ▼15.7653.86 ▼4.69
Media Library /wp-admin/upload.php1,388 ▲64.19 ▲0.0195.93 ▼6.5840.51 ▼4.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chasee-xact-payment-gateway-for-woocommerce/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === Chase E-Xact Payment Gateway For WooCommerce=== )
  • Screenshots: Add images for these screenshots: #1 (Activate Plugin.), #2 (Go to WooCommerce Settings.), #3 (Select Payment Gateways tab.), #4 (Select Chase E-Xact option.), #5 (Enable Chase E-Xact option from this page.), #6 (Enter the details.), #7 (Set gateway mode.), #8 (Sample screenshot from checkout page)
The official readme.txt might help

chasee-xact-payment-gateway-for-woocommerce/index.php 85% from 13 tests

Analyzing the main PHP file in "Chase E-Xact Payment Gateway For WooCommerce" version 1.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("chasee-xact-payment-gateway-for-woocommerce.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected268 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13241268

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin