Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.83MB] [CPU: ▼32.52ms] Passed 4 tests
Server-side resources used by Cardknox Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.18 ▼1.59 |
Dashboard /wp-admin | 3.12 ▼0.19 | 25.63 ▼22.92 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 25.21 ▼26.51 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 26.94 ▼68.37 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 24.17 ▼12.26 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
wc_cardknox_version |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Cardknox Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲12 | 14.45 ▲0.09 | 1.78 ▼0.18 | 43.22 ▲0.88 |
Dashboard /wp-admin | 2,201 ▲21 | 5.55 ▼0.10 | 87.52 ▲3.01 | 38.96 ▼6.90 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.03 ▲0.01 | 33.23 ▼7.22 | 37.51 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.53 ▲0.45 | 677.93 ▼4.92 | 54.25 ▼6.53 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.17 ▲0.01 | 109.79 ▼6.26 | 47.20 ▼2.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/woo-cardknox-gateway/includes/class-wc-cardknox-api.php+55
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- wc_cardknox_version
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: cardknox, woocommerce, credit card, gateway
woo-cardknox-gateway/woocommerce-gateway-cardknox.php 85% from 13 tests
Analyzing the main PHP file in "Cardknox Payment Gateway for WooCommerce" version 1.0.15
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-cardknox-gateway.php" instead of "woocommerce-gateway-cardknox.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected1,539 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 335 | 675 | 1,357 |
JavaScript | 4 | 33 | 49 | 182 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 55.20 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 10 | 13.16% |
▷ Public methods | 67 | 88.16% |
▷ Protected methods | 5 | 6.58% |
▷ Private methods | 4 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/diners.png | 1.08KB | 1.20KB | 0.00% |