=== DevSniper – Global Developer Search === Contributors: interestoffice Tags: inspector, search, admin, developer, productivity Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 0.5.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Fast admin search + front-end inspector for admins to identify elements and jump to editing. == Description == DevSniper brings two tools in one lightweight plugin: * Front-end Inspector for logged-in admins (or a custom capability via `devsniper_required_cap`). Hover to highlight, click to view tag/ID/classes, size and offsets, DOM path, CSS selector, source detection (Elementor/Gutenberg/Theme), copy buttons, quick “Open Editor” link, favourites, and a saved per-user toggle. * Admin Search (command palette) inside wp-admin with `Ctrl/Cmd + K`: quick results for posts/pages, media, users, admin pages, plus per-user favourites with a star toggle. Clean UI that respects WordPress styling, with tabs for General/Sources/Premium settings. No tracking, no external requests, no locked “pro-only” code. Everything in this free version is fully usable. == Installation == 1. Upload the plugin files to `/wp-content/plugins/devsniper` or install via the Plugins screen. 2. Activate the plugin through **Plugins** in WordPress. 3. In wp-admin click the 🎯 icon in the admin bar or press `Ctrl/Cmd + K` to open the search palette. 4. On the frontend (logged-in admins), click the same 🎯 icon or press `Ctrl/Cmd + Shift + I` to toggle the Inspector. == Frequently Asked Questions == = Who can use the Inspector? = By default only users with `manage_options` (filterable via `devsniper_required_cap`) and who are logged in. The state is saved per user. = Does it load for visitors? = No. Assets load only for logged-in users with the right capability. = Do you send any data outside my site? = No. There is no telemetry, no CDN, no remote requests in this MVP. == Screenshots == 1. Command palette in wp-admin with grouped results and favourites. 2. Front-end inspector highlight with floating panel and copy buttons. == Changelog == = 0.5.1 = * Update: Plugin name reverted to “DevSniper – Global Developer Search”. * Update: Version bump and housekeeping. = 0.1.0 = * New: Front-end Inspector with hover highlight, element details, copy buttons, open-editor link, favourites stored in user meta, and keyboard toggle `Ctrl/Cmd + Shift + I`. * New: Admin search keeps existing UI, now stores favourites per user, honours capability checks, and ships with tabbed settings + Premium placeholder. * Security: Capability filter, nonces on all AJAX, strict sanitization/escaping, uninstall cleanup of user meta. == SECURITY CHECKLIST == * Capabilities: Inspector gated by `manage_options` (filter `devsniper_required_cap`); admin search limited to `edit_posts`. * Nonces: All AJAX routes verify `devsniper_nonce` plus capability checks before mutating data. * Sanitization/Escaping: All incoming text via `sanitize_text_field`/`esc_url_raw`; outputs escaped in HTML; URLs escaped. * External requests: None. No telemetry or third-party calls; assets served locally.