Writing Better Plugins for a Better Web
By Divya Manian
Who am I?
Open Web Vigilante
Web Opener at
Some Wordpress Sites I did
Wordpress Plugins Now
How they are now
Start from PHP than work backwards from markup, styles, and script.
Use several assets and files.
Be as less intrusive as possible
Maintainable, forward compliant.
Efficient, least time consuming.
Why does website performance matter?
Breaking News! Users use several devices
Even more Breaking News! They don't always have broadband connections!
People use a lot of plugins on their sites. Each adding a layer of traffic burden.
Lets fix this!
Start from the end
Avoid using images for styles, if it is possible.
Use a sprite if absolutely necessary.
Use as less as you can get away with.
- Find your constraints
- Use as less styles as possible, let the theme do most of the styling.
- Choose your markup carefully.
- Minimize your scripts, and avoid external dependencies if you can.
Questions? Ask @divya