WordPress.WP.AlternativeFunctions.parse_url_parse_url

parse url parse url

The plugin uses raw URL parsing where WordPress URL helpers may be safer or more compatible.

medium weight

Why It Shows Up

Plugin Check found `parse_url()` in plugin code.

Why It Matters

URL parsing is easy to get subtly wrong, especially with relative URLs, encoded values, and malformed input.

How to Fix

  • Use WordPress helpers such as `wp_parse_url()`, `esc_url_raw()`, `esc_url()`, and `wp_http_validate_url()` where they fit.
  • Validate schemes and hosts before using parsed URL parts.
  • Do not use parsed URLs to build redirects or requests without allowlisting.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#1051Disable Registration Page8846400Text Domain Mismatch
#1052Smart Blocks – WordPress Gutenberg Blocks8810761k+Post Not In post not in
#1053SiteLock Security – WP Hardening, Login Security & Malware Scans894491k+Text Domain Mismatch
#1054Child Themify901047k+Missing direct file access protection
#1055Content Anchor Links90651k+Non-prefixed hook name
#1056Ergonet Cache90322k+Output is not escaped
#1057LH Force Lowercase URLs90432k+Input is not validated or sanitized
#1058PromPress9084700Missing direct file access protection
#1059Clever Fox9116130k+wp function not compatible with requires wp
#1060LegalBlink for Aruba9133297k+Missing direct file access protection
#1061MultiManager WP – Manage All Your WordPress Sites Easily9128111k+Missing Arg Domain
#1062Pantheon Advanced Page Cache9110610k+Request data is not unslashed
#1063Snow Monkey Forms91364130k+Non-prefixed global variable
#1064IndieAuth923027400Missing direct file access protection
#1065Import Shopify To WP9375900Missing Translators Comment
#1066LLMs.txt and LLMs-Full.txt Generator941494k+Non-prefixed global variable
#1067Simple Lightbox for WordPress94117400Non Enqueued Script
#1068Image Size Selection for Divi96603500Text Domain Mismatch
#1069NextGenThemes jsDelivr CDN96270400wp function not compatible with requires wp
#1070Before + After Images for Divi971233k+Missing direct file access protection
#1071SoundCloud Shortcode97615k+Missing Arg Domain
#1072SameSite Cookies9832800Missing direct file access protection