Repository navigation
Conversation
Adds InfoPeak Captcha next to reCAPTCHA, hCaptcha and Turnstile, built on the same FrmFieldCaptchaSettings pattern as the other providers. Tokens are verified with the reCAPTCHA compatible siteverify endpoint, so the existing validation and spam handling are reused unchanged.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
DeepSource Code ReviewWe reviewed changes in See full review on DeepSource ↗ Code Review Summary
Important AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| PHP | Nov 21, 2026 9:52a.m. | Review ↗ | |
| JavaScript | Nov 21, 2026 9:52a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Adds InfoPeak Captcha as a fourth captcha type next to reCAPTCHA, hCaptcha and Turnstile, following the existing provider pattern.
FrmInfopeakSettingsextendsFrmFieldCaptchaSettingsand is registered inFrmCaptchaFactory. Newinfopeak_pubkey/infopeak_privkeysettings, plus a tab and panel in Captcha/Spam settings./siteverify(secret,response,remoteipin,successanderror-codesout), sovalidate_against_api(), the error messages and the spam handling are reused unchanged.Points worth a look:
formidable.js(and the regeneratedformidable.min.js): after an AJAX submit with errors the widget is reset like the other providers, since tokens are single use. When a form is shown again after an AJAX submit, the widget renders itself again:print_ajax_scripts()already reprintscaptcha-api, and the loader renders any new.infopeak-captchaelement.quota-exceeded(the site's monthly quota is used up) is treated as a configuration error, since retrying cannot help.images/infopeak.png.test_FrmCaptchaFallbacknow includesinfopeak, and a new test intest_FrmCaptchaSpamcovers the siteverify request and the used up quota.Why: InfoPeak Captcha is EU-hosted and sets no cookies. The visitor's browser solves a small proof-of-work challenge while the form is filled in, so there are no image puzzles. The free tier covers 10,000 verifications per month and stays free.
Tested on WordPress 7.1.5 / PHP 8.3 with Formidable Lite from this branch: normal and AJAX submit (including the form shown again), tampered, reused and missing tokens rejected and not saved, AJAX error then reset and resubmit, two AJAX forms on one page, switching captcha type in settings and back, the builder field, 375 and 1280 px. phpcs (whole repo), PHPStan, php-cs-fixer, rector, eslint and the JS unit tests pass. PHPUnit: 1350 of 1351 pass;
test_front_headneeds WP core assets built, which I skipped locally.Summary by CodeRabbit