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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.13ms] Passed 4 tests
Analyzing server-side resources used by Visma Pay (Embedded Card) for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 33.90 ▼8.70 |
Dashboard /wp-admin | 3.49 ▲0.19 | 44.80 ▼5.08 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 47.13 ▼3.40 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 91.86 ▲7.79 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 33.88 ▲0.65 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Visma Pay (Embedded Card) for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼0.86 | 4.71 ▲2.97 | 35.19 ▼9.21 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲1.02 | 107.23 ▼8.81 | 42.63 ▼2.70 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.06 ▲0.06 | 39.29 ▲4.13 | 35.53 ▲2.98 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.23 ▲0.79 | 586.24 ▼131.57 | 61.90 ▼6.00 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.02 | 97.01 ▼4.27 | 40.06 ▼1.70 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/visma-pay-embedded-card-payment-gateway/includes/blocks/visma_pay_embedded_card_blocks_support.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Visma\\VismaPayConnector' not found in wp-content/plugins/visma-pay-embedded-card-payment-gateway/includes/lib/Visma/VismaPayWPConnector.php:5
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
visma-pay-embedded-card-payment-gateway/visma-pay-embedded-card-payment-gateway.php 92% from 13 tests
Analyzing the main PHP file in "Visma Pay (Embedded Card) for Woocommerce" version 1.1.2
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.3" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,669 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 227 | 26 | 1,215 |
PO File | 1 | 94 | 103 | 278 |
JavaScript | 2 | 15 | 4 | 122 |
CSS | 1 | 7 | 0 | 46 |
XML | 1 | 0 | 0 | 7 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of 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.35 |
Average class complexity | 27.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 49 | |
▷ Static methods | 3 | 6.12% |
▷ Public methods | 40 | 81.63% |
▷ Protected methods | 9 | 18.37% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 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/verified.png | 60.95KB | 33.67KB | ▼ 44.76% |
assets/images/americanexpress.png | 6.79KB | 3.73KB | ▼ 44.99% |
assets/images/dinersclub.png | 4.04KB | 2.31KB | ▼ 42.78% |
assets/images/visa.png | 4.17KB | 2.54KB | ▼ 39.07% |
assets/images/securecode.png | 1.48KB | 0.85KB | ▼ 42.84% |