Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼139.26ms] Passed 4 tests
A check of server-side resources used by Tigo Money Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 40.85 ▲5.47 |
Dashboard /wp-admin | 3.06 ▲0.00 | 53.74 ▲5.24 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 50.63 ▲8.59 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 95.32 ▼562.41 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 31.75 ▼5.33 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Tigo Money Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.81 ▲0.26 | 11.09 ▲0.92 | 49.16 ▼2.52 |
Dashboard /wp-admin | 2,973 ▲42 | 5.88 ▼0.06 | 144.43 ▼7.14 | 121.60 ▲5.50 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 67.64 ▼3.42 | 99.11 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.78 ▲0.33 | 392.42 ▼2.17 | 115.07 ▼0.13 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.00 ▼0.02 | 164.94 ▲11.72 | 117.82 ▼13.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tigo-money-payment-gateway/lib/tigo-money-payment-gateway-helpers.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/tigo-money-payment-gateway/lib/class-tigo-money-payment-gateway.php:4
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: payment gateway, payment, woocommerce
tigo-money-payment-gateway/tigo-money-payment-gateway.php Passed 13 tests
The main PHP script in "Tigo Money Payment Gateway" version 1.1 is automatically included on every request by WordPress
81 characters long description:
Tigo Money Payment Gateway allows Tigo Money Partners to connect to our services.
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 detected901 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 165 | 259 | 901 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 16 | 50.00% |
▷ Protected methods | 16 | 50.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
images/woocommerce-tigomoney.png | 4.21KB | 1.76KB | ▼ 58.14% |