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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.86ms] Passed 4 tests
An overview of server-side resources used by Monetbil - Mobile Money Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.17 ▼2.72 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.73 ▼4.92 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.41 ▼2.26 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.00 ▼13.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.42 ▼1.69 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Monetbil - Mobile Money Gateway for WooCommerce: 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,800 ▲43 | 13.20 ▼1.45 | 1.64 ▼0.39 | 38.37 ▼12.65 |
Dashboard /wp-admin | 2,206 ▲24 | 4.89 ▼0.97 | 110.21 ▼0.35 | 38.66 ▼5.88 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 40.33 ▲4.96 | 36.56 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.63 ▲0.11 | 670.50 ▼25.27 | 52.41 ▼2.45 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.38 ▲0.20 | 94.15 ▼20.51 | 41.00 ▼6.76 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: payment_url in wp-content/plugins/monetbil-woocommerce-gateway/templates/payment-widget-v2.php on line 1
- > PHP Notice
Undefined variable: id in wp-content/plugins/monetbil-woocommerce-gateway/templates/payment-widget-v1.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/monetbil-woocommerce-gateway/templates/payment-widget-v1.php:2
- > PHP Notice
Undefined variable: payment_url in wp-content/plugins/monetbil-woocommerce-gateway/templates/payment-widget-v1.php on line 1
- > PHP Notice
Undefined variable: id in wp-content/plugins/monetbil-woocommerce-gateway/templates/payment-widget-v2.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/monetbil-woocommerce-gateway/templates/payment-widget-v2.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/monetbil-woocommerce-gateway/templates/receipt.php:8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 uses markdown syntax to describe your plugin to the world
8 plugin tags: payment gateways, gateway, receipt, shopping cart, payment...
monetbil-woocommerce-gateway/monetbil-woocommerce-gateway.php 92% from 13 tests
The main PHP file in "Monetbil - Mobile Money Gateway for WooCommerce" ver. 1.15.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin551 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 152 | 229 | 549 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 25 | |
▷ Static methods | 17 | 68.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 28 | 100.00% |
▷ Public constants | 28 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
monetbil-mtnmomo-logo.png | 11.15KB | 4.40KB | ▼ 60.53% |
monetbil-mobile-payments-small-logo.png | 4.33KB | 2.84KB | ▼ 34.38% |
monetbil_partners_logo.png | 13.64KB | 5.08KB | ▼ 62.78% |