Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.30ms] Passed 4 tests
An overview of server-side resources used by Payment Gateway for Monnify on WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 49.15 ▲6.07 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.19 ▼4.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 66.70 ▲15.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.10 ▼5.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.87 ▼1.04 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Payment Gateway for Monnify on WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.37 ▲0.06 | 1.97 ▼0.11 | 40.66 ▼5.08 |
Dashboard /wp-admin | 2,200 ▲15 | 5.79 ▼0.05 | 100.23 ▼16.56 | 41.51 ▼3.86 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 43.85 ▲5.40 | 37.46 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.08 ▼0.18 | 686.91 ▼5.16 | 75.30 ▲17.63 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.31 ▲0.08 | 96.31 ▼7.32 | 46.19 ▼1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #3 (Monnify inline payment page)
monnify-payment-gateway/wc-monnify-payment-gateway.php 92% from 13 tests
Analyzing the main PHP file in "Payment Gateway for Monnify on WooCommerce" version 1.0.6
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("monnify-payment-gateway.php" instead of "wc-monnify-payment-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected613 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 128 | 157 | 385 |
JavaScript | 2 | 13 | 24 | 142 |
Markdown | 1 | 45 | 0 | 86 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 5.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/monnify.png | 29.12KB | 10.22KB | ▼ 64.90% |