WordPress.PHP.DevelopmentFunctions.prevent_path_disclosure_phpinfo

prevent path disclosure phpinfo

Development or debugging behavior appears in code that may run in production.

medium weight

Why It Shows Up

The scan found logging, debugging, path disclosure, `phpinfo()`, error-reporting changes, or similar development-oriented functions.

Why It Matters

Debug output can leak paths, configuration, request data, stack details, or sensitive runtime information.

How to Fix

  • Remove temporary debugging calls before release.
  • If logging is required, guard it with `WP_DEBUG` or a plugin setting intended for administrators.
  • Never show debug details to unauthenticated visitors or normal front-end users.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1BulletProof Security05,0484,94920k+2026-05-20Output Not Escaped
#2Intercom060716k+2025-04-16Non Prefixed Function Found
#3Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF20557541100k+2026-05-19Output Not Escaped
#4Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+2026-05-22Output Not Escaped
#5Packeta218023338k+2025-11-07Exception Not Escaped
#6Wordfence Security – Firewall, Malware Scan, and Login Security211,5922,9735m+2026-05-13Output Not Escaped
#7WP phpMyAdmin214,5286,43550k+2025-10-17Missing Arg Domain
#8E2Pdf – Export Pdf Tool for WordPress221,07583610k+2026-06-16Unsafe Printing Function
#9InfiniteWP Client222,2861,812200k+2026-02-26Exception Not Escaped
#10NinjaFirewall (WP Edition) – Advanced Security Plugin and Firewall221,2652,065100k+2026-06-07Non Prefixed Variable Found
#11Prime Mover – Migrate WordPress Website & Backups221,3261,60010k+2026-06-06Non Prefixed Variable Found
#12Search & Replace Everything – Quick and Easy Way to Find and Replace Text, Links221,0441,79720k+2026-05-27Non Prefixed Variable Found
#13URL Shortify – Simple and Easy URL Shortener221,5202,68910k+2026-06-04Non Prefixed Variable Found
#14ManageWP Worker225075651m+2026-05-11Non Prefixed Class Found
#15WP Umbrella: Update Backup Restore & Monitoring2291590570k+2026-06-10Exception Not Escaped
#16YaySMTP – WP Mail SMTP with Email Logs, Tracking & Reports2265443510k+2026-06-16Exception Not Escaped
#17Ecwid by Lightspeed Ecommerce Shopping Cart2333930720k+2026-02-13missing direct file access protection
#18Justified Gallery235891,4179k+2025-01-27Non Prefixed Variable Found
#19CM Pop-Up – Create engaging popups to capture attention and boost interaction244664089k+2026-05-23Output Not Escaped
#20Joli Table Of Contents246531,7557k+2026-04-10Non Prefixed Variable Found
#21Unlimited Elements For Elementor247092,092300k+2026-05-14Non Prefixed Variable Found
#22WPeMatico RSS Feed Fetcher241,37658210k+2026-06-15Output Not Escaped
#23Beaver Builder Page Builder – Drag and Drop Website Builder254,4631,819100k+2026-06-08Text Domain Mismatch
#24Online Scheduling and Appointment Booking System – Bookly253,52887060k+2026-06-04Text Domain Mismatch
#25Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel258761,798100k+2026-05-21Non Prefixed Variable Found
#26Index WP MySQL For Speed2525025550k+2026-05-07Output Not Escaped
#27Appointment Booking Calendar — Simply Schedule Appointments Booking Plugin2596073860k+2026-06-16Text Domain Mismatch
#28Kadence Central – Site Management, Backups, Security, and Reporting2646221330k+2026-06-11Text Domain Mismatch
#29CM Tooltip Glossary276111888k+2026-05-22Output Not Escaped
#30LWS Tools3110413420k+2026-06-15Missing Unslash
#31Wonder Slider Lite332731878k+2025-07-18Output Not Escaped
#32WP Edit3333713740k+2018-10-15Unsafe Printing Function
#33Health Check & Troubleshooting35264238300k+2024-07-25Missing Arg Domain
#34WP-ServerInfo381625510k+2023-08-09Output Not Escaped
#35WP Server Health Stats39663110k+2024-07-01Output Not Escaped
#36Heroic Favicon Generator4110476k+2022-05-16Output Not Escaped
#37Compress, Resize & Lazy Load Images – WPvivid Image Optimization471075810k+2026-06-01missing direct file access protection
#38Cloudways WordPress Migrator62152520k+2026-04-20Output Not Escaped
#39DreamHost Automated Migration62152320k+2026-04-20Output Not Escaped
#40Migrate Guru – Site Migration & Cloning8178200k+2026-04-20Unescaped DBParameter
#41BlogVault Backup & Staging82532280k+2026-06-06missing direct file access protection
#42MalCare WordPress Security Plugin – Malware Scanner, Cleaner, Security Firewall825522200k+2026-06-06missing direct file access protection
#43The WP Remote WordPress Plugin82512430k+2026-06-06missing direct file access protection
#44Cloudways Site Manager9114720k+2026-05-25wp function not compatible with requires wp