Benchmark Performance

Increasing the speed of an API is always an advantage especially when running a headless ecommerce store.

If you don’t know already, the performance of the API already varies on 2 things. The server you use and the amount of WordPress plugins you have loading.

While I can’t help you with the first I can certainly help you with the second which is what this plugin is designed to do.

What does it do?

It’s designed to prevent any plugin (with the exception of CoCart and WooCommerce) that is not whitelisted or not a CoCart add-on or WooCommerce extension from loading when making a REST API request to increase performance.

That’s it.

However, this plugin is designed to be used as a must-use plugin which requires you to manully upload it either via FTP or via file manager with your web host.

Before and After Installing

As I said before the performance of the API varies but here are the benchmark results of the CoCart demo hosted on a shared web host using Postman.



I think that’s a pretty decent improvement for a shared host so on a private server the results should be much faster.

Whitelist a Plugin

If you wish to whitelist a plugin you can add it like so.

add_filter( 'cocart_benchmark_whitelist_plugins', function( $plugins ) ) {
    $plugins[] = 'amazon-s3-and-cloudfront/wordpress-s3.php';
    return $plugins;

Where do I get it?

Download the benchmark performance plugin



Support is not provided for this. Use at your own risk.