90% voguepay-woocommerce-payment-gateway

Code Review | Voguepay WooCommerce Payment Gateway

WordPress plugin Voguepay WooCommerce Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: voguepay-woocomme...
  • Plugin version: 4.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Jan 5, 2014
  • Latest release: Jan 13, 2018
  • Number of updates: 40
  • Update frequency: every 36.7 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /24,245 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.06ms] Passed 4 tests

This is a short check of server-side resources used by Voguepay WooCommerce Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.0546.07 ▲4.26
Dashboard /wp-admin3.61 ▲0.0549.18 ▼8.04
Posts /wp-admin/edit.php3.73 ▲0.0553.48 ▼3.99
Add New Post /wp-admin/post-new.php6.19 ▲0.0589.98 ▼8.46
Media Library /wp-admin/upload.php3.53 ▲0.0542.93 ▲8.66

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Voguepay WooCommerce Payment Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▼0.132.04 ▼0.0443.74 ▼2.98
Dashboard /wp-admin2,198 ▲215.66 ▲0.0985.54 ▼16.3936.72 ▼7.32
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0536.21 ▼2.3831.91 ▼8.67
Add New Post /wp-admin/post-new.php1,545 ▲1423.40 ▲0.33645.81 ▼7.6952.21 ▲2.20
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.0497.17 ▼0.2046.35 ▲2.20

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

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

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: verve cards, woocommerce, tubiz plugins, payment gateways, payment gateway...

voguepay-woocommerce-payment-gateway/voguepay-woocommerce-payment-gateway.php Passed 13 tests

The main file in "Voguepay WooCommerce Payment Gateway" v. 4.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
133 characters long description:
Voguepay Woocommerce Payment Gateway allows you to accept payment on your Woocommerce store via Visa Card, MasterCard and Verve Card.

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
No dangerous file extensions were detected284 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114473284

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/pay-via-voguepay.png15.50KB4.62KB▼ 70.21%