Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.86ms] Passed 4 tests
This is a short check of server-side resources used by Wasa Kredit Checkout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.12 ▼3.49 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.73 ▲1.65 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.23 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.21 ▼1.51 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.29 ▼0.09 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Wasa Kredit Checkout: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.17 ▼0.18 | 1.81 ▲0.20 | 41.10 ▼6.94 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▲0.05 | 91.51 ▼10.31 | 41.40 ▼3.71 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.06 | 38.87 ▲1.77 | 35.59 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.61 ▲0.63 | 641.40 ▲19.80 | 59.83 ▲13.02 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▼0.04 | 93.49 ▼3.87 | 39.78 ▼2.19 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wasa-kredit-checkout/admin/partials/wasa-kredit-checkout-admin-display.php
- > /wp-content/plugins/wasa-kredit-checkout/public/partials/wasa-kredit-checkout-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wasa-kredit-checkout/classes/class-wasa-kredit-checkout-callbacks.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: e-commerce, ecommerce, checkout, woocommerce
wasa-kredit-checkout/wasa-kredit-checkout.php 92% from 13 tests
The entry point to "Wasa Kredit Checkout" version 2.5.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.0.0" instead of "5.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,004 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 535 | 1,301 | 2,363 |
CSS | 2 | 63 | 9 | 374 |
PO File | 1 | 64 | 92 | 163 |
JavaScript | 3 | 13 | 2 | 104 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 3 | 10.00% |
▷ Concrete classes | 27 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 8 | 5.26% |
▷ Public methods | 105 | 69.08% |
▷ Protected methods | 41 | 26.97% |
▷ Private methods | 6 | 3.95% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wasa-kredit-logo-left.png | 18.49KB | 5.20KB | ▼ 71.89% |
assets/images/wasa-kredit-icon.png | 2.81KB | 0.30KB | ▼ 89.35% |