Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼283.08ms] Passed 4 tests
Analyzing server-side resources used by MTN MOMO
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 40.44 ▲5.21 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.11 ▲2.50 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 44.62 ▲4.86 |
Add New Post /wp-admin/post-new.php | 2.85 ▼2.58 | 22.68 ▼1,133.40 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.63 ▼6.29 |
Sandbox /wp-admin/admin.php?page=wp-mtn-momo/pages/sandbox.php | 3.02 | 24.50 |
Transactions /wp-admin/admin.php?page=wp-mtn-momo/pages/transactions.php | 3.01 | 25.52 |
Configurations /wp-admin/admin.php?page=wp-mtn-momo/pages/configurations.php | 3.03 | 30.25 |
Server storage [IO: ▲0.06MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_mtn_momo_configurations |
wp_mtn_momo_tokens |
wp_mtn_momo_transactions |
New WordPress options |
---|
mtn_momo_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by MTN MOMO
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲106 | 15.89 ▲0.39 | 7.40 ▼0.36 | 46.53 ▼2.27 |
Dashboard /wp-admin | 2,966 ▲113 | 6.05 ▲0.17 | 147.86 ▲18.58 | 107.03 ▲5.96 |
Posts /wp-admin/edit.php | 2,745 ▲39 | 2.70 ▲0.00 | 63.38 ▼3.75 | 93.86 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,602 ▲121 | 17.18 ▼1.33 | 351.75 ▼11.27 | 105.15 ▲1.40 |
Media Library /wp-admin/upload.php | 1,814 ▲42 | 5.00 ▲0.00 | 137.01 ▼33.29 | 114.03 ▼0.97 |
Sandbox /wp-admin/admin.php?page=wp-mtn-momo/pages/sandbox.php | 1,176 | 2.38 | 59.07 | 56.01 |
Transactions /wp-admin/admin.php?page=wp-mtn-momo/pages/transactions.php | 1,254 | 2.08 | 57.38 | 74.60 |
Configurations /wp-admin/admin.php?page=wp-mtn-momo/pages/configurations.php | 1,578 | 2.09 | 63.78 | 82.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_mtn_momo_tokens
- wp_mtn_momo_transactions
- wp_mtn_momo_configurations
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-mtn-momo/pages/transactions.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-mtn-momo/pages/transactions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-mtn-momo/pages/configurations.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-mtn-momo/wp-mtn-momo.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-mtn-momo/pages/sandbox.php:74
- > PHP Notice
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 uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI found ("")
wp-mtn-momo/wp-mtn-momo.php 92% from 13 tests
"MTN MOMO" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires PHP: Required version must match the one declared in readme.txt ("5.6.20" instead of "5.3.6")
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
Success! There were no dangerous files found in this plugin1,041 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 327 | 303 | 1,001 |
JavaScript | 1 | 18 | 6 | 40 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 5 | 12.82% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 3 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin