83% paymentgatewayforquickpay

Code Review | Payment Gateway For QuickPay

WordPress plugin Payment Gateway For QuickPay scored 83% from 54 tests.

About plugin

  • Plugin page: paymentgatewayfor...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.2
  • WordPress version: 6.3.1
  • First release: May 7, 2016
  • Latest release: May 8, 2019
  • Number of updates: 19
  • Update frequency: every 63.1 days
  • Top authors: deligence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Payment Gateway For QuickPay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.98 ▼1.11
Dashboard /wp-admin3.31 ▲0.0046.94 ▼1.72
Posts /wp-admin/edit.php3.36 ▲0.0044.56 ▼5.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.01 ▼14.40
Media Library /wp-admin/upload.php3.23 ▲0.0037.12 ▲2.70

Server storage [IO: ▲0.52MB] [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: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Payment Gateway For QuickPay
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼0.821.75 ▼0.1644.14 ▼5.62
Dashboard /wp-admin2,209 ▲244.80 ▼1.07106.31 ▼10.8740.10 ▼2.15
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0634.97 ▼5.6331.48 ▼6.44
Add New Post /wp-admin/post-new.php1,533 ▲1423.35 ▲0.21676.37 ▲32.7453.32 ▲4.51
Media Library /wp-admin/upload.php1,382 ▼34.29 ▲0.1099.24 ▼0.8939.78 ▼5.80

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/paymentgatewayforquickpay/j00610QuickPay.class.php
    • > /wp-content/plugins/paymentgatewayforquickpay/j03108QuickPay.class.php
    • > /wp-content/plugins/paymentgatewayforquickpay/j00005QuickPay.class.php
    • > /wp-content/plugins/paymentgatewayforquickpay/j00510QuickPay.class.php
    • > /wp-content/plugins/paymentgatewayforquickpay/j10510QuickPay.class.php
    • > /wp-content/plugins/paymentgatewayforquickpay/j00605QuickPay.class.php
    • > /wp-content/plugins/paymentgatewayforquickpay/j00509QuickPay.class.php
    • > /wp-content/plugins/paymentgatewayforquickpay/j10509QuickPay.class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png), #7 (screenshot-7.png)
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

paymentgatewayforquickpay/index.php 92% from 13 tests

The main PHP file in "Payment Gateway For QuickPay" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("paymentgatewayforquickpay.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin524 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11107130489
HTML23035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.56
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.50MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png62.18KB23.92KB▼ 61.53%
screenshot-1.png71.33KB24.26KB▼ 65.98%
screenshot-3.png68.68KB26.66KB▼ 61.19%
screenshot-6.png58.62KB21.15KB▼ 63.91%
screenshot-5.png80.60KB27.44KB▼ 65.96%