100% woo-mobile-money

Code Review | Woocommerce Mobile Money

WordPress plugin Woocommerce Mobile Money scored 100% from 54 tests.

About plugin

  • Plugin page: woo-mobile-money
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.2
  • WordPress version: 5.8.1
  • First release: May 30, 2017
  • Latest release: Jan 18, 2018
  • Number of updates: 29
  • Update frequency: every 8.0 days
  • Top authors: socialpay256 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,596 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Woocommerce Mobile Money
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0335.59 ▼3.21
Dashboard /wp-admin3.09 ▲0.0349.86 ▲0.70
Posts /wp-admin/edit.php3.14 ▲0.0343.47 ▼7.44
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.30 ▼585.02
Media Library /wp-admin/upload.php3.03 ▲0.0327.66 ▼5.97

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Woocommerce Mobile Money: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.87 ▲0.3411.14 ▲2.4549.07 ▼9.41
Dashboard /wp-admin2,973 ▲425.87 ▼0.04138.88 ▼8.70107.47 ▼11.36
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0167.38 ▼7.4197.02 ▲0.81
Add New Post /wp-admin/post-new.php1,591 ▼9218.47 ▼0.40373.87 ▼29.49112.18 ▲3.00
Media Library /wp-admin/upload.php1,810 ▲35.04 ▼0.01157.59 ▼1.09119.75 ▼7.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: mtn, uganda, airtel, woo, socialpay...

woo-mobile-money/woo-mobile-money.php 92% from 13 tests

This is the main PHP file of "Woocommerce Mobile Money" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14520144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin