Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.79ms] Passed 4 tests
Server-side resources used by Svea WebPay for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.15 ▼2.82 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.44 ▼7.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.21 ▼11.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.51 ▼17.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.40 ▲0.68 |
Server storage [IO: ▲7.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 618 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
sveawebpay_deferred_admin_notices |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Svea WebPay for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.28 | 2.04 ▲0.25 | 41.72 ▼1.19 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.01 | 94.70 ▼3.83 | 42.13 ▲0.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.02 | 32.93 ▼4.34 | 34.56 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 23.09 ▼0.08 | 623.34 ▲41.53 | 50.32 ▲5.53 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.03 | 103.64 ▲6.31 | 44.28 ▲1.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- sveawebpay_deferred_admin_notices
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 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
Please fix the following items
- 14× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/update-order-row.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/get-available-part-payment-campaigns.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/credit-order-amount.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/get-task.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/add-order-row.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/cancel-order-amount.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/get-order.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/credit-new-order-row.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/credit-order-rows.php
- > /wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/checkout/examples/admin/cancel-order-row.php
- 405× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/test/UnitTest/BuildOrder/Validator/HostedOrderValidatorTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Svea\\WebPay\\Test\\UnitTest\\Checkout\\TestCase' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/test/UnitTest/Checkout/Model/CheckoutPresetValueTest.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Svea\\WebPay\\Helper\\PaymentPlanHelper\\CampaignTypeCalculator\\IPaymentPlanCalculator' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/src/Helper/PaymentPlanHelper/CampaignTypeCalculator/InterestAndAmortizationFreePaymentPlanCalculator.php:8
- > PHP Fatal error
Uncaught Error: Class 'Svea\\WebPay\\Config\\ConfigurationProvider' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/src/Config/config_prod.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/test/IntegrationTest/WebService/GetAddresses/GetAddressesIntegrationTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Svea\\WebPay\\HostedService\\Payment\\HostedPayment' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/src/HostedService/Payment/DirectPayment.php:17
- > PHP Fatal error
require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/example/swishorder/swishorder.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/test/IntegrationTest/WebPayAdminIntegrationTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Svea\\WebPay\\HostedService\\HostedRequest' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/src/HostedService/HostedAdminRequest/CreditTransaction.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/svea-webpay-for-woocommerce/vendor/sveaekonomi/webpay/test/IntegrationTest/AdminService/UpdateOrderRequestIntegrationTest.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: woocommerce, svea ekonomi, direct bank, checkout, invoice...
svea-webpay-for-woocommerce/svea-webpay-for-woocommerce.php Passed 13 tests
The principal PHP file in "Svea WebPay for WooCommerce" v. 3.1.1 is loaded by WordPress automatically on each request
140 characters long description:
Supercharge your WooCommerce Store with powerful features to pay via Svea Ekonomi Creditcard, Direct Bank Payment, Invoice and Part Payment.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected71,269 lines of code in 568 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 535 | 10,995 | 18,714 | 52,244 |
SVG | 1 | 0 | 4 | 11,295 |
Markdown | 2 | 856 | 0 | 3,364 |
PO File | 3 | 1,257 | 2,294 | 2,506 |
JavaScript | 6 | 188 | 25 | 689 |
Sass | 6 | 111 | 28 | 632 |
JSON | 4 | 0 | 0 | 374 |
XML | 4 | 17 | 8 | 87 |
YAML | 3 | 15 | 4 | 65 |
CSS | 4 | 1 | 8 | 13 |
PHP code Passed 2 tests
Analyzing 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.15 |
Average class complexity | 6.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 335.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 92 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 455 | |
▷ Abstract classes | 15 | 3.30% |
▷ Concrete classes | 440 | 96.70% |
▷ Final classes | 1 | 0.23% |
Methods | 3,041 | |
▷ Static methods | 198 | 6.51% |
▷ Public methods | 2,696 | 88.66% |
▷ Protected methods | 151 | 4.97% |
▷ Private methods | 194 | 6.38% |
Functions | 37 | |
▷ Named functions | 25 | 67.57% |
▷ Anonymous functions | 12 | 32.43% |
Constants | 157 | |
▷ Global constants | 3 | 1.91% |
▷ Class constants | 154 | 98.09% |
▷ Public constants | 154 | 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
13 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/direktbank.png | 14.37KB | 5.45KB | ▼ 62.11% |
assets/img/logo_paypal.png | 2.57KB | 1.11KB | ▼ 56.60% |
assets/img/kort.png | 10.74KB | 4.12KB | ▼ 61.67% |
assets/img/visa-mastercard.png | 28.48KB | 9.96KB | ▼ 65.04% |
assets/img/cross.png | 5.11KB | 1.39KB | ▼ 72.88% |