Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.78ms] Passed 4 tests
Server-side resources used by Pay with Vipps for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.69 ▲0.42 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.19 ▼4.94 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.44 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.99 ▼18.54 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.97 ▲1.20 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Pay with Vipps for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲28 | 14.34 ▼0.38 | 1.98 ▲0.25 | 40.67 ▲2.24 |
Dashboard /wp-admin | 2,198 ▲23 | 5.59 ▼0.12 | 94.77 ▼18.07 | 42.58 ▲0.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.00 | 39.84 ▲0.87 | 35.29 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.45 ▲0.57 | 665.42 ▼89.99 | 47.32 ▼15.63 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.07 | 97.91 ▼2.68 | 42.22 ▲0.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-vipps/lib/countrycodes.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-vipps/VippsCheckoutShippingMethods.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-vipps/Blocks/Badges/vipps-badge.php:114
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/woo-vipps/VippsCallbackSessionHandler.class.php:34
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/woo-vipps/Blocks/Payment/Vipps.class.php:11
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Screenshots: Add an image for screenshot #4 (Create shareable links and QR codes)
woo-vipps/woo-vipps.php Passed 13 tests
The main file in "Pay with Vipps for WooCommerce" v. 1.14.16 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Offer Vipps as a payment method for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin11,950 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 1,652 | 1,455 | 8,821 |
PO File | 1 | 603 | 641 | 1,229 |
JavaScript | 10 | 226 | 183 | 1,221 |
CSS | 4 | 60 | 37 | 512 |
SVG | 7 | 0 | 2 | 120 |
Markdown | 2 | 19 | 0 | 47 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 85.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 587.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 333 | |
▷ Static methods | 25 | 7.51% |
▷ Public methods | 310 | 93.09% |
▷ Protected methods | 7 | 2.10% |
▷ Private methods | 16 | 4.80% |
Functions | 61 | |
▷ Named functions | 4 | 6.56% |
▷ Anonymous functions | 57 | 93.44% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.64MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logginn.png | 11.99KB | 4.63KB | ▼ 61.39% |
api-key-guide.png | 452.00KB | 129.83KB | ▼ 71.28% |
img/vipps-smile-orange.png | 3.96KB | 1.91KB | ▼ 51.65% |
img/vipps_logo_rgb.png | 50.53KB | 18.50KB | ▼ 63.39% |
docs/images/mp.png | 0.42KB | 0.25KB | ▼ 38.88% |