Delete unnecessary files, themes or plugins. (e.g. unused modules)

Let's trim WordPress down.

  1. Uninstall disabled themes and plugins.
  2. Remove unused files or modules in activated themes or plugins.

 

Switch to manual deployment.

It's a good idea to deploy an artifact manually, to avoid to deploy corrupted files automatically.
Please check out the following document to disabled automate deployment:
How to disable Automate Deployment

 

Take some time before deployment

You have already uninstalled unused plugins or themes, removed unnecessary files but you got a timeout error: It has been a lot of time for transferring Theme or Plugin, let time pass to deploy manually. Just wait 10 or 20 minutes to ready for deployment.

 

Some suggestions for trimming down on WordPress.

A. Plugins may have lots of library or SDK files of external services.
Let's pack them into a phar file.

B. The theme may have Node.js which contains the whole of node_modules, for building its CSS.
Let's modify settings to bundle built CSS files and remove node_modules from the theme.

C. Migrated from other environments (self-hosted or managed hosted WordPress).
It may contain uncovered plugins by Shifter and they may occur fail of an Artifact generate. To solve this issue, import only articles. Then add plugin one by one, and check it works correctly.
After checking, generate and deploy an artifact.

If you have any questions or suggestions, feel free to contact us!

Did this answer your question?