Download Plugin as ZIP
Add a “Download ZIP” link to every plugin on your Plugins page. Quickly export plugin files for backup, migration, or local development without needing FTP or file manager access.
Use Cases
- Quick Backups: Download a plugin before updating in case something breaks
- Share Custom Plugins: Export custom-developed plugins to transfer to another site
- Archive Versions: Keep local copies of specific plugin versions that work well
- Local Development: Download a plugin to examine or modify locally
How It Works
- Enable the module in Switchboard
- Go to Plugins → Installed Plugins
- Find “Download ZIP” link in each plugin’s action row
- Click to download the complete plugin as a ZIP file
Where to Find It
On the Plugins page, each plugin row shows action links like “Activate”, “Edit”, “Delete”. The module adds a “Download ZIP” link alongside these:
Activate | Edit | Delete | Download ZIPWhat Gets Downloaded
The ZIP file contains:
- All plugin files and folders
- Maintains the exact directory structure
- Uses the plugin’s slug as the filename (e.g.,
my-plugin.zip)
The ZIP file can be directly uploaded to another WordPress site via Plugins → Add New → Upload Plugin.
Single-File vs Multi-File Plugins
Multi-File Plugins
Most plugins have a folder structure:
plugin-name/
├── plugin-name.php
├── includes/
├── assets/
└── readme.txtThe ZIP preserves this structure entirely.
Single-File Plugins
Some simple plugins are just one PHP file:
simple-plugin.phpThese are downloaded with the PHP file inside a folder named after the plugin.
Size and Performance
File Size Limits
- Maximum plugin size: 500MB
- Most plugins are under 50MB
- Very large plugins may need FTP instead
Processing Time
- Small plugins: Instant
- Medium plugins (10-50MB): A few seconds
- Large plugins (50-100MB): May take 10-30 seconds
For very large plugins, increase your PHP timeout if downloads fail. The module sets a 5-minute timeout automatically, but some hosts may override this.
Technical Details
ZIP Creation
The module uses PHP’s ZipArchive when available (most hosting). Falls back to WordPress’s PclZip on hosts without the ZIP extension.
Temporary Files
- ZIP files are created in the system temp directory
- Files are deleted immediately after download completes
- Old temp files (if interrupted) are cleaned up hourly
Security
- Requires
install_pluginscapability (Administrator role) - Uses WordPress nonces to prevent unauthorized access
- Validates plugin paths to prevent directory traversal attacks
Common Issues
Download Times Out
Large plugins may exceed server timeout:
- Try downloading during low-traffic hours
- Ask your host to increase PHP
max_execution_time - Use FTP for very large plugins
ZIP File is Corrupt
This usually indicates an incomplete download:
- Clear browser cache and try again
- Use a different browser
- Check server error logs for PHP errors
“ZIP Extension Not Available”
Your host doesn’t have the PHP ZIP extension:
- Contact host to enable it
- The module will try PclZip as fallback
- Use FTP if neither works
Comparison with Alternatives
| Method | Pros | Cons |
|---|---|---|
| Download ZIP Module | One-click, no FTP needed | Size limits, server dependent |
| FTP/SFTP | Any file size, reliable | Requires FTP credentials and client |
| File Manager | No software needed | Usually slower, host interface varies |
| cPanel Backup | Full backup options | Includes more than needed |
FAQ
Can I download premium plugins?
Yes. Any plugin installed on your site can be downloaded, including premium plugins. However, premium plugins often have license restrictions about redistribution. Only download for legitimate purposes like backup or migration.Will the ZIP include the plugin settings?
No. Plugin settings are stored in the WordPress database, not in files. This downloads the plugin code only. To migrate settings, check if the plugin has an export/import feature.Can I download mu-plugins (must-use plugins)?
No. This module only handles regular plugins in the/wp-content/plugins/ directory. Must-use plugins would need to be accessed via FTP.What if the download link doesn’t appear?
- Ensure the module is enabled
- Verify you’re logged in as Administrator
- Check for JavaScript errors in browser console
- Clear any caching plugins
Get access to all 147 modules with a single license