Pix Automático com Pagarme para WooCommerce

Pagamentos Pix com compensação automática, status do pedido é alterado automaticamente.

v2.3.1marcosgnUpdated Added 500 installs96% rating
34
Score
68
Errors
66
Warnings
+0
Change

Category Scores

Security0
Repo78
Performance100
Maintainability63

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

134 findings

Maintainability

59

12 issue groups

Security

39

7 issue groups

I18n

31

6 issue groups

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

Sample message

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

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

Sample message

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

ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: \WC_PAGARME_PIX_PAYMENT_DIR_NAME14
Category
I18n
Occurrences
14
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: \WC_PAGARME_PIX_PAYMENT_DIR_NAME

WARNINGMaintainabilityerror log print rprint_r() found. Debug code should not normally be used in production.10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'wc-pagarme-pix-payment' but got 'infixs-correios-automatico'.10
Category
I18n
Occurrences
10
Severity
error

Sample message

Mismatched text domain. Expected 'wc-pagarme-pix-payment' but got 'infixs-correios-automatico'.

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.9
Category
Maintainability
Occurrences
9
Severity
error

Sample message

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

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.7
Category
Security
Occurrences
7
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNot In FooterIn footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

ERRORI18nMissing Translators CommentA 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.4
Category
I18n
Occurrences
4
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.

Show 15 more
WARNINGMaintainabilitytrademarked term3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "Pix Automático com Pagarme para WooCommerce" - contains the restricted term "woocommerce" which cannot be used within in your plugin name, unless your plugin name contains one of the allowed patterns: "for woocommerce", "with woocommerce", "using woocommerce", or "and woocommerce". The term must still not appear anywhere else in your name.

WARNINGMaintainabilityDiscouraged PHP function2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

The use of function ini_set() is discouraged

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['key']

WARNINGSecurityRequest data is not unslashed2
Category
Security
Occurrences
2
Severity
warning

Sample message

$_GET['key'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityNon-prefixed function1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

WARNINGMaintainabilityprevent path disclosure error reporting1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

error_reporting() can lead to full path disclosure.

ERRORSecurityUnsafe printing function1
Category
Security
Occurrences
1
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGSecurityInput is not validated1
Category
Security
Occurrences
1
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_GET['key']. Check that the array index exists before using it.

WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_style(). This means new versions of the style may not always be loaded due to browser caching.

ERRORI18nMissing Arg Domain1
Category
I18n
Occurrences
1
Severity
error

Sample message

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

ERRORI18nNon Singular String Literal Text1
Category
I18n
Occurrences
1
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: sprintf( 'Pagar.me PIX: Pedido alterado para %s.', $statuses[ $after_paid_status ] )

ERRORI18nUnordered Placeholders Text1
Category
I18n
Occurrences
1
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in 'Insira a Chave Secreta. Caso você não saiba você pode obter em %s.<br><br><strong style="color: red">Importante!</strong><p>1) É necessário o plugin <a href="https://br.wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/">Brazilian Market on WooCommerce</a> pois o campo CPF é obrigatório na api v5</p><p>2) Para a detecção automatica de pagamento, você precisa configurar a seguinte Webhook na dashboard Pagar.me:</p><br>Dashboard -> Configurações -> Webhooks -> (+ Criar Webhook) -> Eventos -> Cobrança -> Marcar: \'charge.paid\' e adicionar URL abaixo: <br><div class="mgn-webhook-box"><strong>%s</strong></div>'.

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.

External Connections

Potential connections found in static code analysis.

10 domains

Outbound calls

298

External assets

0

Incoming endpoints

2

Notable Domains

php.net283 · outbound
api.pagar.me2 · outbound
dashboard.pagar.me2 · outbound
dash.pagar.me1 · outbound
secure.php.net1 · outbound

Platform / Reference Domains

wordpress.org4 · platform/reference
github.com2 · platform/reference
br.wordpress.org1 · platform/reference
w3.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

wp_ajax_nopriv_wc_pagarme_pix_payment_checkpublic

wp_ajax

Admin AJAX endpoints1
wp_ajax_wc_pagarme_pix_payment_checkauthenticated

wp_ajax

Score History

First score snapshot

v2.3.1

34

Latest

Findings
134
Errors
68
Warnings
66
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

35 nodes

Related Plugins