Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼11.97ms] Passed 4 tests
Analyzing server-side resources used by EchBay Integrate MoMo paygate into WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.37 ▼3.62 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.71 ▼14.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.26 ▲1.28 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.06 | 82.10 ▼28.98 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 35.55 ▼0.39 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
momo_settings |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
EchBay Integrate MoMo paygate into WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.20 ▼0.01 | 1.77 ▼0.36 | 43.05 ▼4.07 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▼0.07 | 90.06 ▼2.78 | 40.99 ▲3.25 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.04 | 39.30 ▲3.31 | 37.42 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.39 ▼1.69 | 609.89 ▼7.28 | 49.68 ▼14.11 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▼0.00 | 99.68 ▼2.11 | 41.58 ▼0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- momo_settings
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'momo\\Facades\\FacadeResponse' not found in wp-content/plugins/echbay-momo-woo/src/momoResponse.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/echbay-momo-woo/src/gateways/momoGateway.php:3
- > PHP Fatal error
Uncaught Error: Class 'momo\\Responses\\momoResponse' not found in wp-content/plugins/echbay-momo-woo/src/gateways/momoInternationalResponse.php:5
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (MoMo paygate setting in admin.) image missing
echbay-momo-woo/momo.php 92% from 13 tests
The main PHP file in "EchBay Integrate MoMo paygate into WooCommerce" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("echbay-momo-woo.php" instead of "momo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected918 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 0 | 11 | 916 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 3 | 5.00% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 1 | 1.67% |
▷ Private methods | 2 | 3.33% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
7 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/momo_icon_circle_pinkbg_RGB.png | 3.08KB | 3.19KB | 0.00% |
favicon_eb.png | 3.39KB | 3.51KB | 0.00% |
favicon_wgr.png | 2.23KB | 2.27KB | 0.00% |
favicon.png | 2.23KB | 2.27KB | 0.00% |
favicon-full.png | 53.11KB | 10.79KB | ▼ 79.67% |