WP Manifestindependent plugin directory
manifest / performance / cares-usage-logging

CARES Usage Logging

Log performance details about page loads in a WP environment.

★ 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/careshub/cares-usage-logging/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

This plugin simply logs page load metrics to a shared CSV or ElasticSearch instance to help find pages that are inefficient. When writing to a CSV, it's intended for short-term use, because the file size could become quite large.

To log data, I recommend adding the example CSV (cares-shared-log.csv in this directory) to the web server's httpd logs directory.

In your site's wp-config.php file, define the path to the CSV like (change the path for your server's architecture):

// CARES shared usage logging
if ( ! defined( 'CARES_USAGE_LOG' ) ) {
    define( 'CARES_USAGE_LOG', '/var/log/httpd/cares_shared_log.csv' );
}

If you don't want to track anonymous users (say you're mostly worried about some tools that logged-in users use), add this to your wp-config.php file:

// CARES shared usage logging - ignore anonymous visitors.
if ( ! defined( 'CARES_USAGE_LOG_IGNORE_ANON' ) ) {
    define( 'CARES_USAGE_LOG_IGNORE_ANON', true );
}

Danger!!

The plugin doesn't attempt to rotate the CSV log file, so it's important to check back on it daily while actively profiling. The file could become unbelievably huge if you have a high-traffic site and ignore it.