Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼0.40ms] Passed 4 tests
Server-side resources used by Klarna Order Management for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 38.04 ▲2.04 |
Dashboard /wp-admin | 3.73 ▲0.42 | 48.61 ▲2.42 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 46.29 ▲0.95 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 81.40 ▼7.01 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 35.55 ▲2.91 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Klarna Order Management for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.17 | 1.73 ▲0.12 | 37.22 ▼6.99 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▲0.05 | 85.40 ▼1.19 | 40.96 ▲2.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.03 | 33.82 ▼2.13 | 34.08 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.23 ▲4.74 | 675.61 ▲42.46 | 54.07 ▼14.80 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.03 | 137.08 ▲34.31 | 62.75 ▲18.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: woocommerce, klarna
klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Klarna Order Management for WooCommerce" version 1.8.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,700 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 357 | 1,018 | 1,695 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 4 | 25.00% |
▷ Concrete classes | 12 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 14 | 13.73% |
▷ Public methods | 69 | 67.65% |
▷ Protected methods | 25 | 24.51% |
▷ Private methods | 8 | 7.84% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There are no PNG files in this plugin