WordPress.WP.AlternativeFunctions.curl_curl_setopt_array
curl curl setopt array
The plugin uses raw cURL functions instead of the WordPress HTTP API.
Why It Shows Up
Plugin Check found `curl_*` calls in plugin code.
Why It Matters
The WordPress HTTP API handles transports, proxies, SSL behavior, filters, and host compatibility more consistently than raw cURL.
How to Fix
- Replace simple cURL requests with `wp_remote_get()` or `wp_remote_post()`.
- Handle `WP_Error`, status codes, timeouts, and response body parsing explicitly.
- If a bundled library uses cURL internally, keep it isolated and avoid passing unchecked user input into requests.
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Updated | Top Issue |
|---|---|---|---|---|---|---|---|
| #101 | PhastPress | 29 | 95 | 52 | 10k+ | Exception Not Escaped | |
| #102 | Responder | 29 | 77 | 185 | 3k+ | Non Prefixed Variable Found | |
| #103 | SamedayCourier Shipping | 29 | 336 | 269 | 4k+ | Non Singular String Literal Domain | |
| #104 | Contact Form 7 – PayPal & Stripe Add-on | 30 | 385 | 233 | 8k+ | Unsafe Printing Function | |
| #105 | Midtrans-WooCommerce | 30 | 112 | 132 | 5k+ | Non Prefixed Variable Found | |
| #106 | zahls.ch Credit Cards, PostFinance and TWINT for WooCommerce | 30 | 121 | 265 | 3k+ | Non Prefixed Variable Found | |
| #107 | افزونه پیامک ووکامرس Persian WooCommerce SMS | 31 | 72 | 269 | 40k+ | Recommended | |
| #108 | Pop-up | 31 | 103 | 91 | 10k+ | Output Not Escaped | |
| #109 | reCAPTCHA in WP comments form | 31 | 264 | 60 | 8k+ | Output Not Escaped | |
| #110 | Ultimate Posts Widget | 31 | 309 | 86 | 10k+ | Output Not Escaped | |
| #111 | Unbounce Landing Pages | 32 | 169 | 86 | 10k+ | Output Not Escaped | |
| #112 | Pay. Payment Methods for WooCommerce | 33 | 316 | 104 | 3k+ | Non Singular String Literal Domain | |
| #113 | Assistant – Every Day Productivity Apps | 34 | 124 | 97 | 4k+ | Exception Not Escaped | |
| #114 | Enhanced Text Widget | 34 | 101 | 58 | 30k+ | Output Not Escaped | |
| #115 | SSL Mixed Content Fix | 34 | 53 | 65 | 8k+ | Output Not Escaped | |
| #116 | Meta pixel for WordPress | 34 | 91 | 38 | 400k+ | Exception Not Escaped | |
| #117 | Poptin – Email Marketing Automation, Newsletter & Exit Pop Ups, Email Popups | 35 | 173 | 34 | 20k+ | Output Not Escaped | |
| #118 | Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing | 35 | 49 | 229 | 50k+ | Non Prefixed Hookname Found | |
| #119 | Lara's Google Analytics (GA4) | 36 | 303 | 57 | 9k+ | Unsafe Printing Function | |
| #120 | Stripe Tax – Sales tax automation for WooCommerce | 36 | 97 | 61 | 30k+ | Exception Not Escaped | |
| #121 | reCAPTCHA for Asgaros Forum | 45 | 21 | 36 | 4k+ | Input Not Validated | |
| #122 | Genesis Simple Share | 56 | 11 | 43 | 10k+ | Non Prefixed Variable Found | |
| #123 | Satispay for WooCommerce | 62 | 19 | 12 | 7k+ | Exception Not Escaped | |
| #124 | XPoster – Share to Bluesky and Mastodon | 62 | 26 | 36 | 10k+ | Missing |