WordPress.WP.AlternativeFunctions.curl_curl_setopt

curl curl setopt

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

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#551ImageKit – URL based image manipulation and optimization8747421k+Non-prefixed global variable
#552Genesis Blocks88154940k+Offloaded Content
#553External files in Media Library901668400Direct Query
#554Include Mastodon Feed90113800Non-prefixed global variable
#555getLaw WP API Client91114600curl curl setopt
#556IndieAuth913441400Missing direct file access protection
#557WP Force SSL & HTTPS SSL Redirect92182190k+Non-prefixed global variable
#558Drag and Drop File Upload for Elementor Forms942911k+curl curl setopt