Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.45ms] Passed 4 tests
A check of server-side resources used by Payment Gateway for MTN MoMo on WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.04 ▼2.23 |
Dashboard /wp-admin | 3.38 ▲0.07 | 41.78 ▼10.02 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 53.44 ▲4.57 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.55 ▼20.79 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.31 ▼0.74 |
Server storage [IO: ▲0.03MB] [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: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_momo_trx |
New WordPress options |
---|
widget_recent-comments |
trx_db_version |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Payment Gateway for MTN MoMo on WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲112 | 13.61 ▼0.95 | 7.06 ▲5.27 | 39.75 ▼0.99 |
Dashboard /wp-admin | 2,209 ▲18 | 5.85 ▼0.05 | 111.01 ▲11.14 | 42.04 ▲0.54 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.97 ▼0.06 | 40.95 ▲7.04 | 36.19 ▲4.36 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.28 ▲0.31 | 590.49 ▼68.75 | 57.92 ▲5.22 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.02 | 96.11 ▼15.57 | 40.32 ▼6.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_momo_trx
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- trx_db_version
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wc-mtn-momo-payment-gateway/Gateway_Woocommerce_MoMo.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
10 plugin tags: mobile, mtn, mobile payments, momo, online...
wc-mtn-momo-payment-gateway/Gateway_Woocommerce_MoMo.php 92% from 13 tests
The main PHP script in "Payment Gateway for MTN MoMo on WooCommerce" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-mtn-momo-payment-gateway.php" instead of "Gateway_Woocommerce_MoMo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected377 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 83 | 319 |
JavaScript | 1 | 22 | 1 | 40 |
CSS | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 9 | 60.00% |
▷ Anonymous functions | 6 | 40.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin