[wp-trac] Re: [WordPress Trac] #5651: Optimize get_plugin_data
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 13 04:00:57 GMT 2008
#5651: Optimize get_plugin_data
----------------------------------------------------------------+-----------
Reporter: filosofo | Owner: westi
Type: defect | Status: assigned
Priority: normal | Milestone: 2.5
Component: General | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch get_plugin_data memory plugin-management |
----------------------------------------------------------------+-----------
Comment (by filosofo):
Replying to [comment:13 darkdragon]:
> The goal is to only pull in enough that we get all of the data, not
completely break half the plugins out there.
To get an idea of how many plugins are doing what, I grepped through the
wp-plugins.org repository for "Plugin Name:," outputting and reverse
sorting by the line number where "Plugin Name:" appears. I've attached
the result as plugins.txt.
As you can see, the worst offender is "WP List Files" at line 37
immediately followed by Google Sitemaps at line 33.
Some of the lines are different versions of the same plugin, but even so,
less than 4% have the "Plugin Name:" after the fifth line. So I think
it's safe to say that simply reading in 2K would adversely affect a
statistically insignificant number of plugins, if any at all.
--
Ticket URL: <http://trac.wordpress.org/ticket/5651#comment:21>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list