Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼888.10ms] Passed 4 tests
A check of server-side resources used by WooCommerce TBC Credit Card Payment Gateway (Free)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.28 ▲13.72 |
Dashboard /wp-admin | 3.69 ▲0.64 | 56.44 ▲17.26 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 76.83 ▲31.86 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.12 | 1,496.72 ▼3,587.25 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.21 ▲3.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.14MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce TBC Credit Card Payment Gateway (Free)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,833 ▲251 | 15.89 ▲0.23 | 9.17 ▲1.03 | 45.54 ▼0.68 |
Dashboard /wp-admin | 3,107 ▲257 | 5.95 ▲0.09 | 131.33 ▼4.06 | 132.12 ▲23.99 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.68 ▼0.00 | 64.46 ▼8.40 | 92.21 ▼22.86 |
Add New Post /wp-admin/post-new.php | 1,658 ▲7 | 18.74 ▲1.69 | 348.00 ▲5.09 | 106.37 ▼6.25 |
Media Library /wp-admin/upload.php | 1,777 ▲2 | 5.01 ▲0.00 | 143.30 ▼7.89 | 116.10 ▲2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
8 plugin tags: bank gateway, georgia, gateway, woocommerce, payment...
woo-tbc-payment-gateway/plugandpay-woocommerce-tbc-credit-card-payment-gateway-free.php 77% from 13 tests
The primary PHP file in "WooCommerce TBC Credit Card Payment Gateway (Free)" version 2.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0.0")
- 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-tbc-payment-gateway.php" instead of "plugandpay-woocommerce-tbc-credit-card-payment-gateway-free.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,230 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 232 | 734 | 1,038 |
JSON | 3 | 0 | 0 | 84 |
Markdown | 1 | 22 | 0 | 53 |
XML | 1 | 15 | 42 | 29 |
SVG | 2 | 0 | 1 | 16 |
CSS | 1 | 3 | 11 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 5 | 7.04% |
▷ Public methods | 66 | 92.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.04% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin