Benchmarks
Plugin footprint Passed 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.08MB] [CPU: ▼177.12ms] Passed 4 tests
Server-side resources used by Checkout Vipps for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 23.54 ▲0.99 |
Dashboard /wp-admin | 3.15 ▲0.08 | 33.73 ▼2.24 |
Posts /wp-admin/edit.php | 3.24 ▲0.12 | 29.64 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 68.36 ▼707.44 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 24.48 ▲2.90 |
Server storage [IO: ▲4.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Checkout Vipps for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,667 ▲66 | 15.64 ▼0.04 | 5.02 ▼1.84 | 76.27 ▼2.54 |
Dashboard /wp-admin | 2,927 ▲31 | 6.13 ▼0.12 | 114.83 ▼17.60 | 169.42 ▼4.84 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.37 ▲0.02 | 63.12 ▼0.27 | 137.12 ▲1.00 |
Add New Post /wp-admin/post-new.php | 3,807 ▲56 | 17.97 ▼0.54 | 455.11 ▲5.54 | 159.13 ▼1.23 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.48 ▼0.01 | 143.41 ▼6.95 | 186.74 ▲2.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-gateway-vipps/includes/unzip.php:4
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Requires php: Version not formatted correctly
- Screenshots: These screenshots need descriptions #1, #2 in woo-gateway-vipps/assets to your readme.txt
woo-gateway-vipps/woo-gateway-vipps.php 92% from 13 tests
The entry point to "Checkout Vipps for WooCommerce" version 2.1.7 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages/")
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
Success! There were no dangerous files found in this plugin1,450 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 334 | 264 | 1,442 |
JavaScript | 3 | 0 | 14 | 7 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 53.50 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.78% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vipps.png | 2.16KB | 1.13KB | ▼ 47.76% |