creativecommons / creativecommons/index-dev-env
[Bug] wordfence WordPress plugin severly degrades WP-CLI performance on Docker
- Dominant language
- Shell
- Stars
- 8
- Forks
- 5
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 2
Description
## Description
The `wordfence` WordPress plugin severely degrades WP-CLI performance on Docker. Enabling it results in WP-CLI commands taking approximately 10-20 times longer.
This does not happen on staging or production. It may be due to the fact that the current docker configuration has WordPress and WP-CLI in different containers.
## Reproduction
1. Activate `wordfence` plugin
```shell
./wpcli.sh plugin activate wordfence
```
4. List plugins
```shell
time ./wpcli.sh plugin list
```
```
real 0m10.783s
user 0m0.078s
sys 0m0.037s
```
1. Deactivate `wordfence` plugin
```shell
./wpcli.sh plugin deactivate wordfence
```
4. List plugins
```shell
time ./wpcli.sh plugin list
```
```
real 0m0.385s
user 0m0.077s
sys 0m0.038s
```
## Expectation
Local development should be performant.
Investigate to determine if the `wordfence` WordPress plugin can be configured so that it does not negatively impact WP-CLI performance within a docker container. Alternately, investigate moving the Docker configuration to a single container model for WordPress and WP-CLI.
## Additional context
## Resolution
- [x] I would be interested in resolving this bug.
Contributor guide
Assessment
This issue has not been assessed yet.