-
Notifications
You must be signed in to change notification settings - Fork 139
Improve discoverability and user guidance for Optimization Detective extensions #2261
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
Improve discoverability and user guidance for Optimization Detective extensions #2261
Conversation
…and Image Prioritizer Co-authored-by: Shyamsundar Gadde <[email protected]>
Co-authored-by: Shyamsundar Gadde <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #2261 +/- ##
==========================================
+ Coverage 68.87% 69.17% +0.30%
==========================================
Files 90 90
Lines 7618 7696 +78
==========================================
+ Hits 5247 5324 +77
- Misses 2371 2372 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@b1ink0 This is marked as a draft. Is it ready for review? |
|
@westonruter, I’ve added my doubts in the comments above. I was planning to mark this for review after those are clarified. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Fixes typos in the failure messages for the `test_od_render_documentation_links` test case. Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
westonruter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@b1ink0 Thank you! This will be very helpful for users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Oh, I just tried adding to my define( 'DISALLOW_FILE_MODS', true );And when clicking on one of the links to open the modal, I get an error:
So it seems we will need to add some special accommodation here. What I've done is 8be1e47, to simply omit the links and prevent calling
|
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Summary
Fixes #2238
Relevant technical choices
optimization-detectiveto Image Prioritizer and Embed Optimizerreadme.txtDemo:
Demo.2.mp4
Gemini Review
The latest updates further refine the extension detection and UI. The changes are logical, robust, and well-tested.
Summary of Changes
The PR improves the user experience for the Optimization Detective framework by guiding users toward installing and activating optimization extensions.
optimization-detectivetag.od_get_active_extensions()which identifies active optimization plugins by checking theRequiresPluginsheader (with a fallback forembed-optimizer). The list is now returned as unique values (array_values( array_unique( ... ) )).<details>for a compact UI) that appears on the plugins page when no extensions are active.install_pluginscapability. If they cannot install plugins, it just shows the name.add_thickbox()only if the user has permission to install plugins.Review Notes
@since n.e.x.tand use appropriate type hints.after_plugin_row_meta, ensuring it only runs on the plugins admin screen where the impact is minimal. The use ofget_plugins()is cached by WordPress.wp_ksesandesc_urlensures all rendered HTML in the admin notices and links is secure.install_pluginsare a nice touch for multi-user environments.Review generated by Gemini CLI.