84% owcc-payment-gateway

Code Review | Official Wakanda Coin Payment Gateway for WooCommerce

WordPress plugin Official Wakanda Coin Payment Gateway for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: owcc-payment-gateway
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2021
  • Latest release: Oct 5, 2021
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: wakandacoin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /297 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.04MB] [CPU: ▼9.61ms] Passed 4 tests

An overview of server-side resources used by Official Wakanda Coin Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.31 ▼0.15
Dashboard /wp-admin3.35 ▲0.0144.62 ▼15.97
Posts /wp-admin/edit.php3.41 ▲0.0542.09 ▼6.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.88 ▼16.15
Media Library /wp-admin/upload.php3.28 ▲0.0538.89 ▲6.50

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Official Wakanda Coin Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11613.42 ▼1.318.96 ▲7.3942.81 ▲3.97
Dashboard /wp-admin2,195 ▲185.61 ▲0.0083.91 ▼3.1239.68 ▼1.06
Posts /wp-admin/edit.php2,100 ▲212.01 ▲0.0236.90 ▲0.6835.69 ▲4.84
Add New Post /wp-admin/post-new.php1,535 ▲917.88 ▼5.17602.97 ▼14.7684.49 ▲38.15
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.07111.56 ▲1.6246.95 ▼0.90

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/owcc-payment-gateway/PWN_Wakanda.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
4 plugin tags: bitcoin, payments, owcc, xlm

owcc-payment-gateway/OWCC-Payment-Gateway.php 92% from 13 tests

Analyzing the main PHP file in "Official Wakanda Coin Payment Gateway for WooCommerce" version 1.0.1
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("owcc-payment-gateway.php" instead of "OWCC-Payment-Gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin355 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP311349250
JavaScript2193573
CSS19029
INI1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.39MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png28.76KB11.17KB▼ 61.14%
assets/icon-256x256.png93.49KB32.01KB▼ 65.76%
assets/screenshot-1.PNG103.70KB48.88KB▼ 52.86%
assets/screenshot-2.PNG178.29KB72.83KB▼ 59.15%