Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.35ms] Passed 4 tests
An overview of server-side resources used by PaymentsDS - Mpesa Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 40.79 ▼3.50 |
Dashboard /wp-admin | 3.64 ▲0.34 | 48.95 ▲1.65 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 50.18 ▲0.59 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 87.76 ▼4.14 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.07 ▲5.73 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mpesa_wp_transactions |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
PaymentsDS - Mpesa Payment Gateway for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.17 | 1.63 ▼1.17 | 43.27 ▼2.79 |
Dashboard /wp-admin | 2,209 ▲21 | 4.82 ▼1.06 | 108.37 ▼3.28 | 38.49 ▼3.18 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.01 | 39.29 ▲3.47 | 36.41 ▲4.54 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.22 ▲0.10 | 640.96 ▲34.92 | 49.43 ▼1.86 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.03 | 100.89 ▼1.43 | 43.45 ▼2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_mpesa_wp_transactions
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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 | 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
- 50× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/wc-paymentsds-mpesa/vendor/guzzlehttp/psr7/src/Response.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wc-paymentsds-mpesa/mpesa-wp-plugin.php 85% from 13 tests
The main file in "PaymentsDS - Mpesa Payment Gateway for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-paymentsds-mpesa.php" instead of "mpesa-wp-plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin21,883 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 2,161 | 5,640 | 9,932 |
JSON | 15 | 0 | 0 | 8,022 |
Markdown | 15 | 1,231 | 0 | 3,712 |
PO File | 1 | 39 | 47 | 93 |
CSS | 1 | 15 | 6 | 61 |
JavaScript | 2 | 3 | 0 | 47 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 11.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 92 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 92 | 100.00% |
▷ Final classes | 34 | 36.96% |
Methods | 792 | |
▷ Static methods | 140 | 17.68% |
▷ Public methods | 667 | 84.22% |
▷ Protected methods | 4 | 0.51% |
▷ Private methods | 121 | 15.28% |
Functions | 129 | |
▷ Named functions | 38 | 29.46% |
▷ Anonymous functions | 91 | 70.54% |
Constants | 118 | |
▷ Global constants | 1 | 0.85% |
▷ Class constants | 117 | 99.15% |
▷ Public constants | 106 | 90.60% |
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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/mpesa-logo.png | 3.55KB | 2.08KB | ▼ 41.47% |