BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Script Logic icon
Possibly abandoned Tested up to 3.9.40

Script Logic

This plugin lists all JavaScripts and Style sheets with a control field that lets you control CSS & JavaScript files to include only on the pages where you actually need them. The text field lets you use WP’s…

Active installs10+10+ tier
Downloads · 30d42▲ +55.6% vs prev. 30d
Rating3/52 reviews
Health score24/100At risk
All-time downloads2.7KSince Jun 2014
Support resolved—No recent threads
RequiresWP 2.8PHP any
Downloads · 7d13▲ +85.7% week over week
Our verdict

Consider an alternative

Script Logic shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 3/5 and was last updated 12 years ago, and scores 24/100 on our health check.

  • Small user base (10+ active installs)
  • Very few reviews so far
  • No update in 12 years
  • Only tested up to WordPress 3.9 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

135Jul 4Aug 17Oct 1
Yesterday1
Daily average (1y)1
Peak day7Sep 14, 2026
Last 12 months330

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Script Logic stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
admin >100 10,000 Best admin plugins →
conditional-tags >100 1,365 Best conditional-tags plugins →
script >100 10,000 Best script plugins →
speed >100 5,747 Best speed plugins →
style >100 10,000 Best style plugins →

Version adoption

Share of active sites per release.

  • 0.3100.0%

Rating breakdown

★★★★★★★★★★ 3 from 2 reviews

  • 5★50.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★50.0%

About Script Logic

From the official readme · v0.3

Description

This plugin lists all JavaScripts and Style sheets with a control field that lets you control CSS & JavaScript files to include only on the pages where you actually need them. The text field lets you use WP’s Conditional Tags, or any general PHP code.

NOTE: The script logic you introduce is evaluated directly. Anyone who has permission to manage options will have the right to add any code, including malicious and possibly destructive code. There is an optional filter ‘script_logic_eval_override’ which you can use to bypass the EVAL with your own code if needed. (See Other Notes).

Writing Logic Code

The text in the ‘Logic’ field can be full PHP code and should return ‘true’ when you need the script to load. If there is no ‘return’ in the text, an implicit ‘return’ is added to the start and a ‘;’ is added on the end. (This is just to make single statements like is_home() more convenient.)

The Basics

Make good use of WP’s own conditional tags. You can vary and combine code using:

  • ! (NOT) to reverse the logic, eg !is_home() is TRUE when this is NOT the home page.
  • || (OR) to combine conditions. X OR Y is TRUE when either X is true or Y is true.
  • && (AND) to make conditions more specific. X AND Y is TRUE when both X is true and Y is true.

There are lots of great code examples on the WP forums, and on WP sites across the net. But the WP Codex is also full of good examples to adapt, such as Test if post is in a descendent category.

Examples

  • is_home() — just the main blog page
  • !is_page('about') — everywhere EXCEPT this specific WP ‘page’
  • !is_user_logged_in() — shown when a user is not logged in
  • is_category(array(5,9,10,11)) — category page of one of the given category IDs
  • is_single() && in_category('baked-goods') — single post that’s in the category with this slug
  • strpos($_SERVER['HTTP_REFERER'], "google.com")!=false — script to load when clicked through from a google search
  • is_category() && in_array($cat, get_term_children( 5, 'category')) — category page that’s a descendent of category 5
  • global $post; return (in_array(77,get_post_ancestors($post))); — WP page that is a child of page 77
  • global $post; return (is_page('home') || ($post->post_parent=="13")); — home page OR the page that’s a child of page 13

Note the extra ‘;’ on the end where there is an explicit ‘return’.

The ‘script_logic_eval_override’ filter

Before the Script Logic code is evaluated for each script, the text of the Script Logic code is passed through this filter. If the filter returns a BOOLEAN result, this is used instead to determine if the script should load. Return TRUE to load.

Installation

  1. Upload plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure the plugin at Settings -> Script Logic
  4. That’s it.

Configuration

On plugin configuration page you see all script and CSS files with a logic field. Lets suppose you are using Contact Form 7 plugin. You created a page Contact Us (slug = contact-us) and want to include Contact Form 7 scripts only on this page. Find the Contact Form 7 scripts on plugin’s configuration page (they have handle = contact-form-7) and put is_page('contact-us') in logic field

Changelog

NA

0.1

  • First stable release.

Full changelog on WordPress.org →

Screenshots

screenshot-1.png
screenshot-1.png
screenshot-2.png
screenshot-2.png

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Script Logic alternatives

All admin plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Loginizer Loginizer Loginizer is a WordPress security plugin which helps you fight against bruteforce attacks. by Softaculous 1M+ ★★★★★★★★★★ 4.8 (1K) 4 days ago 90
2 Redux Framework Redux Framework Redux is a simple, truly extensible, and fully responsive options framework for WordPress… by David Anderson / Team Updraft 900K+ ★★★★★★★★★★ 4.4 (273) 2 weeks ago 95
3 Admin Menu Editor Admin Menu Editor Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom… by Janis Elsts 300K+ ★★★★★★★★★★ 4.6 (312) 1 month ago 81
4 White Label CMS White Label CMS Customise dashboard panels and branding, hide menus plus lots more. by Video User Manuals 200K+ ★★★★★★★★★★ 4.7 (114) 3 months ago 71
5 Advanced Custom Fields: Extended Advanced Custom Fields: Extended All-in-one enhancement suite that improves WordPress & Advanced Custom Fields. by Konrad Chmielewski 100K+ ★★★★★★★★★★ 4.8 (132) 1 month ago 76
6 Nested Pages Nested Pages Nested Pages provides a drag and drop interface for managing pages & posts in the WordPress… by Hook & Filter 90K+ ★★★★★★★★★★ 4.7 (126) 7 days ago 88
7 Disable REST API Disable REST API Disable the use of the REST API on your website to site users. Now with User Role support! by Dave McHale 80K+ ★★★★★★★★★★ 4.8 (38) 3 years ago 48
8 All In One Favicon All In One Favicon Easily add a Favicon to your site and the WordPress admin pages. Complete with upload… by Garrett Grimm 60K+ ★★★★★★★★★★ 4.5 (82) 3 years ago 46
9 Conditional Menus Conditional Menus This plugin enables you to set conditional menus per posts, pages, categories, archive… by themifyme 60K+ ★★★★★★★★★★ 4.4 (72) 2 months ago 76
10 Add From Server Add From Server Add From Server is designed to help ease the pain of bad web hosts, allowing you to upload… by Dion Hulse 60K+ ★★★★★★★★★★ 4.6 (239) 6 years ago 46

FAQ

Script Logic: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Oct 2, 2026

Is Script Logic free?

Yes. Script Logic is free to download and use from the official WordPress.org plugin directory.

Is Script Logic safe to use in 2026?

Script Logic shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 3/5 and was last updated 12 years ago, and scores 24/100 on our health check.

How many websites use Script Logic?

Script Logic is active on 10+ WordPress websites and has been downloaded 2,737 times since it launched in June 2014. It was downloaded 42 times in the last 30 days.

Does Script Logic work with WordPress 7.1?

Script Logic is officially tested up to WordPress 3.9.40, while the latest release is 7.1.2. It may still work, but try it on a staging site first.

When was Script Logic last updated?

The latest version, 0.3, was released on July 10, 2014 (12 years ago).

Who makes Script Logic?

Script Logic is developed and maintained by Tahir Yasin.

What are the best alternatives to Script Logic?

The most popular alternatives to Script Logic are Loginizer (1M+ installs), Redux Framework (900K+ installs) and Admin Menu Editor (300K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.