Code Block ScratchPad
by Alan C Brown 1 (0 reviews)

Code Block ScratchPad

A simple scratchpad/testbed for testing, and installing small additions to, pre-existing PHP/JS/CSS code for wordpress websites and add-ins.

Tested up to WP 5.4 (Current: 6.9.1)
v1.0.0 Current Version v1.0.0
Updated 5 years ago Last Update on 25 Nov, 2020
Refreshed 15 hours ago Last Refreshed on
Rank
#53,639
+930 this week
Active Installs
1+
-66.7%
KW Avg Position
1
No change
Downloads
3.2K
+2 today
Support Resolved
0%
No change
Rating
20%
Review 1 out of 5
1 (0 reviews)

Next Milestone 10

Total Progress 10%
0+ 10+
43,367
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 9 more installs to reach 10+

Rank Changes

45,840 48,516 51,192 53,867 56,543 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026
45,619 48,774 51,930 55,085 58,240 30-01-2026 31-01-2026 01-02-2026 02-02-2026 03-02-2026 04-02-2026 05-02-2026 06-02-2026 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026
44,524 47,989 51,454 54,918 58,383 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026 22-01-2026 23-01-2026 24-01-2026 25-01-2026 26-01-2026 27-01-2026 28-01-2026 29-01-2026 30-01-2026 31-01-2026 01-02-2026 02-02-2026 03-02-2026 04-02-2026 05-02-2026 06-02-2026 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026
44,497 47,970 51,442 54,914 58,387 16-11-2025 17-11-2025 18-11-2025 19-11-2025 20-11-2025 21-11-2025 22-11-2025 23-11-2025 24-11-2025 25-11-2025 26-11-2025 27-11-2025 28-11-2025 29-11-2025 30-11-2025 01-12-2025 02-12-2025 03-12-2025 04-12-2025 05-12-2025 06-12-2025 07-12-2025 08-12-2025 09-12-2025 10-12-2025 11-12-2025 12-12-2025 13-12-2025 14-12-2025 15-12-2025 16-12-2025 17-12-2025 18-12-2025 19-12-2025 20-12-2025 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026 22-01-2026 23-01-2026 24-01-2026 25-01-2026 26-01-2026 27-01-2026 28-01-2026 29-01-2026 30-01-2026 31-01-2026 01-02-2026 02-02-2026 03-02-2026 04-02-2026 05-02-2026 06-02-2026 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026
Current #53,639
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026
0 10 30-01-2026 31-01-2026 01-02-2026 02-02-2026 03-02-2026 04-02-2026 05-02-2026 06-02-2026 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026
0 10 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026 22-01-2026 23-01-2026 24-01-2026 25-01-2026 26-01-2026 27-01-2026 28-01-2026 29-01-2026 30-01-2026 31-01-2026 01-02-2026 02-02-2026 03-02-2026 04-02-2026 05-02-2026 06-02-2026 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026
0 10 16-11-2025 19-11-2025 22-11-2025 25-11-2025 28-11-2025 01-12-2025 04-12-2025 07-12-2025 10-12-2025 13-12-2025 16-12-2025 19-12-2025 22-12-2025 25-12-2025 28-12-2025 31-12-2025 03-01-2026 06-01-2026 09-01-2026 12-01-2026 15-01-2026 18-01-2026 21-01-2026 24-01-2026 27-01-2026 30-01-2026 02-02-2026 05-02-2026 08-02-2026 11-02-2026 14-02-2026
0 10 14-02-2025 26-02-2025 10-03-2025 22-03-2025 03-04-2025 15-04-2025 27-04-2025 09-05-2025 21-05-2025 02-06-2025 14-06-2025 26-06-2025 08-07-2025 20-07-2025 01-08-2025 13-08-2025 25-08-2025 06-09-2025 18-09-2025 30-09-2025 12-10-2025 24-10-2025 05-11-2025 17-11-2025 29-11-2025 11-12-2025 23-12-2025 04-01-2026 16-01-2026 28-01-2026 09-02-2026 14-02-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

1.0
0 reviews
Overall 20%
5
0 (0%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 2 of 2
Keyword Position Change Type Updated
codepad 1 Tag 17 hours ago
testpad 1 Tag 17 hours ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
1.0.0
Last Updated
Nov 25, 2020
Requires WP
4.7+
Tested Up To
5.4
PHP Version
N/A
Author
Alan C Brown

Support & Rating

Rating
★ ☆ ☆ ☆ ☆ 1
Reviews
0
Support Threads
0
Resolved
0%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about Code Block ScratchPad

If you are writing (or intending to write) PHP code and are looking for some quick/easy way to test existing PHP code, or add a tiny snippet of code to an existing web site, then (hopefully) YES. If however you are trying to make a page look different, display a field etc, then I would generally recommend looking elsewhere in the first instance. There are a lot of great plugins that provide nice friendly interfaces for modifying the presentation of content and adding new fields/features. This plugin gives access to the low-level PHP & Javascript code that powers wordpress enabling you to do almost anything thats possible in wordpress. However, it's just a basic low-level tool and doesn't provide any ready-made solutions, relying on the user having knowledge how to program in PHP for wordpress. Whilst using this plugin does include some basic safety measures and using it may be a lot simpler than creating your own plugin, please note that it can?t entirely protect you from the effects of bad code, and it?s very far removed from a full development environment.
The answer is almost certainly Yes - However you are probably asking the wrong question -- Please see: "Should I get/use this plugin" and "What this plug is for".
This plugin was initially created as an aid to creating a second more complex plugin. One of the issues of creating plugins is testing the PHP code being written and investigating/verifying how pre-existing wordpress functionality works. I wanted a simple way to test/run PHP code that could interact with existing code, but without the otherwise ever-present risk that I could totally kill the whole website including the admin pages simply by inadvertently introducing a minor syntax error. There are some great on-line scratchpads for testing standalone PHP code snippets but these obviously can be used to test functionality specific to be environment. This add-in has proven very useful to me in this regard and so I thought/hoped it may prove useful to others with similar needs. A secondary aim was related to an issue I had faced previously working on another website, where I needed a very tiny fragment of PHP code to achieve my goal.
Given that it was totally specific to that web site, that seemed like an unnecessarily large overhead to achieve something so simple. In fact, it turned out that the biggest issue wasn't the creation of the tiny bespoke plugin, but the issue of added complexity/risks created for site maintenance going forward. This add-in hopefully makes creating/administration and ongoing managment including minor tweaks to the PHP code snippet, a lot more simple, transparent, and less risky.
To install PHP/JS code, first press the "Check/Run" button to verify the code is syntactically valid. Then assuming it is fine the "Publish" button will be displayed. The publish button will cause the displayed code to be installed and be made available to all pages in the site, replacing any version previously installed via this method. I just checked/published some PHP code and now all I can see is a fatal parser/syntax error message!!!
The scratchpad plugin will automatically disable any code that previously bailed out with a fatal error, so that it wont auto-run in the future.
Wordpress includes the facility to view web-site pages in "preview" mode. The scratchpad plugin will use the PHP/JS/CSS code currently displayed in the settings page as opposed to the currently installed code when displaying content in preview mode.
The PHP code is triggered/run by upon the wordpress 'plugins_loaded' event. So it's run in approximately the same time/context as the intial plugin code is run. You can use the wordpress add_action(...) or add_filter(...) functions to have your code run/applied to specific times/events.
There are two primary uses of this codepad: The first of these is testing code eg evaluating an expression and seeing what it returns, the second is adding code/functions that will be utilised later when displaying website pages. Often these two functions may be combined so we may defined some functions and then have some additional code to test those functions. In these cases the /** [ Test Code ] / comment may be used to separate these two code blocks.
You can set values in the global $acb_scratchpad_var eg $acb_scratchpad_var['myVarName']=$myValue; then this will be available in javascript as acb_scratchpad_var['myVarName']; If you whish to send things related to the current wordpress page/post then you may want to ensure that your PHP code only runs once wordpress is fully loaded using add_action('wp_loaded','name_of_my_php_fuction_to_get_and_set_vars'); or similar. Items in $acb_scratchpad_var whose names start with '--' will additionally be defined as css vars values. Alternatively for cleaner/improved syntax you could use LESS format eg by using the https://wordpress.org/plugins/wp-less plugin.

Sign In / Register

You need to sign in or register to use this feature.