Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
13 Feb 2026 at 11:29 UTC
Updated:
2 Apr 2026 at 12:05 UTC
Jump to comment: Most recent
Comments
Comment #2
vishal.kadamComment #3
vishal.kadamComment #4
avpadernoThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #5
vishal.kadam1. FILE: README.md
The README file is missing the required sections - Requirements and Configuration.
2. FILE: composer.json
It is not necessary to add the Drupal core requirements in the /composer.json/ file: The Drupal.org Composer Façade will add them.
Comment #6
rouaida commentedThe changes are in place
Comment #7
vishal.kadamRemember to change status, when the project is ready to be reviewed. In this queue, projects are only reviewed when the status is Needs review.
Comment #8
rouaida commentedComment #9
langbly translator commentedThank you for your work on this module and for addressing the previous feedback!
After reviewing the latest code on the 1.0.x branch, I found a few issues to address:
1. FILE: container_query_images.module
The file is missing `declare(strict_types=1);` at the top. All other PHP files in the project include this declaration, so it should be added here for consistency.
2. FILE: container_query_images.libraries.yml
The library declares `core/jquery` as a dependency, but the JavaScript code does not use jQuery at all — it uses vanilla JavaScript with `Drupal.behaviors` and the native ResizeObserver API. The `core/jquery` dependency should be removed.
3. FILE: css/container-query-images.css
The CSS contains rules targeting `.card-overlay` and `.hero-wrapper`, which are project-specific CSS classes. A contributed module should not include styles that assume the presence of theme- or project-specific classes. These rules should be removed from the module.
4. FILE: README.md
The README is missing a "Maintainers" section, which is required by the Drupal README template. Please add it at the bottom of the file.
5. FILE: src/Hook/ContainerQueryImagesHooks.php (optional, but recommended)
For Drupal 10.2+, the recommended way to implement hooks in a class is to use `#[Hook]` PHP attributes directly on the methods (e.g., `#[Hook('help')]` and `#[Hook('preprocess_responsive_image')]`), rather than delegating from procedural hooks in the .module file. This is not a blocker but is the modern Drupal standard.
Comment #10
bbu23Comment #11
rouaida commentedThank you for your comments
I have made the necessary corrections.
Comment #12
batigolixHere are 2 minor issues for possible improvement of the module / project:
1. In the readme, use the installation instruction as suggested by the template: https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...
2. If the module code includes any AI generated content, then it is a good practices to disclose this (on the project page or in the application). See https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett...
Comment #13
rouaida commentedReadme file updated
Thank you.
Comment #14
batigolixLooks good!
Comment #15
sraseef commentedI reviewed the module code for security and coding standards.
Security
No security issues found. The module does not process direct user input. Width values are properly extracted using regex and cast to integers. No use of
eval(), unserialize(), or other unsafe functions. The help() method uses string concatenation for HTML output instead of render arrays, which is minor but
could use render arrays with allowed tags for best practice.
Coding Standards (PHPCS Drupal/DrupalPractice)
PHP code passes with zero errors. The info.yml has packaging metadata warnings which are added by drupal.org automatically, not a real issue. README.md has 4
lines exceeding 80 characters on lines 3, 23, 97 and 130, these are minor warnings only.
Code Quality
Proper dependency injection via constructor. Uses strict types, final class, and readonly properties following modern PHP 8 patterns. Good defensive
programming with null checks and instanceof. JavaScript uses ResizeObserver with proper fallback for older browsers. CSS uses @supports for progressive
enhancement.
Minor Suggestions (non-blocking)
The core/jquery library is listed as a dependency but does not appear to be used in the JS file, this could be removed. No automated tests exist, unit tests
for the extractWidth() method would be beneficial.
Verdict
The module looks good. No security concerns found.
Comment #16
rouaida commentedHello @sraseef, thank you for your message and for checking in.
The branch was correct—I’ve created a new release that includes all the modifications.
Thank you
Comment #17
avpadernoThank you for your contribution and for your patience with the review process!
I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank also all the reviewers for helping with these applications.
Comment #18
avpaderno