WP-OpenID, at least in my site, uses 2 megabytes of memory. That is probably reasonable.
It also needs the browser to load four javascript files to work: jquery.js, jquery.textnode.js, jquery.xpath.js and openid.js That is probably reasonable, too.
What is unreasonable is that it uses 2 megabytes of memory AND browsers have to load four javascript files on every single blog page.
WP-OpenID is loading all its authentication machinery when my visitor is reading my archives. WP-OpenID is loading all its admin-screens machinery when my visitor runs a search in my blog. Meanwhile, the four javascript files are adding several seconds to page load times.
I tried to reclaim memory by coating the core.php file with the conditional
if (is_single() || is_admin() || stripos($_SERVER['PHP_SELF'],'wp-login.php') > 0) {
// all of core.php
}
However this quick hack doesn't work. Would you please tell me what if condition to use?
Thank you.