90% woo-voguepay

Code Review | VoguePay plugin for WooCommerce

WordPress plugin VoguePay plugin for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-voguepay
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Jul 14, 2018
  • Latest release: Mar 17, 2020
  • Number of updates: 52
  • Update frequency: every 11.8 days
  • Top authors: kunlexzy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /5,448 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.15MB] [CPU: ▼7.19ms] Passed 4 tests

Analyzing server-side resources used by VoguePay plugin for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.94 ▼3.43
Dashboard /wp-admin3.21 ▼0.0939.44 ▼12.76
Posts /wp-admin/edit.php3.28 ▼0.0842.38 ▼10.26
Add New Post /wp-admin/post-new.php5.45 ▼0.4383.08 ▼2.31
Media Library /wp-admin/upload.php3.21 ▼0.0134.55 ▲0.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for VoguePay plugin for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲3613.23 ▼1.421.74 ▼0.2447.16 ▲4.82
Dashboard /wp-admin2,216 ▲285.88 ▼0.02126.31 ▲19.5543.21 ▲1.40
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0341.97 ▲5.4139.13 ▲3.34
Add New Post /wp-admin/post-new.php1,529 ▲1023.41 ▲0.07618.24 ▼80.0147.77 ▼6.55
Media Library /wp-admin/upload.php1,395 ▲74.30 ▲0.1799.50 ▼14.6742.30 ▼3.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% 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
9 plugin tags: nigeria, voguepay, online payment, woocommerce, payment plugin...

woo-voguepay/woo-voguepay.php 92% from 13 tests

"VoguePay plugin for WooCommerce" version 1.5.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected888 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP325684594
PO File19494256
JavaScript28038

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity47.00
▷ Minimum class complexity30.00
▷ Maximum class complexity64.00
Average method complexity7.57
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/pay-via-voguepay.png10.27KB3.75KB▼ 63.52%