Title: Plugin bug slows down admin panel
Last modified: August 22, 2019

---

# Plugin bug slows down admin panel

 *  [Michael](https://wordpress.org/support/users/michael8888/)
 * (@michael8888)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/plugin-bug-slows-down-admin-panel/)
 * Query Monitor claims you have a bug in BP_Docs_Attachments->check_is_protected():
 * > cURL error 28: Connection timed out after 5000 milliseconds
 * This bug adds 5 seconds to the load time of the WordPress admin panel
 * It seems your function tries to access /uploads/bp-attachments/0/test.html. The
   file exists and Apache has write access.
 * When I disable your function, admin panel page speed is normal.

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

 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/plugin-bug-slows-down-admin-panel/#post-11857372)
 * Hi Michael-
 * If the call using `wp_remote_get()` is timing out, then it’s likely that your
   site is having a problem with its rewrites/redirects. Essentially, the test is
   making sure that a request to the protected file `/wp-content/uploads/bp-attachments/
   0/test.html` is redirected rather than served. Try visiting that URL in a browser
   to see how long it takes.
 * Best,
 * -David
 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/plugin-bug-slows-down-admin-panel/#post-11858191)
 * To add to what David says above: We’re looking into ways to improve this permission
   check in future versions, so that it runs far less frequently.
 *  Thread Starter [Michael](https://wordpress.org/support/users/michael8888/)
 * (@michael8888)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/plugin-bug-slows-down-admin-panel/#post-11859723)
 * David, you are right, the page redirects to the homepage it seems.
 * I just tried it again with the WordPress default theme, no plugins enabled except
   BuddyPress and BudyPress Docs (and Query Monitor to measure the speed). .htaccess
   only contained the default WordPress rewrites. We have no rewrites in the Apache
   config.
 * I suggest you try it yourself with Query Monitor. If I disable your function 
   check_is_protected(), Admin Panel loads with normal speed.
 * Do we really need this function? I disabled it because I can’t get work done 
   if I always have to wait ages after every click.

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

The topic ‘Plugin bug slows down admin panel’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-docs.svg)
 * [BuddyPress Docs](https://wordpress.org/plugins/buddypress-docs/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-docs/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-docs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-docs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-docs/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/michael8888/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/plugin-bug-slows-down-admin-panel/#post-11859723)
 * Status: not resolved