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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.11 | 36.77 ▼4.91 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.86 ▼5.41 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 47.75 ▼0.02 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 85.48 ▼13.89 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 32.60 ▼3.36 |
MOMO IMPROVED /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=momo | 3.11 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 13.25 ▼1.18 | 1.64 ▼0.17 | 40.69 ▼7.52 |
Dashboard /wp-admin | 2,279 ▲91 | 4.86 ▼0.10 | 101.85 ▼16.22 | 42.21 ▼3.40 |
Posts /wp-admin/edit.php | 2,158 ▲69 | 2.04 ▲0.04 | 35.11 ▲0.34 | 39.79 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,591 ▲57 | 23.42 ▲0.27 | 651.89 ▼34.87 | 49.43 ▼1.88 |
Media Library /wp-admin/upload.php | 1,458 ▲70 | 4.26 ▲0.09 | 101.20 ▲0.89 | 46.79 ▲3.84 |
MOMO IMPROVED /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=momo | 28 | 0.44 | 0.06 | 4.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
- > PHP Fatal error
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§ion=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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 82 | 81 | 398 |
CSS | 1 | 38 | 3 | 188 |
JavaScript | 1 | 1 | 2 | 56 |
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 code | 0.18 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gurastores_button.png | 3.23KB | 1.13KB | ▼ 64.91% |
assets/theafricanboss_button.png | 2.91KB | 1.03KB | ▼ 64.56% |
assets/worldremit.png | 57.73KB | 24.46KB | ▼ 57.63% |
assets/westernunion.png | 89.68KB | 41.34KB | ▼ 53.90% |
assets/momo_button.png | 3.04KB | 1.05KB | ▼ 65.55% |