Check your server's PHP speed settings

Workbookery does its math on your own server, in PHP. A few PHP speed settings — especially OPcache and JIT — help those calculations finish comfortably. This page gives you a free, temporary check you can put on your site, and a short message you can send your host if something is off.

The tool is only for site administrators. Visitors never see it. It does not read your workbooks, forms or entries. When you are finished, you delete the file.

Download the check

The file is a single WordPress plugin named wb-jit-check.php. It is free to use.

Download Workbookery JIT Check

Install it

  1. Unzip the download. You should have one file named wb-jit-check.php.
  2. In your WordPress files, open the wp-content folder. If there is no folder named mu-plugins inside it, create one. The name must be exactly mu-plugins.
  3. Upload wb-jit-check.php into that mu-plugins folder.
  4. In WordPress, go to Plugins > Must-Use. You should see Workbookery JIT Check in the list.

Must-use plugins start as soon as the file is in that folder. You do not activate them from the usual Plugins screen.

Where the notice shows

On WordPress admin screens, at the top, as a notice. Only administrators (people who can manage the site) can see it. If you are logged in as an administrator, it appears on almost any admin page, such as the Dashboard.

On a multisite network, administrators of individual sites can also see the notice. Install the tool only briefly, and delete it once you have checked.

How to read each line

At the top, in bold, the notice says JIT is ON or JIT is OFF. It says ON only when both JIT enabled and JIT on, below, are yes. Otherwise it says OFF, and the notice is shown as a warning.

Then it lists:

  • PHP version. Your PHP version, with the SAPI in parentheses. The SAPI is how PHP is running on the server, for example fpm-fcgi.
  • OPcache loaded. yes or no. Whether the Zend OPcache extension is present.
  • OPcache enabled. yes or no. Whether OPcache is actually turned on, not just loaded.
  • opcache.jit. The current JIT mode setting. If this is empty, the tool shows (not set).
  • opcache.jit_buffer_size. The current JIT buffer setting. If this is empty, the tool shows (not set). This value should include a unit such as M. A bare number like 512 means 512 bytes, which is far too small.
  • JIT enabled. yes or no. Whether JIT is enabled in OPcache’s status.
  • JIT on. yes or no. Whether JIT is actually running.
  • ionCube Loader. no, or yes, sometimes with a version in parentheses. If ionCube Loader is loaded, JIT stays off.
  • JIT buffer free. How much of the JIT buffer is still free, written like 12 MB of 64 MB. If the tool cannot read this, it shows n/a.

At the bottom, the notice reminds you: Delete wp-content/mu-plugins/wb-jit-check.php when done.

Recommended settings

These are server-level PHP settings. They are set through your host’s PHP options or in php.ini. A .user.ini file in your site folder will not do this job.

  • opcache.enable=1
  • opcache.jit=tracing
  • opcache.jit_buffer_size=64M or more. Always include the M. A bare 512 means 512 bytes.

If ionCube or Xdebug is loaded

If ionCube Loader or Xdebug is loaded, PHP keeps JIT off, even when the settings above look right. The check shows whether ionCube Loader is loaded. It does not have a line for Xdebug, so if JIT stays off and ionCube Loader is no, ask your host whether Xdebug is loaded.

PHP memory

Workbookery also needs a PHP memory_limit of at least 128M. That minimum was measured for Workbookery 1.0.4.2 and still applies in 1.0.9. Tools & Logs now uses the same 128M minimum: “Ask your host for at least 128 MB of PHP memory. Larger workbooks may need more.” See Quick start for how to set memory_limit, WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT.

Workbookery core needs PHP 8.2 or newer. The Data Tables add-on needs PHP 8.3 or newer.

A message you can send your host

You can copy and paste this:

Please set these PHP options at the server level (in the host PHP settings or php.ini, not a .user.ini file):

opcache.enable=1
opcache.jit=tracing
opcache.jit_buffer_size=64M

Please keep the M in 64M — a number without a unit is treated as bytes. If ionCube Loader or Xdebug is loaded, JIT stays off; please leave those unloaded on this site unless we need them. Our WordPress plugin also needs PHP memory_limit set to at least 128M.

When you are done

Delete wb-jit-check.php from the mu-plugins folder. If that folder is then empty, you can leave it or remove it. After the file is gone, the notice disappears, and the tool is no longer on your site.