Title: High CPU usage
Last modified: August 18, 2025

---

# High CPU usage

 *  [jimh275](https://wordpress.org/support/users/jimh275/)
 * (@jimh275)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/high-cpu-usage-63/)
 * Hello, I noticed one of my sites generating extremely high CPU spikes and my 
   PHP log is full of errors concerning the my calendar widget:
 * [07-Jun-2025 07:06:05 UTC] PHP Warning: Undefined variable $preset in /home/customer/
   www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/
   includes/widgets/class-my-calendar-upcoming-widget.php on line 183
   [07-Jun-2025
   07:07:57 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.
   whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/
   widgets/class-my-calendar-upcoming-widget.php on line 183[07-Jun-2025 07:07:57
   UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.
   org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-
   upcoming-widget.php on line 183[07-Jun-2025 07:08:24 UTC] PHP Warning: Undefined
   variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/
   wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.
   php on line 183[07-Jun-2025 07:08:59 UTC] PHP Warning: Undefined variable $preset
   in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 20:58:19 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 20:58:46 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 20:59:19 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 21:05:53 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 22:24:53 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 22:25:37 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 22:26:20 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 22:26:59 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[14-Jun-2025 22:33:13 UTC] PHP Warning: Undefined variable $preset in/
   home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on
   line 183[15-Jun-2025 14:02:27 UTC] PHP Warning: Undefined array key “template”
   in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/
   plugins/my-calendar/my-calendar-widgets.php on line 80[15-Jun-2025 14:02:27 UTC]
   PHP Warning: Undefined array key “skip” in /home/customer/www/staging2.whitepasscountrymuseum.
   org/public_html/wp-content/plugins/my-calendar/my-calendar-widgets.php on line
   354
 * —————————————————————
 * Any help in troubleshooting what’s going on would be appreciated, thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhigh-cpu-usage-63%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/high-cpu-usage-63/#post-18611107)
 * The PHP warnings are resolved in the latest release.
 * The CPU spikes aren’t something I can say for sure; though I suspect it has to
   do with AI bots. AI bots are well-documented as ignoring all server-side bot 
   directives. My Calendar uses a variety of instructions for bots to prevent crawling
   unnecessarily, but if AI bots ignore that, they could end up crawling the My 
   Calendar pages very heavily for no reason.
 *  Thread Starter [jimh275](https://wordpress.org/support/users/jimh275/)
 * (@jimh275)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/high-cpu-usage-63/#post-18611113)
 * Thanks for the reply, bots would make sense, as I’m also getting excessive/inaccurate
   page hits to the calendar.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/high-cpu-usage-63/#post-18621696)
 * AI bots are definitely a major problem; they’ve been hitting a lot of sites *
   really* hard. I had one of my own sites have a similar problem last week – similar
   problem; overwhelming usage of the calendar. But it was clearly bots, and I took
   care of it mostly by editing `.htaccess` rules and the readme file.
 * You might find this useful: [https://github.com/ai-robots-txt/ai.robots.txt](https://github.com/ai-robots-txt/ai.robots.txt)
 *  Thread Starter [jimh275](https://wordpress.org/support/users/jimh275/)
 * (@jimh275)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/high-cpu-usage-63/#post-18622724)
 * Thanks for this, ya, my site is getting weekly traffic in the 22000+ range when
   >1500 would be more accurate. Hopefully, I’ll be able to get it under control.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘High CPU usage’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [jimh275](https://wordpress.org/support/users/jimh275/)
 * Last activity: [9 months, 1 week ago](https://wordpress.org/support/topic/high-cpu-usage-63/#post-18622724)
 * Status: not resolved