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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.27ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce M-PESA Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.63 ▼2.78 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.27 ▼6.53 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.81 ▲2.52 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.71 ▼14.21 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.76 ▼1.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mpesa_trx |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
trx_db_version |
db_upgraded |
Browser metrics Passed 4 tests
WooCommerce M-PESA Payment Gateway: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 14.00 ▼0.30 | 6.95 ▲4.94 | 35.85 ▼8.18 |
Dashboard /wp-admin | 2,209 ▲18 | 5.80 ▼0.11 | 96.59 ▼9.05 | 40.29 ▼1.69 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.08 | 39.07 ▲4.27 | 35.07 ▲3.35 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.54 ▲0.45 | 608.46 ▼3.28 | 53.81 ▼2.35 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.26 ▲0.07 | 99.34 ▲3.98 | 41.12 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_mpesa_trx
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- trx_db_version
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-m-pesa-payment-gateway/Woocommerce_mpesa.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Payment Gateways List2. Settings page 13. Settings page 24. Request accepted5. Transaction in progress6. Customer action response) image required
woo-m-pesa-payment-gateway/Woocommerce_mpesa.php 92% from 13 tests
The entry point to "WooCommerce M-PESA Payment Gateway" version 1.0.0 is a PHP file that has certain tags in its header comment area
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 ("woo-m-pesa-payment-gateway.php" instead of "Woocommerce_mpesa.php")
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 plugin331 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 504 | 77 | 275 |
JavaScript | 1 | 50 | 2 | 38 |
CSS | 1 | 0 | 0 | 18 |
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 code | 0.14 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 12 | |
▷ Named functions | 6 | 50.00% |
▷ Anonymous functions | 6 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin