10% pin-dispenser-for-voguepay

Code Review | Product Dispenser for Voguepay Payment Gateway

WordPress plugin Product Dispenser for Voguepay Payment Gateway scored 10% from 54 tests.

About plugin

  • Plugin page: pin-dispenser-for...
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4
  • WordPress version: 6.3.1
  • First release: May 16, 2016
  • Latest release: May 17, 2016
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: ojosipeayo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,847 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/pin-dispenser-for-voguepay/VoguePayPins.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; VoguePayPins has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.33ms] Passed 4 tests

A check of server-side resources used by Product Dispenser for Voguepay Payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.58 ▼34.48
Dashboard /wp-admin2.10 ▼1.215.92 ▼44.93
Posts /wp-admin/edit.php2.10 ▼1.265.35 ▼41.83
Add New Post /wp-admin/post-new.php2.10 ▼3.796.55 ▼92.08
Media Library /wp-admin/upload.php2.10 ▼1.135.71 ▼28.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Dispenser for Voguepay Payment Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.22 ▼1.154.93 ▲3.2243.54 ▲4.27
Dashboard /wp-admin2,213 ▲224.84 ▼0.04108.93 ▲5.2142.44 ▼0.61
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0139.25 ▲4.9335.53 ▲0.27
Add New Post /wp-admin/post-new.php1,541 ▲2723.24 ▲5.64630.17 ▼56.4253.43 ▲0.29
Media Library /wp-admin/upload.php1,392 ▲14.23 ▼0.0692.49 ▼9.8143.66 ▼2.11
Vogue PIN Dispenser /wp-admin/VoguePayPins.php260.440.0813.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/pin-dispenser-for-voguepay/VoguePayPins.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; VoguePayPins has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-dispenser-for-voguepay/VoguePayPins.php:133

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/VoguePayPins.php
    • > Network (severe)
    wp-admin/VoguePayPins.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: payment gateway, voguepay, interswitch, payment gateways, pin dispenser...

pin-dispenser-for-voguepay/VoguePayPins.php 85% from 13 tests

The primary PHP file in "Product Dispenser for Voguepay Payment Gateway" version 4.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("pin-dispenser-for-voguepay.php" instead of "VoguePayPins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1291593

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin