WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Edi Amin v2.6.0

WP Console

An in-browser PHP console for WordPress powered by PsySH

WP Console

The facts

Rating
5★ from 21
Active installs
20k+
Price
Free
Last updated
21 Aug 2026
Added
Jun 2019
Requires WP
5.3.12
Tested up to
WP 7.1
Requires PHP
7.4
Downloads
1,943,703

Our analysis

AI-assisted

WP Console is a WordPress plugin that integrates the PsySH PHP console into your browser. It allows you to write and execute PHP code directly from the WordPress admin area, providing features like real-time autocompletion and access to debug logs.

This plugin is designed for developers who need an interactive debugging tool and a runtime console for PHP within their WordPress environment. It enhances the coding experience by offering a powerful code editor and customizable code snippets, making it suitable for those familiar with PHP and WordPress development.

Best for: This plugin is best suited for developers working with PHP in a WordPress environment.

What it does well

  • Integrates PsySH for an interactive debugging experience
  • Real-time autocompletion for PHP and WordPress functions
  • Access to debug.log contents directly from the browser
  • Customizable code snippets compatible with VS Code

Where it falls short

  • Certain PsySH commands are not supported in the browser console
  • Not intended for use on a production server

Verdict

WP Console offers useful features for PHP developers looking to debug and execute code within WordPress. However, it should be used with caution, especially in non-production environments.

From the developer

Edi Amin's own description of WP Console, lightly tidied.

WP Console brings the renowned PsySH directly to your browser. PsySH serves as a runtime developer console, an interactive debugger, and a PHP REPL (Read-Eval-Print Loop).

To utilize WP Console, simply write your code within the code editor, then press Cmd-Enter (mac) or Ctrl-Enter (win/linux) to instantly view the output in your browser.

Moreover, you have the option to employ PsySH alongside wp-cli by executing the command wp shell. Notably, wp-cli comes with inherent compatibility for psysh. All that is required is the activation of WP Console to leverage this feature.

Features

  • Powerful code editor powered by Ace Editor.
  • Real-time autocompletion for PHP core and WordPress functions, complete with placeholders.
  • Introducing _dump as a more versatile alternative to var_dump, leveraging the capabilities of Symfony VarDumper.
  • Instant access to debug.log contents, with the added convenience of clearing them directly from your browser.
  • Enhanced shell experience courtesy of psySH, facilitating advanced interaction through wp shell.
  • Customizable code snippet functionality, compatible with VS Code supported code snippets. Explore examples like these WooCommerce snippets.

Please note that certain PsySH commands, such as ls, doc, show, and magic variables like $_, $__class, are not currently supported in the browser console.

Getting Started

To begin using the plugin, follow these steps:

  1. Activate the plugin within your WordPress setup.
  2. Look for a quick link labeled “Console” in the WP Admin Bar on the right-hand side (see the second screenshot below).
  3. Click on the “Console” link to access the WP Console panel.

Security Concern

WP Console explicitly verifies the presence of the manage_options permission to render the user interface and execute various functions. However, it’s important to note that this plugin is not intended for use on a production server.

Other Plugin

Working with the block or the block editor? Checkout CSS Class Manager – An advanced autocomplete additional css class control for your blocks.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for developer tooling.

WPCode

WPCode

93

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...

Free 3M+ installs 4.9★ (1,873)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
Shortcoder

Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...

Free 100k+ installs 4.9★ (227)
Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

Free 90k+ installs 4.9★ (705)
Code Snippets

An easy, clean, and simple way to enhance your site with code snippets.

Free 1M+ installs 4.7★ (509)