Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.44ms] Passed 4 tests
Server-side resources used by Pay with MTN MoMo in WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.10 ▼2.61 |
Dashboard /wp-admin | 3.34 ▼0.01 | 52.83 ▼1.81 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.65 ▲3.63 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.45 ▼19.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 38.28 ▲2.42 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_momopay_payments |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
wp_momopay_payments_db_version |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Pay with MTN MoMo in WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.45 ▼0.93 | 9.57 ▲7.76 | 43.52 ▲2.27 |
Dashboard /wp-admin | 2,202 ▲22 | 5.67 ▼0.03 | 89.66 ▲2.57 | 41.47 ▲2.40 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.01 | 37.14 ▲0.09 | 33.14 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.14 ▼0.37 | 698.49 ▲72.29 | 47.18 ▼5.13 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.01 | 105.63 ▲0.89 | 45.92 ▲1.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- wp_momopay_payments_db_version
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pay-with-mtn-momo-woocommerce/mtn-momo-pay.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/pay-with-mtn-momo-woocommerce/classes/class_momo_pay_gateway.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: mtn momo, mtn, mobile money, momo, woocommerce...
pay-with-mtn-momo-woocommerce/mtn-momo-pay.php 77% from 13 tests
"Pay with MTN MoMo in WooCommerce" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pay-with-mtn-momo-woocommerce.php" instead of "mtn-momo-pay.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.2.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected1,570 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 252 | 72 | 1,358 |
JavaScript | 2 | 28 | 0 | 159 |
CSS | 1 | 9 | 1 | 53 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 18 | 34.62% |
▷ Public methods | 29 | 55.77% |
▷ Protected methods | 23 | 44.23% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/mtn-momo-logo.png | 60.35KB | 16.00KB | ▼ 73.49% |