10% umba-payment-gateway-free-for-woocommerce

Code Review | Umba Payment Gateway Free for WooCommerce

WordPress plugin Umba Payment Gateway Free for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: umba-payment-gate...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 25, 2019
  • Latest release: Jul 6, 2020
  • Number of updates: 24
  • Update frequency: every 9.5 days
  • Top authors: umbapay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /639 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/umba-payment-gateway-free-for-woocommerce/umba.php+75
    Non-static method UMBA_Activator::activate() should not be called statically

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.54ms] Passed 4 tests

Analyzing server-side resources used by Umba Payment Gateway Free for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.15 ▲3.06
Dashboard /wp-admin3.32 ▲0.0243.30 ▼4.91
Posts /wp-admin/edit.php3.44 ▲0.0843.94 ▼0.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.57 ▼17.12
Media Library /wp-admin/upload.php3.24 ▲0.0137.10 ▼0.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Umba Payment Gateway Free for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.28 ▼0.112.07 ▲0.5047.28 ▲5.35
Dashboard /wp-admin2,204 ▲235.66 ▼0.0989.79 ▼13.0738.96 ▲1.34
Posts /wp-admin/edit.php2,110 ▲132.00 ▼0.0139.19 ▲1.4237.32 ▲0.14
Add New Post /wp-admin/post-new.php1,535 ▼223.18 ▲5.11669.39 ▲65.9052.58 ▼15.99
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.05108.54 ▲11.8445.74 ▲4.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
7 plugin tags: umbaloan payment, umba loanpay, umba payment gateway, umba woocommerce payment, umbaloan payment gateway...

umba-payment-gateway-free-for-woocommerce/umba.php 85% from 13 tests

The entry point to "Umba Payment Gateway Free for WooCommerce" version 1.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("umba-payment-gateway-free-for-woocommerce.php" instead of "umba.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected954 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9142374922
CSS30632

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.88
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods12.33%
▷ Public methods4093.02%
▷ Protected methods00.00%
▷ Private methods36.98%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants24
▷ Global constants24100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/UmbaLoanPay_Button.png14.19KB4.11KB▼ 71.07%
assets/images/channels_tz.png6.69KB1.89KB▼ 71.73%
assets/images/channels_ke.png22.41KB6.10KB▼ 72.79%
assets/images/channels_ug.png17.65KB1.71KB▼ 90.30%