Hello everyone, I’m looking for an advice on how to bundle heavy plugins with theme?
I would like to release a theme with VisualComposer(6.5MB) and LayerSlider (7MB) included. What’s your preference? Do you put heavy plugins inside a theme and activate them using TMG or put them in a separate from theme folder and describe in documentation that these plugins needs to be installed manually? What can you recommend based on your experience?
Then it makes impossible for users to install theme using admin panel.
VisualComposer(6.5MB) + LayerSlider (7MB) is ~14MB + 4MB theme files = ~18MB final theme weight.
Most of the hosting companies have a limit of 5MB per file upload.
TMG supports externally hosted plugins right? I think it’s possible use a URL to request the file, instead bundle it inside the theme…
Right, but I can’t see anyone use it this way. Moreover, can we host premium plugins like Visual Composer on external host? How to protect these sources from pirate downloads?
- Community Moderator
- Author had a Free File of the Month
- Most Wanted Bounty Winner
- Author had a File in an Envato Bundle
- Has been a member for 4-5 years
- Contributed a Blog Post
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Please ask the authors of VisualComposer and LayerSlider. They may have a smaller copy of the plugin that you can bundle.
I’ve reduced the size of my VC to 1.8MB. There is a folder in /assets/lib which some of the JS plugins are added there with their preview and demos. I’ve removed all the demo data (Images and …) and the size of the plugins is ok right now.
Thank you dtbaker and imangm for valuable tips! I already managed to reduce VisualComposer size to 4MB by only deleting demo content as you said! It’s sad that I will have to repeat this process every time they update a plugin 8-(
I still think that hosting these plugins on a private BitBucket repo can make a trick, but have not enough information/knowledge on how to make it secure.
I’m wondering if Envato can come with some sort of solution for it in the future to make this process easier and smooth for the end users. On their new requirements page there is the next text:
Bundled plugins must be included via the TGM Plugin Activation class, which manages plugin dependency and plugins can be installed from WordPress.org or a bundled ZIP file (more options coming soon).
(more options coming soon) brings me some hope or I’m wrong?