Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.87ms] Passed 4 tests
A check of server-side resources used by Cheetahpay Checkout Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.99 ▼3.56 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.16 ▼0.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.93 ▲0.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.69 ▼11.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.73 ▲5.37 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Cheetahpay Checkout Payment Gateway for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.47 ▲0.12 | 1.79 ▼0.20 | 39.68 ▼2.60 |
Dashboard /wp-admin | 2,209 ▲18 | 4.86 ▼1.00 | 104.32 ▲1.71 | 42.36 ▲1.69 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 40.29 ▼2.00 | 36.51 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.34 ▲5.92 | 658.98 ▲30.35 | 59.49 ▲5.24 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.12 ▼0.11 | 99.14 ▼0.20 | 40.52 ▼2.89 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-cheetahpay-payment-gateway/inc/payment-field.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-cheetahpay-payment-gateway/wc_cheetahpay.php:4
- > PHP Notice
Undefined variable: actualPrice in wp-content/plugins/woo-cheetahpay-payment-gateway/inc/payment-field.php on line 70
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-cheetahpay-payment-gateway/woo-cheetahpay-payment-gateway.php:21
- > PHP Notice
Undefined variable: actualPrice in wp-content/plugins/woo-cheetahpay-payment-gateway/inc/payment-field.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woo-cheetahpay-payment-gateway/woo-cheetahpay-payment-gateway.php Passed 13 tests
The main PHP script in "Cheetahpay Checkout Payment Gateway for WooCommerce" version 1.0.5 is automatically included on every request by WordPress
69 characters long description:
A woocommerce paymernt gateway to help you receive airtime as payment
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin546 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 167 | 166 | 546 |
PHP code Passed 2 tests
An overview 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.29 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/icon_48.png | 1.61KB | 1.06KB | ▼ 34.36% |
inc/icon_72.png | 1.82KB | 1.28KB | ▼ 29.67% |