Conversation
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (28.42%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## dev #898 +/- ##
============================================
- Coverage 32.03% 32.02% -0.02%
- Complexity 6781 6809 +28
============================================
Files 292 292
Lines 26775 26869 +94
============================================
+ Hits 8578 8604 +26
- Misses 18197 18265 +68 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Warning
- Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.
Copilot review overview
🟡 Changes recommended
Hard-coded endpoint matching bypasses protection when WooCommerce’s payment-method endpoint is customized.
Review effort: Balanced
Findings: 3
Open (3)
What changed in this PR
Adds spam protection for WooCommerce customers adding payment methods.
Changes:
- Checks add-payment-method submissions as orders.
- Intercepts Stripe setup-intent requests.
- Updates settings guidance and validation exclusions.
| File | Description |
|---|---|
lib/Cleantalk/Antispam/IntegrationsByClass/Woocommerce.php |
Implements payment-method checks. |
inc/cleantalk-settings.php |
Documents the new behavior. |
inc/cleantalk-public-validate.php |
Skips dedicated Stripe requests. |
inc/cleantalk-public-validate-skip-functions.php |
Identifies payment-method submissions. |
tests/Antispam/IntegrationsByClass/TestWoocommerceAddPaymentMethod.php |
Excluded from review by policy. |
Files excluded by content exclusion policy (1)
- tests/Antispam/IntegrationsByClass/TestWoocommerceAddPaymentMethod.php
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

task https://app.doboard.com/1/task/56668