Klarna for WooCommerce

Grow your business for increased sales and enhanced shopping experiences at no extra costs.

v4.11.0KlarnaUpdated Added 30k+ installs46% rating40% support resolved
26
Score
284
Errors
507
Warnings
+0
Change

Category Scores

Security0
Repo91
Performance97
Maintainability12

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

791 findings

Maintainability

527

15 issue groups

I18n

212

4 issue groups

Security

48

5 issue groups

Performance

2

1 issue group

WARNINGMaintainabilityDynamic hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$order_line->get_filter_name( 'merchant_data' )".293
Category
Maintainability
Occurrences
293
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$order_line->get_filter_name( 'merchant_data' )".

ERRORI18nText Domain MismatchMismatched text domain. Expected 'klarna-payments-for-woocommerce' but got 'klarna-express-checkout'.204
Category
I18n
Occurrences
204
Severity
error

Sample message

Mismatched text domain. Expected 'klarna-payments-for-woocommerce' but got 'klarna-express-checkout'.

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "advanced_woo_discount_rules_get_product_discount_price_from_custom_price".82
Category
Maintainability
Occurrences
82
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "advanced_woo_discount_rules_get_product_discount_price_from_custom_price".

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$available_gateways".45
Category
Maintainability
Occurrences
45
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$available_gateways".

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "ComposerAutoloaderInit5a2476a0aff24fa80fe0f5cf27d53cd7".37
Category
Maintainability
Occurrences
37
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "ComposerAutoloaderInit5a2476a0aff24fa80fe0f5cf27d53cd7".

ERRORSecurityException output is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$e'.27
Category
Security
Occurrences
27
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$e'.

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;25
Category
Maintainability
Occurrences
25
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "get_klarna_customer".24
Category
Maintainability
Occurrences
24
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "get_klarna_customer".

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div id='klarna-identity-button' class='siwk-button' style='{$style}'></div>"'.13
Category
Security
Occurrences
13
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div id='klarna-identity-button' class='siwk-button' style='{$style}'></div>"'.

WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;KOSM_VERSION&quot;.7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;KOSM_VERSION&quot;.

Show 15 more
ERRORI18nMissing Arg Domain6
Category
I18n
Occurrences
6
Severity
error

Sample message

Missing $domain parameter in function call to __().

WARNINGSecurityNonce verification recommended5
Category
Security
Occurrences
5
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilitydate date3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

ERRORMaintainabilityOffloaded Content2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.

WARNINGMaintainabilityslow db query meta key2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGMaintainabilityslow db query meta value2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of meta_value, possible slow query.

WARNINGSecurityInput is not sanitized2
Category
Security
Occurrences
2
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET[&#039;kec_errors&#039;]

ERRORMaintainabilityfile system operations fwrite2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().

WARNINGPerformancePost Not In exclude2
Category
Performance
Occurrences
2
Severity
warning

Sample message

Using exclusionary parameters, like exclude, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.

WARNINGI18nDiscouraged text-domain loading1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

WARNINGMaintainabilityerror log debug backtrace1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

debug_backtrace() found. Debug code should not normally be used in production.

WARNINGMaintainabilityerror log trigger error1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

trigger_error() found. Debug code should not normally be used in production.

WARNINGSecurityRequest data is not unslashed1
Category
Security
Occurrences
1
Severity
warning

Sample message

$_GET[&#039;nonce&#039;] not unslashed before sanitization. Use wp_unslash() or similar

ERRORI18nMissing Translators Comment1
Category
I18n
Occurrences
1
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

WARNINGMaintainabilitymissing composer json file1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The &quot;/vendor&quot; directory using composer exists, but &quot;composer.json&quot; file is missing.

Score History

2 score snapshots

+0
1007550250Jun 20, 2026, 10:43 AM UTC Score 26/100 Plugin v4.10.7 Plugin Check 2.0.0 284 errors, 500 warningsJun 22, 2026, 12:31 PM UTC Score 26/100 Plugin v4.11.0 Plugin Check 2.0.0 284 errors, 507 warningsJun 20, 2026Jun 22, 2026

v4.11.0

26

Latest

Findings
791
Errors
284
Warnings
507
Check
2.0.0

v4.10.7

26

Score

Findings
784
Errors
284
Warnings
500
Check
2.0.0

Related Plugins