90% cardinalcommerce-oneconnect

Code Review | 3-D Secure Payment Gateway by CardinalCommerce

WordPress plugin 3-D Secure Payment Gateway by CardinalCommerce scored90%from 54 tests.

About plugin

  • Plugin page: cardinalcommerce-...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Feb 5, 2019
  • Number of updates: 53
  • Update frequency: every 13.7 days
  • Top authors: cardinalmarketing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,992 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by 3-D Secure Payment Gateway by CardinalCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.14 ▼1.97
Dashboard /wp-admin3.31 ▲0.0149.71 ▼3.88
Posts /wp-admin/edit.php3.36 ▲0.0048.84 ▲0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.09 ▼1.26
Media Library /wp-admin/upload.php3.23 ▲0.0038.99 ▲5.92

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for 3-D Secure Payment Gateway by CardinalCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.172.03 ▼0.0355.94 ▲11.62
Dashboard /wp-admin2,209 ▲214.86 ▼0.95119.36 ▲0.4146.39 ▲1.64
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0136.50 ▲1.2634.78 ▼3.33
Add New Post /wp-admin/post-new.php1,533 ▲1423.06 ▼0.12711.14 ▲68.8560.89 ▲3.62
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.11109.48 ▲6.1449.13 ▲5.32

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: 3ds, sca, payment, authentication, psd2

cardinalcommerce-oneconnect/cardinalcommerce-oneconnect.php Passed 13 tests

This is the main PHP file of "3-D Secure Payment Gateway by CardinalCommerce" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Module for processing payments with CardinalCommerce and optional Cardinal Consumer Authentication (CCA)

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
Good job! No executable or dangerous file extensions detected1,048 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP511366970
JavaScript111078

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity38.00
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods411.43%
▷ Public methods2982.86%
▷ Protected methods00.00%
▷ Private methods617.14%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin