WordPress.WP.AlternativeFunctions.curl_curl_setopt_array

curl curl setopt array

The plugin uses raw cURL functions instead of the WordPress HTTP API.

medium weight

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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#101PhastPress29955210k+Exception Not Escaped
#102Responder29771853k+Non Prefixed Variable Found
#103SamedayCourier Shipping293362694k+Non Singular String Literal Domain
#104Contact Form 7 – PayPal & Stripe Add-on303852338k+Unsafe Printing Function
#105Midtrans-WooCommerce301121325k+Non Prefixed Variable Found
#106zahls.ch Credit Cards, PostFinance and TWINT for WooCommerce301212653k+Non Prefixed Variable Found
#107افزونه پیامک ووکامرس Persian WooCommerce SMS317226940k+Recommended
#108Pop-up311039110k+Output Not Escaped
#109reCAPTCHA in WP comments form31264608k+Output Not Escaped
#110Ultimate Posts Widget313098610k+Output Not Escaped
#111Unbounce Landing Pages321698610k+Output Not Escaped
#112Pay. Payment Methods for WooCommerce333161043k+Non Singular String Literal Domain
#113Assistant – Every Day Productivity Apps34124974k+Exception Not Escaped
#114Enhanced Text Widget341015830k+Output Not Escaped
#115SSL Mixed Content Fix3453658k+Output Not Escaped
#116Meta pixel for WordPress349138400k+Exception Not Escaped
#117Poptin – Email Marketing Automation, Newsletter & Exit Pop Ups, Email Popups351733420k+Output Not Escaped
#118Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing354922950k+Non Prefixed Hookname Found
#119Lara's Google Analytics (GA4)36303579k+Unsafe Printing Function
#120Stripe Tax – Sales tax automation for WooCommerce36976130k+Exception Not Escaped
#121reCAPTCHA for Asgaros Forum4521364k+Input Not Validated
#122Genesis Simple Share56114310k+Non Prefixed Variable Found
#123Satispay for WooCommerce6219127k+Exception Not Escaped
#124XPoster – Share to Bluesky and Mastodon62263610k+Missing