89% jumiapay-wc

Code Review | JumiaPay For Woocommerce - Payment Gateway

WordPress plugin JumiaPay For Woocommerce - Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: jumiapay-wc
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Aug 16, 2021
  • Latest release: Nov 24, 2022
  • Number of updates: 32
  • Update frequency: every 20.3 days
  • Top authors: jpaywebshop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,841 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.96ms] Passed 4 tests

Analyzing server-side resources used by JumiaPay For Woocommerce - Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.81 ▼7.26
Dashboard /wp-admin3.31 ▲0.0148.53 ▼4.75
Posts /wp-admin/edit.php3.36 ▲0.0147.05 ▲3.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.14 ▼8.21
Media Library /wp-admin/upload.php3.23 ▲0.0134.16 ▲0.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by JumiaPay For Woocommerce - Payment Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.171.59 ▼0.9842.76 ▼7.20
Dashboard /wp-admin2,206 ▲155.91 ▲0.02110.54 ▼0.2041.22 ▼1.29
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0340.67 ▲2.5235.13 ▲2.60
Add New Post /wp-admin/post-new.php1,533 ▲423.32 ▲5.28671.86 ▲10.3057.23 ▲4.12
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.02100.84 ▲2.5241.19 ▼3.14

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: payment request, woocommerce, jumiapay, payment gateway

jumiapay-wc/woocommerce-jumiapay.php 85% from 13 tests

"JumiaPay For Woocommerce - Payment Gateway" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 204 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("jumiapay-wc.php" instead of "woocommerce-jumiapay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected728 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10156247708
SVG10020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.29
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods411.76%
▷ Public methods2573.53%
▷ Protected methods00.00%
▷ Private methods926.47%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.96MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png327.58KB98.97KB▼ 69.79%
assets/icon-128x128.png5.78KB2.30KB▼ 60.28%
assets/image/secured_payfac_ic.png7.14KB3.45KB▼ 51.73%
assets/image/secured_payfac_ng.png6.06KB3.21KB▼ 47.10%
wordpress_org_assets/banner-772x250.png116.04KB37.14KB▼ 67.99%