Page Feedback Up/Down adds a one-click thumbs up / thumbs down widget to any page, with an optional comment (required when the vote is negative), so site owners can find out whether a page actually helped visitors and why.

Feedback is centralized on an admin page where the content team can browse, filter, and export it to CSV. A REST endpoint, protected by dedicated permissions, exposes the same data for reporting tools like Power BI or Zapier. The module needs no per-content-type configuration, and the frontend widget is keyboard and screen reader accessible.

It was built for content and communications teams, particularly in universities and government departments, who need to justify decisions about a page with what visitors actually say, not just traffic numbers.

How it differs from similar projects

  • Rate provides a general-purpose voting framework (stars, thumbs, emojis) for any content type. Page Feedback is narrower by design: a single opinionated "did this page help you?" flow with a built-in comment field and a dedicated admin review screen, rather than a generic rating API you need to configure.
  • Feedback collects short free-text messages but has no yes/no helpfulness signal and no REST API for exporting responses.
  • Simple Feedback is lightweight but has no admin review interface and no API.

Manual reviews of other projects

Project link

https://www.drupal.org/project/page_feedback

Comments

santerref created an issue. See original summary.

vishal.kadam’s picture

Issue summary: View changes
santerref’s picture

Issue summary: View changes
santerref’s picture

Issue summary: View changes
santerref’s picture

Issue summary: View changes
santerref’s picture

Issue summary: View changes
santerref’s picture

Issue tags: +PAreview: review bonus
avpaderno’s picture

Thank you for applying!

Before giving links helpful to understand how the review process works, what to expect from a review, and what to do to avoid a review takes more time than needed, I would like to thank all the reviewers for the work they do.
These applications are volunters-driven, which also means it is not possible to predict when an application will be marked fixed and the applicant will get the permission to opt projects into security advisory policy. While we aim to make an application as quick as possible, it is also important for us that more people review the project used for an application. In this way, we make sure applications do not miss some important points that should be instead reported.
Applications are not meant to be complete debugging sessions that eliminate every existing bug, though. I apologize if sometimes applications seem to go into too-detailed reviews.

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.

  • If you have not done it yet, you should enable GitLab CI for the project and fix the PHP_CodeSniffer errors/warnings it reports.
  • For the time this application is open, only your commits are allowed.
  • The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status will not be changed by this application; once this application is closed, you will be able to change the project status from Not covered to Opt into security advisory coverage. This is possible only 14 days after the project is created.

    Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
  • Only the person who created the application will get the permission to opt projects into security advisory coverage. No other person will get the same permission from the same application; that applies also to co-maintainers/maintainers of the project used for the application.
  • We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.

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.

  • It is preferable to wait for a project moderator before posting the first comment on newly created applications. Project moderators will do some preliminary checks that are necessary before any change on the project files is suggested.
  • Reviewers should show the output of a CLI tool only once per application.
  • It may be best to have the applicant fix things before further review.

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.

vishal.kadam’s picture

Status: Needs review » Needs work

1. FILE: src/PageFeedbackCsvExporter.php

  protected EntityTypeManagerInterface $entityTypeManager;

  protected FileSystemInterface $fileSystem;

  protected DateFormatterInterface $dateFormatter;

  protected AccountInterface $currentUser;

  protected TimeInterface $time;

  protected PageFeedbackFilters $filters;

  protected RequestStack $requestStack;

  protected LoggerInterface $logger;

  public function __construct(
    EntityTypeManagerInterface $entity_type_manager,
    FileSystemInterface $file_system,
    DateFormatterInterface $date_formatter,
    AccountInterface $current_user,
    TimeInterface $time,
    PageFeedbackFilters $filters,
    RequestStack $request_stack,
    LoggerInterface $logger,
  ) {
    $this->entityTypeManager = $entity_type_manager;
    $this->fileSystem = $file_system;
    $this->dateFormatter = $date_formatter;
    $this->currentUser = $current_user;
    $this->time = $time;
    $this->filters = $filters;
    $this->requestStack = $request_stack;
    $this->logger = $logger;
  }

FILE: src/PageFeedbackFilters.php

  protected RequestStack $requestStack;

  public function __construct(RequestStack $request_stack) {
    $this->requestStack = $request_stack;
  } 

FILE: src/PageFeedbackListBuilder.php

  protected DateFormatterInterface $dateFormatter;

  protected FormBuilderInterface $formBuilder;

  protected PageFeedbackFilters $filters;

  protected PageFeedbackCsvExporter $exporter;

  protected EntityTypeManagerInterface $entityTypeManager;

  protected AccountInterface $currentUser;

  /**
   * EntityListBuilder demands the storage handler, so this resolves it.
   */
  public function __construct(
    EntityTypeInterface $entity_type,
    EntityTypeManagerInterface $entity_type_manager,
    DateFormatterInterface $date_formatter,
    FormBuilderInterface $form_builder,
    PageFeedbackFilters $filters,
    PageFeedbackCsvExporter $exporter,
    AccountInterface $current_user,
    MessengerInterface $messenger,
  ) {
    parent::__construct($entity_type, $entity_type_manager->getStorage($entity_type->id()));
    $this->entityTypeManager = $entity_type_manager;
    $this->dateFormatter = $date_formatter;
    $this->formBuilder = $form_builder;
    $this->filters = $filters;
    $this->exporter = $exporter;
    $this->currentUser = $current_user;
    $this->setMessenger($messenger);
  }

FILE: src/SpamCleaner.php

  protected EntityTypeManagerInterface $entityTypeManager;

  protected StateInterface $state;

  protected TimeInterface $time;

  public function __construct(EntityTypeManagerInterface $entity_type_manager, StateInterface $state, TimeInterface $time) {
    $this->entityTypeManager = $entity_type_manager;
    $this->state = $state;
    $this->time = $time;
  }

FILE: src/Controller/PageFeedbackExportController.php, src/Form/PageFeedbackFilterForm.php

  protected PageFeedbackFilters $filters;

  public function __construct(PageFeedbackFilters $filters) {
    $this->filters = $filters;
  }

FILE: src/Form/PageFeedbackForm.php

  protected FloodInterface $flood;

  protected EntityTypeManagerInterface $entityTypeManager;

  protected LoggerInterface $logger;

  /**
   * NULL whenever the honeypot module is not installed, which is the norm.
   */
  protected ?HoneypotServiceInterface $honeypot;

  public function __construct(
    FloodInterface $flood,
    EntityTypeManagerInterface $entity_type_manager,
    LoggerInterface $logger,
    ?HoneypotServiceInterface $honeypot = NULL,
  ) {
    $this->flood = $flood;
    $this->entityTypeManager = $entity_type_manager;
    $this->logger = $logger;
    $this->honeypot = $honeypot;
  }

FILE: src/Plugin/Block/PageFeedbackBlock.php

  protected FormBuilderInterface $formBuilder;

  public function __construct(
    array $configuration,
    $plugin_id,
    $plugin_definition,
    FormBuilderInterface $form_builder,
  ) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->formBuilder = $form_builder;
  }

Modules which are compatible with Drupal 10 and higher versions are expected to use constructor property promotion.

2. FILE: src/Entity/PageFeedback.php

Projects that are compatible with Drupal 10 or higher versions should use attributes instead of annotations.

santerref’s picture

Status: Needs work » Needs review

Thanks for the review. The first point is fixed (Commit 2643025b), every constructor now uses property promotion.

On the second one, the entity type has to keep its annotation for now. Entity type discovery only started reading attributes in Drupal 11.1. On 10.6.x it is still plain AnnotatedClassDiscovery, and Drupal\Core\Entity\Attribute\ContentEntityType does not exist there at all, so an attribute would leave the entity undiscovered on every Drupal 10 site. The module supports ^10.3 || ^11 and I would rather not drop 10 for this.

The plugin types that did get attributes in 10.2 and 10.3 are already converted: the block uses #[Block] and the hooks use #[Hook] with #[LegacyHook] shims.

I will switch the entity over as soon as the module requires 11.1 or later.

Pipeline is fine (passed).

santerref’s picture

Issue summary: View changes
santerref’s picture

Issue summary: View changes
avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Needs review » Reviewed & tested by the community

Thank 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.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.