LevelNetwork Heartbeat Manager

描述

Heartbeat Manager allows you to optimize your WordPress site’s performance by limiting or completely disabling the Heartbeat API calls.

The WordPress Heartbeat API uses AJAX calls (admin-ajax.php) to provide real-time information, such as when other users are editing a post or to show real-time notifications (like in WooCommerce). While useful, on many sites, especially E-commerce stores with high traffic, these frequent calls can put a significant strain on the server’s CPU.

This plugin allows you to granularly control this behavior via a simple settings card in Settings > Heartbeat Manager.

Key Features:

  • Backend Frequency Control: Increase or manage the “beat” interval while inside the WordPress Admin Dashboard.
  • Flexible Frontend Management: Choose whether to keep the Heartbeat API active on the public site or disable it completely.
  • Integrated Testing Guide: Includes a built-in step-by-step Vademecum in the sidebar to verify your settings via browser Developer Tools.
  • Lightweight & Translation Ready: Clean, lightweight code that is fully internationalized and ready for translation using the standard levelnetwork-heartbeat-manager text-domain.

Developed by sonofgod80 (LevelNetwork.it) to maximize site fluidity.

屏幕截图

安装

  1. Upload the levelnetwork-heartbeat-manager folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings > Heartbeat Manager to configure the values.

常见问题

Will disabling the Heartbeat API break my site?

No, it will not break your site’s core layout. However, completely disabling it on the frontend might affect real-time updates from third-party plugins that rely on it (e.g., live notification badges or certain real-time WooCommerce cart dynamic updates). If you notice issues, you can change the setting from “Disabled” to a higher time interval (e.g., 60 or 120 seconds).

What is the recommended setting for an E-commerce store?

For maximum performance under high traffic, we highly recommend setting the Backend interval to 60 or 120 seconds, and setting the Frontend to “Disabled”. This drastically reduces the number of background AJAX requests (admin-ajax.php) hitting your server.

评价

此插件暂无评价。

贡献者及开发者

「LevelNetwork Heartbeat Manager」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.1

  • Enhancement: Fully internationalized (i18n ready) with default language set to English.
  • Enhancement: Added a comprehensive step-by-step “Plugin Vademecum & Testing Guide” section in the admin sidebar.
  • Fix: Completely refactored prefixing (changed short hm_ to unique lnhm_) across all constants, options, classes, and variables to ensure 100% compliance with WordPress.org guidelines and avoid collisions.
  • Fix: Greatly improved logic for handling frontend heartbeat intervals (disabling via inline script, changing frequency via standardized localization).
  • Fix: Added missing escaping (esc_attr, esc_html) and proper sanitization (intval) for better security.
  • Feature: Added “Settings” and “Donate” links directly beneath the plugin name in the plugins list.
  • Dev: Cleaned up CSS and separated layout structures to avoid class name conflicts with WordPress core.

1.0.0

  • Initial release.
  • Granular heartbeat control and dedicated UI.