Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] wordfence WordPress plugin severly degrades WP-CLI performance on Docker #51

Open
1 task done
TimidRobot opened this issue Oct 18, 2023 · 1 comment
Open
1 task done
Assignees
Labels
💻 aspect: code Concerns the software code in the repository 🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🏁 status: ready for work Ready for work

Comments

@TimidRobot
Copy link
Member

TimidRobot commented Oct 18, 2023

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
    ./wpcli.sh plugin activate wordfence
  2. List plugins
    time ./wpcli.sh plugin list
    real	0m10.783s
    user	0m0.078s
    sys	0m0.037s
    
  3. Deactivate wordfence plugin
    ./wpcli.sh plugin deactivate wordfence
  4. List plugins
    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

  • I would be interested in resolving this bug.
@TimidRobot TimidRobot added help wanted Open to participation from the community 🟩 priority: low Low priority and doesn't need to be rushed 🏁 status: ready for work Ready for work 🛠 goal: fix Bug fix 💻 aspect: code Concerns the software code in the repository 🤖 aspect: dx Concerns developers' experience with the codebase labels Oct 18, 2023
@TimidRobot TimidRobot self-assigned this Oct 18, 2023
@TimidRobot TimidRobot removed the help wanted Open to participation from the community label Oct 18, 2023
@TimidRobot TimidRobot changed the title [Bug] wordfence WordPress plugin severly degrades WP-CLI preformance on Docker [Bug] wordfence WordPress plugin severly degrades WP-CLI performance on Docker Nov 8, 2023
@TimidRobot
Copy link
Member Author

The following PR mitigates this issue:

@TimidRobot TimidRobot moved this to Backlog in WebDev Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🏁 status: ready for work Ready for work
Projects
Status: Backlog
Development

No branches or pull requests

1 participant