77% momo-mobile-money-payments-woocommerce-extension

Code Review | Checkout with Mobile Money, Western Union, WorldRemit, WorldRemit

WordPress plugin Checkout with Mobile Money, Western Union, WorldRemit, WorldRemit scored 77% from 54 tests.

About plugin

  • Plugin page: momo-mobile-money...
  • Plugin version: 4.3.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Oct 2, 2022
  • Number of updates: 68
  • Update frequency: every 12.1 days
  • Top authors: theafricanboss (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 6,748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.89ms] Passed 4 tests

Server-side resources used by Checkout with Mobile Money, Western Union, WorldRemit, WorldRemit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1136.77 ▼4.91
Dashboard /wp-admin3.41 ▲0.1144.86 ▼5.41
Posts /wp-admin/edit.php3.52 ▲0.1747.75 ▼0.02
Add New Post /wp-admin/post-new.php5.99 ▲0.1185.48 ▼13.89
Media Library /wp-admin/upload.php3.33 ▲0.1132.60 ▼3.36
MOMO IMPROVED /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=momo3.1124.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checkout with Mobile Money, Western Union, WorldRemit, WorldRemit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲13513.25 ▼1.181.64 ▼0.1740.69 ▼7.52
Dashboard /wp-admin2,279 ▲914.86 ▼0.10101.85 ▼16.2242.21 ▼3.40
Posts /wp-admin/edit.php2,158 ▲692.04 ▲0.0435.11 ▲0.3439.79 ▲1.09
Add New Post /wp-admin/post-new.php1,591 ▲5723.42 ▲0.27651.89 ▼34.8749.43 ▼1.88
Media Library /wp-admin/upload.php1,458 ▲704.26 ▲0.09101.20 ▲0.8946.79 ▲3.84
MOMO IMPROVED /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=momo280.440.064.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: Call to undefined function wp_die() in wp-content/plugins/momo-mobile-money-payments-woocommerce-extension/languages/index.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=momo
    • > Network (severe)
    wp-admin/admin.php?page=wc-settings&tab=checkout&section=momo - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: mtn, mobile money, vodacom, momo, money transfer...

momo-mobile-money-payments-woocommerce-extension/momo.php 69% from 13 tests

The entry point to "Checkout with Mobile Money, Western Union, WorldRemit, WorldRemit" version 4.3.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("momo-mobile-money-payments-woocommerce-extension.php" instead of "momo.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "4.0.0")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin642 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28281398
CSS1383188
JavaScript11256

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants3
▷ Global constants3100.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
7 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/gurastores_button.png3.23KB1.13KB▼ 64.91%
assets/theafricanboss_button.png2.91KB1.03KB▼ 64.56%
assets/worldremit.png57.73KB24.46KB▼ 57.63%
assets/westernunion.png89.68KB41.34KB▼ 53.90%
assets/momo_button.png3.04KB1.05KB▼ 65.55%