89% wc-zeus-gateway

Code Review | Payment Gateway Zeus for WooCommerce

WordPress plugin Payment Gateway Zeus for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: wc-zeus-gateway
  • Plugin version: 0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2021
  • Latest release: Apr 20, 2021
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: Hiroaki Miyashita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 419 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.21MB] [CPU: ▲0.99ms] Passed 4 tests

Server-side resources used by Payment Gateway Zeus for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2143.35 ▲4.74
Dashboard /wp-admin3.52 ▲0.2153.12 ▼3.25
Posts /wp-admin/edit.php3.63 ▲0.2752.48 ▼1.13
Add New Post /wp-admin/post-new.php6.10 ▲0.21105.86 ▲18.22
Media Library /wp-admin/upload.php3.44 ▲0.2138.98 ▲3.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Payment Gateway Zeus for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲1913.66 ▲0.411.89 ▼2.9739.84 ▼3.39
Dashboard /wp-admin2,217 ▲115.85 ▲0.06107.04 ▲7.2742.18 ▲3.36
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0340.38 ▲0.6338.46 ▲4.62
Add New Post /wp-admin/post-new.php1,547 ▲1323.26 ▲0.02601.66 ▼76.6449.04 ▼12.69
Media Library /wp-admin/upload.php1,399 ▲114.17 ▼0.06100.82 ▲0.3841.86 ▼1.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Zeus - Settings)
You can look at the official readme.txt

wc-zeus-gateway/wc-zeus-gateway.php 77% from 13 tests

The main file in "Payment Gateway Zeus for WooCommerce" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path should use only dashes and lowercase characters ("/")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.4")
  • Domain Path: Prefix the domain path with a forward slash character ("//")

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
Everything looks great! No dangerous files found in this plugin1,219 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP116215958
PO File11,5803,385261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity8.25
▷ Minimum class complexity3.00
▷ Maximum class complexity42.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png56.01KB20.03KB▼ 64.24%