Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.12ms] Passed 4 tests
A check of server-side resources used by kevin. Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.71 ▼4.76 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.09 ▼2.65 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 42.76 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.19 ▼9.96 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.86 ▲5.54 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 151 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
woocommerce_getkevin_installation_id |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by kevin. Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 14.38 ▲0.00 | 1.80 ▲0.03 | 39.58 ▲1.09 |
Dashboard /wp-admin | 2,201 ▲21 | 5.53 ▼0.11 | 82.01 ▼2.33 | 39.73 ▼4.82 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.06 | 34.59 ▼1.07 | 34.43 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,534 ▼4 | 23.07 ▼0.22 | 675.54 ▲8.45 | 54.83 ▲2.75 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.15 ▼0.05 | 105.59 ▲5.79 | 44.90 ▲2.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- woocommerce_getkevin_installation_id
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'KevinPlugin\\View\\AbstractSettingsView' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/src/View/BankPaymentSettingsFormView.php:17
- > PHP Fatal error
Uncaught Error: Class 'KevinPluginFramework\\Application\\Exception\\KevinRequestException' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/vendor-kevin/getkevin/kevin-plugin-framework/src/Application/Exception/KevinRequestInternalServerException.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/e-commerce-payment-gateway-kevin/templates/kevin-bank-payment-view.php:8
- > PHP Fatal error
Uncaught Error: Class 'KevinPluginFramework\\Presentation\\Admin\\Form\\Validator\\RegexValidator' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/vendor-kevin/getkevin/kevin-plugin-framework/src/Presentation/Admin/Form/Validator/CreditorNameRegexValidator.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Kevin\\AuthInterface' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/vendor/getkevin/kevin-php/src/Auth.php:8
- > PHP Fatal error
Trait 'Kevin\\UtilityTrait' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/vendor/getkevin/kevin-php/src/AccountTrait.php on line 8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/e-commerce-payment-gateway-kevin/templates/kevin-card-settings-form-view.php:9
- > PHP Fatal error
Uncaught Error: Interface 'KevinPluginFramework\\Presentation\\Admin\\Form\\Validator\\ValidatorInterface' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/vendor-kevin/getkevin/kevin-plugin-framework/src/Presentation/Admin/Form/Validator/NotBlankValidator.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/vendor/getkevin/kevin-php/.php.cs.fixer.php:3
- > PHP Fatal error
Trait 'Kevin\\UtilityTrait' not found in wp-content/plugins/e-commerce-payment-gateway-kevin/vendor/getkevin/kevin-php/src/PaymentTrait.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: ecommerce payment gateway, payments, woocommerce payment gateway, woocommerce, payment gateway...
e-commerce-payment-gateway-kevin/getkevin.php 85% from 13 tests
"kevin. Payment Gateway for WooCommerce" version 4.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("e-commerce-payment-gateway-kevin.php" instead of "getkevin.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
Success! There were no dangerous files found in this plugin9,051 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 2,184 | 0 | 4,396 |
PHP | 83 | 993 | 1,497 | 3,967 |
Markdown | 2 | 109 | 0 | 320 |
CSS | 4 | 29 | 0 | 159 |
JSON | 5 | 0 | 0 | 154 |
JavaScript | 2 | 1 | 0 | 43 |
YAML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 8 | |
Traits | 4 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 1 | 1.79% |
Methods | 321 | |
▷ Static methods | 40 | 12.46% |
▷ Public methods | 255 | 79.44% |
▷ Protected methods | 19 | 5.92% |
▷ Private methods | 47 | 14.64% |
Functions | 9 | |
▷ Named functions | 4 | 44.44% |
▷ Anonymous functions | 5 | 55.56% |
Constants | 81 | |
▷ Global constants | 3 | 3.70% |
▷ Class constants | 78 | 96.30% |
▷ Public constants | 78 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/VISA_MC.png | 8.75KB | 4.39KB | ▼ 49.82% |
assets/images/VISA_MC_small.png | 2.20KB | 1.81KB | ▼ 17.51% |
assets/images/kevin.png | 4.10KB | 1.70KB | ▼ 58.63% |