WP Manifestindependent plugin directory
manifest / developer / likoton-wp-debug

LiKoToN WP Debug

A lightweight, modern debugging plugin for WordPress that automatically collects PHP errors, WordPress errors, REST API calls, and user login events. Includes a clean log viewer with filters, sorting, dark mode, CSV export, and automatic cleanup.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/likot180/likoton-wp-debug/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A lightweight, modern debugging plugin for WordPress that automatically collects PHP errors, WordPress errors, REST API calls, and user login events.

Includes a clean log viewer with filters, sorting, dark mode, CSV export, and automatic cleanup.


Features

Log Collection

  • PHP errors & warnings
  • WordPress errors (wp_error_added)
  • REST API requests (route, method, params)
  • User login events
  • Custom logs via LWD_Logger::log()

Logs Viewer

  • AJAX live filtering
  • Search, level, source, last X logs
  • Client-side sorting
  • Color-coded badges
  • Responsive table

Dark Mode

  • WordPress 7-style toggle
  • Applies to all plugin pages

Settings

  • Dark mode
  • Log retention (30m → 1 month)
  • Capability required to view logs
  • Auto-save via AJAX with toast notification

Automatic Cleanup

  • WP-Cron based
  • Configurable retention
  • Table optimization

Export

  • Export all logs to CSV
  • Secured with nonce & capability check

Installation

From WordPress Dashboard

  1. Upload the plugin ZIP
  2. Activate LiKoToN WP Debug
  3. Go to LiKoToN WP Debug → Logs

Manual installation

  1. Upload folder likoton-wp-debug to /wp-content/plugins/
  2. Activate plugin
  3. Logs appear in the main admin menu

Developer API

Custom logs

LWD_Logger::log( 'info', 'custom_source', 'Something happened', [ 'extra' => 'data' ] );

Supported log levels

PSR-3 + extended PHP levels:

  • debug,
  • info,
  • notice,
  • warning,
  • error,
  • critical,
  • alert,
  • emergency,
  • deprecated,
  • user_deprecated,
  • strict,
  • parse,
  • core_error,
  • core_warning,
  • compile_error,
  • compile_warning,
  • recoverable_error,
  • user_error,
  • user_warning,
  • user_notice

FAQ

Does this slow down my site? No, logs are stored in a dedicated table and inserted efficiently.

Can I export logs? Yes, via the Export logs (CSV) button.

Can I restrict access? Yes, choose the required capability in Settings.

Multisite support? Yes, each site has its own logs table.

Changelog

1.0.0

  • Initial release
  • PHP/WP/REST/login logging
  • AJAX filters
  • Dark mode
  • CSV export
  • Automatic cleanup
  • Capability control