Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.96ms] Passed 4 tests
An overview of server-side resources used by payever - WooCommerce Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.73 ▼4.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.13 ▼5.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.70 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.30 ▼3.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.97 ▲3.18 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 527 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
payever - WooCommerce Gateway: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.69 ▲0.36 | 1.73 ▲0.19 | 36.12 ▼6.68 |
Dashboard /wp-admin | 2,198 ▲17 | 5.61 ▼0.06 | 92.63 ▼17.81 | 43.98 ▼2.46 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▼0.02 | 40.06 ▲1.77 | 32.05 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,526 ▲86 | 23.13 ▲4.97 | 598.99 ▼116.28 | 57.00 ▲8.15 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.26 ▲0.06 | 95.94 ▼3.32 | 41.64 ▼1.45 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 257× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Sdk\\Core\\Http\\ResponseEntity' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/lib/Payever/Payments/Http/ResponseEntity/ListPaymentsResponse.php:26
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Tests\\Unit\\Payever\\Core\\Http\\AbstractMessageEntityTest' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/tests/Unit/Payever/Payments/Http/MessageEntity/SplitItemEntityTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Tests\\Unit\\Payever\\Core\\Http\\AbstractMessageEntityTest' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/tests/Unit/Payever/Payments/Http/ResponseEntity/ListPaymentOptionsWithVariantsResponseTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Sdk\\Core\\CommonProductsThirdPartyApiClient' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/products-sdk-php/lib/Payever/Products/ProductsApiClient.php:25
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Sdk\\Core\\Http\\ResponseEntity' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/lib/Payever/Payments/Http/ResponseEntity/LatePaymentsResponse.php:22
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Sdk\\Core\\Http\\MessageEntity\\ResultEntity' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/lib/Payever/Payments/Http/MessageEntity/CompanySearchResultEntity.php:34
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Sdk\\Core\\Http\\RequestEntity' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/lib/Payever/Payments/Http/RequestEntity/CreatePaymentRequest.php:87
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Sdk\\Core\\Http\\MessageEntity\\ResultEntity' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/lib/Payever/Payments/Http/MessageEntity/InvoicePaymentResultEntity.php:63
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Tests\\Unit\\Payever\\Core\\Http\\AbstractMessageEntityTest' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/tests/Unit/Payever/Payments/Http/MessageEntity/PaymentDetailsEntityTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Payever\\Sdk\\Payments\\PaymentsApiClient' not found in wp-content/plugins/payever-woocommerce-gateway/vendor/payever/payments-sdk-php/lib/Payever/Payments/WidgetsApiClient.php:26
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in payever-woocommerce-gateway/assets to your readme.txt
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
payever-woocommerce-gateway/woocommerce-payever-gateway.php 85% from 13 tests
The principal PHP file in "payever - WooCommerce Gateway" v. 2.3.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "2.6.14")
- Main file name: Name the main plugin file the same as the plugin slug ("payever-woocommerce-gateway.php" instead of "woocommerce-payever-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin22,736 lines of code in 414 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 385 | 5,598 | 14,662 | 20,195 |
PO File | 3 | 425 | 218 | 1,021 |
JSON | 7 | 0 | 0 | 552 |
Markdown | 9 | 214 | 0 | 541 |
JavaScript | 4 | 39 | 15 | 267 |
CSS | 2 | 17 | 6 | 85 |
XML | 3 | 0 | 1 | 65 |
YAML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 23 | |
Traits | 19 | |
Classes | 333 | |
▷ Abstract classes | 11 | 3.30% |
▷ Concrete classes | 322 | 96.70% |
▷ Final classes | 0 | 0.00% |
Methods | 1,523 | |
▷ Static methods | 118 | 7.75% |
▷ Public methods | 1,254 | 82.34% |
▷ Protected methods | 119 | 7.81% |
▷ Private methods | 150 | 9.85% |
Functions | 16 | |
▷ Named functions | 1 | 6.25% |
▷ Anonymous functions | 15 | 93.75% |
Constants | 282 | |
▷ Global constants | 12 | 4.26% |
▷ Class constants | 270 | 95.74% |
▷ Public constants | 270 | 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
13 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/santander_installment_dk.png | 5.98KB | 3.58KB | ▼ 40.18% |
assets/images/invoice.png | 6.19KB | 4.06KB | ▼ 34.41% |
assets/images/santander_installment_se.png | 5.98KB | 3.58KB | ▼ 40.18% |
assets/images/payex_faktura.png | 6.77KB | 3.79KB | ▼ 43.93% |
assets/images/stripe.png | 6.91KB | 3.72KB | ▼ 46.25% |