Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/login-with-vipps/VippsLogin.class.php+440
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.95ms] Passed 4 tests
An overview of server-side resources used by Login with Vipps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.26 ▼3.96 |
Dashboard /wp-admin | 3.34 ▼0.00 | 56.24 ▼3.96 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.30 ▲7.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.19 ▼5.72 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.53 ▲5.85 |
Login with Vipps /wp-admin/options-general.php?page=vipps_login_options | 3.21 | 32.59 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 33 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_vipps_login_sessions |
wp_vipps_login_users |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
vipps_login_options2 |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Login with Vipps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲56 | 14.32 ▲0.09 | 1.53 ▼0.14 | 38.08 ▼4.59 |
Dashboard /wp-admin | 2,203 ▲26 | 5.63 ▲0.04 | 91.92 ▼8.15 | 42.89 ▲4.01 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.97 ▲0.02 | 39.71 ▲0.36 | 36.22 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,853 | 27.65 ▲4.42 | 832.34 ▲202.88 | 37.35 ▼18.60 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.21 ▲0.02 | 96.97 ▼6.80 | 44.80 ▼0.50 |
Login with Vipps /wp-admin/options-general.php?page=vipps_login_options | 1,017 | 2.04 | 24.53 | 30.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_vipps_login_sessions
- wp_vipps_login_users
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- vipps_login_options2
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=vipps_login_options
- > Notice in wp-content/plugins/login-with-vipps/VippsLogin.class.php+340
Undefined index: use_vipps_login
- > GET request to /wp-admin/options-general.php?page=vipps_login_options
- > Notice in wp-content/plugins/login-with-vipps/VippsLogin.class.php+341
Undefined index: login_page
- > GET request to /wp-admin/options-general.php?page=vipps_login_options
- > Notice in wp-content/plugins/login-with-vipps/VippsLogin.class.php+343
Undefined index: required_roles
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-with-vipps/blocks/login-with-vipps.php:114
- > PHP Fatal error
Declaration of VippsSession::offsetGet(mixed $offset): mixed must be compatible with ArrayAccess::offsetGet($offset) in wp-content/plugins/login-with-vipps/VippsSession.class.php on line 64
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: vipps, login, woocommerce
login-with-vipps/login-with-vipps.php Passed 13 tests
The primary PHP file in "Login with Vipps" version 1.2.7 is used by WordPress to initiate all plugin functionality
71 characters long description:
No need to remember passwords ever again. Vipps, and you are logged in.
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
No dangerous file extensions were detected3,606 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 530 | 652 | 2,650 |
PO File | 1 | 119 | 123 | 446 |
CSS | 4 | 30 | 39 | 232 |
JavaScript | 5 | 47 | 77 | 193 |
SVG | 3 | 0 | 1 | 85 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 74.83 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 22 | 12.43% |
▷ Public methods | 163 | 92.09% |
▷ Protected methods | 9 | 5.08% |
▷ Private methods | 5 | 2.82% |
Functions | 11 | |
▷ Named functions | 2 | 18.18% |
▷ Anonymous functions | 9 | 81.82% |
Constants | 1 | |
▷ Global constants | 1 | 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
7 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/images/mp.png | 0.42KB | 0.25KB | ▼ 38.88% |
img/logginn.png | 11.99KB | 4.63KB | ▼ 61.39% |
docs/images/vipps.png | 0.34KB | 0.24KB | ▼ 29.65% |
img/vipps_logo_negativ_rgb.png | 54.24KB | 19.04KB | ▼ 64.90% |
img/vipps_logo_negativ_rgb_transparent.png | 16.36KB | 7.33KB | ▼ 55.17% |