[wp-meta] [Making WordPress.org] #5171: Plugin Directory: Limit file size for 'asset' images

Making WordPress.org noreply at wordpress.org
Fri Jul 10 01:40:01 UTC 2020

#5171: Plugin Directory: Limit file size for 'asset' images
 Reporter:  Ipstenu           |       Owner:  (none)
     Type:  defect            |      Status:  new
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:                    |

Comment (by dd32):

 So, I've looked at the last ~4,000 plugins imported into the directory
 (last 3 weeks basically). That means there's probably a lot of new plugins
 in there, but also the commonly updated plugins.

 Here's some filesize stats:
 asset_type      count   avg_size        max_size
 screenshot-*    16,783  235KB   53,965KB
 banner-772x250   3,587  101KB    4,884KB
 icon-128x128     3,206   18KB    1,274KB
 icon-256x256     2,926   35KB    1,515KB
 banner-1544x500  2,166  229KB    8,413KB
 icon.svg           435   26KB    1,592KB
 That's only filenames that occur 100 times or more in the plugins
 surveyed, a lot of plugins include incorrectly named files, sizes we don't
 support, etc.

 Yes. There's a plugin that has a 50MB screenshot asset. That plugin has
 ~86MB of assets. Next closest is 67MB.
 There are 12 plugins with total asset size >= 20MB, so they're exceptions.

 Based on this, here's some limitations I'm going to suggest:
 Screenshots: 5MB (Affects 50 assets)
 Banners: 1MB / 2MB for low/high res. (Affects 15 low-res assets, 10 high-
 res assets)
 Icons: 512KB (Affects 40 assets)

Ticket URL: <https://meta.trac.wordpress.org/ticket/5171#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list