shane-tomlinson / browserid-wordpress

Wordpress plugin that adds Persona authentication
23 stars 16 forks source link

Major performance hit, even on non-admin/login pages. #13

Open indolering opened 11 years ago

indolering commented 11 years ago

P3 Plugin Performance Profiler shows that Persona accounts for 50% of the runtime, even when I restrict the test session to non wp-admin pages!

To verify this result, I had WebPagetest average 10 tests with the Persona plugin enabled and again with the Persona plugin disabled (note that the "first load" test was only run once/is invalid as a measure). Turning Persona off shaved ~1.5 seconds from the time-to-first-byte, roughly matching the stats reported by P3.

shane-tomlinson commented 11 years ago

@indolering - Thanks for the report! I am learning PHP and WordPress development as I go along, any tips, hints, or even pull requests on how I can improve performance would be hugely appreciated.

indolering commented 11 years ago

I'm just a (figurative) speed junky admin, I'm barely literate with PHP : )

wrought commented 11 years ago

Did the speed test benchmark database queries? I assume that would be the heftiest load. There could be some simpler or faster ways to get the same responses, as well as options for cacheing such as with the transients API: http://codex.wordpress.org/Transients_API