10% concordpay-for-wp-ecommerce

Code Review | ConcordPay Payment Gateway for WP eCommerce

WordPress plugin ConcordPay Payment Gateway for WP eCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: concordpay-for-wp...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.8
  • WordPress version: 6.3.1
  • First release: Apr 23, 2021
  • Latest release: Jan 20, 2022
  • Number of updates: 6
  • Update frequency: every 45.5 days
  • Top authors: mustpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 479 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/concordpay-for-wp-ecommerce/concordpay-for-wp-ecommerce.php+24
    require_once(wp-content/plugins/concordpay-for-wp-ecommerce/../wp-e-commerce/wpsc-includes/merchant.class.php): failed to open stream: No such file or directory

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

This is a short check of server-side resources used by ConcordPay Payment Gateway for WP eCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.52 ▼7.70
Dashboard /wp-admin3.31 ▲0.0047.55 ▼2.56
Posts /wp-admin/edit.php3.36 ▲0.0049.52 ▼1.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.74 ▼14.63
Media Library /wp-admin/upload.php3.23 ▲0.0036.42 ▲4.69

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

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

Browser metrics Passed 4 tests

ConcordPay Payment Gateway for WP eCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.431.67 ▼0.3640.96 ▼9.23
Dashboard /wp-admin2,206 ▲185.83 ▼0.06102.32 ▼13.9942.00 ▼3.19
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0237.05 ▼3.3534.42 ▼4.75
Add New Post /wp-admin/post-new.php1,538 ▲1023.17 ▲4.87658.65 ▲14.9452.04 ▼0.28
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0194.68 ▼13.0841.99 ▼5.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

concordpay-for-wp-ecommerce/concordpay-for-wp-ecommerce.php 92% from 13 tests

The main PHP file in "ConcordPay Payment Gateway for WP eCommerce" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.5" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected659 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101205410
PO File2107195168
SVG10168
Markdown110013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1071.43%
▷ Protected methods214.29%
▷ Private methods214.29%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin