84% edd-securionpay

Code Review | Payment Gateway For EDD - SecurionPay

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

About plugin

  • Plugin page: edd-securionpay
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Aug 27, 2023
  • Number of updates: 9
  • Update frequency: every 138.1 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /497 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.31ms] 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 /3.46 ▲0.0035.25 ▼2.98
Dashboard /wp-admin3.31 ▲0.0042.79 ▼6.52
Posts /wp-admin/edit.php3.36 ▲0.0045.42 ▼3.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.13 ▼4.49
Media Library /wp-admin/upload.php3.23 ▲0.0034.76 ▲0.31

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, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

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 /2,789 ▲2814.35 ▲0.001.64 ▲0.0640.43 ▼6.01
Dashboard /wp-admin2,195 ▲205.54 ▼0.1680.64 ▼20.3437.36 ▼5.68
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0438.56 ▼5.1036.17 ▼2.88
Add New Post /wp-admin/post-new.php1,534 ▲818.20 ▼5.57616.37 ▼59.7360.27 ▲3.52
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.00102.82 ▼6.4744.14 ▼0.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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/SubscriptionListRequest.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/Refund.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/CustomerListRequest.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/ChargeRequest.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/Billing.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/SubscriptionUpdateRequest.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/PlanRequest.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/ErrorResponse.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/CustomerRecordProfit.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/CrossSaleOfferListRequest.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: payments, credit-card, edd, securionpay, payment gateway...

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

The entry point to "Payment Gateway For EDD - SecurionPay" version 1.0.2 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,655 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
PHP881,1446634,543
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