94% edd-securionpay

Code Review | Payment Gateway For EDD - SecurionPay

WordPress plugin Payment Gateway For EDD - SecurionPay scored 94% from 54 tests.

About plugin

  • Plugin page: edd-securionpay
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 5.8.1
  • First release: Apr 1, 2020
  • Latest release: Apr 9, 2020
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 209 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Payment Gateway For EDD - SecurionPay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0039.82 ▲2.86
Dashboard /wp-admin3.06 ▲0.0045.89 ▼1.12
Posts /wp-admin/edit.php3.11 ▲0.0044.16 ▼3.15
Add New Post /wp-admin/post-new.php5.42 ▼0.0294.46 ▼557.46
Media Library /wp-admin/upload.php3.00 ▲0.0035.61 ▼0.42

Server storage [IO: ▲0.15MB] [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: 96 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Payment Gateway For EDD - SecurionPay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.90 ▲0.4110.67 ▲0.2248.57 ▲0.09
Dashboard /wp-admin2,973 ▲395.86 ▼0.08141.47 ▼0.94111.96 ▼7.66
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0068.81 ▲2.0688.16 ▼7.70
Add New Post /wp-admin/post-new.php1,683 ▼018.49 ▼0.24391.40 ▲6.51115.47 ▼1.60
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.01174.64 ▲23.33124.44 ▼3.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 71× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Request\\AbstractRequest' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Request/PlanRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Request\\AbstractRequest' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Request/AddressRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Request\\AbstractRequest' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Request/CaptureRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Request\\AbstractRequest' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Request/CardListRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Request\\AbstractRequest' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Request/CrossSaleOfferRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Response\\AbstractResponse' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Response/Customer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Response\\AbstractResponse' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Response/DeleteResponse.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Response\\AbstractResponse' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Response/CrossSaleOfferSubscription.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Request\\AbstractRequest' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Request/SubscriptionCancelRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SecurionPay\\Request\\AbstractRequest' not found in wp-content/plugins/edd-securionpay/includes/vendor/securionpay/securionpay-php/lib/SecurionPay/Request/ChargeUpdateRequest.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: securionpay, payment gateway, secure-payment, payments, credit-card...

edd-securionpay/edd-securionpay.php 85% from 13 tests

The entry point to "Payment Gateway For EDD - SecurionPay" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

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
No dangerous file extensions were detected4,621 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
PHP881,1626624,509
JSON20061
Markdown121051

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.31
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes83
▷ Abstract classes22.41%
▷ Concrete classes8197.59%
▷ Final classes00.00%
Methods872
▷ Static methods40.46%
▷ Public methods85497.94%
▷ Protected methods10.11%
▷ Private methods171.95%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected