Just purchased pro to get Reports - Too much data

I’m looking at a generated report which includes Wordfence and Updraft. Both of these are showing around 20 entries. I’d like to restrict this to just the most recent Wordfence scan and Updraft backup.

In a report template, I see [section.wordfence.scan] that generates the Wordfence data. Is there some option, like: [section.wordfence.scan scans=“1”] or [section.wordfence.scan.latest]? I tried all combinations and even did a php loop and creating an array. Nothing worked.

Hey @ronr1999

Unfortunately Pro Reports tokens do not support those kinds of parameters.

When in use, they will display all data within the date range of the report.

Please feel free to make a suggestion about this on our feedback site. That way, others can vote for it, letting us know which features our users want the most. https://voice.mainwp.com

There is something definitely not right with Wordfence Reporting. This is what I see:

Security

Wordfence Security Scans

No issues detected Scan complete. Congratulations, no new problems found. January 30, 2025
Issues Detected Scan complete. You have 4 new issues to fix. See below. January 30, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 29, 2025
Issues Detected Scan complete. You have 4 new issues to fix. See below. January 29, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 28, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 27, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 26, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 26, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 25, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 24, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 23, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 23, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 22, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 21, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 20, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 20, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 19, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 18, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 17, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 17, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 16, 2025
Issues Detected Scan complete. You have 4 new issues to fix. See below. January 15, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 14, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 14, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 13, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 12, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 11, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 11, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 10, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 9, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 8, 2025
Issues Detected Scan complete. You have 3 new issues to fix. See below. January 8, 2025
Issues Detected Scan complete. You have 1 new issue to fix. See below. January 7, 2025
Issues Detected Scan complete. You have 1 new issue to fix. See below. January 6, 2025
Issues Detected Scan complete. You have 1 new issue to fix. See below. January 5, 2025
Issues Detected Scan complete. You have 2 new issues to fix. See below. January 5, 2025
Issues Detected Scan complete. You have 1 new issue to fix. See below. January 4, 2025
No issues detected Scan complete. Congratulations, no new problems found. January 3, 2025
No issues detected Scan complete. Congratulations, no new problems found. January 2, 2025
Issues Detected Scan complete. You have 1 new issue to fix. See below. January 2, 2025
Issues Detected Scan complete. You have 1 new issue to fix. See below. January 1, 2025

A full months of scans… should be only one.

Based on these logs, it seems that you have daily scans enabled in Wordfence.

You can check exactly what the MainWP Child Reports plugin is login on child sites at this URL: YOUR-CHILD-SITE.com/wp-admin/options-general.php?page=mainwp-reports-page

If there are Wordfence scans on that log page, they will be included in the Pro Reports.

As for your original question about showing only a certain number of items for tokens - while this is not possible, there is a workaround which you may find useful.

Basically, you can limit how many table rows will be displayed in the reports by using this CSS code:

table tr:nth-last-child(n+11) {
    display: none !important;
}

You can place it in the <style> section of the PHP file of a template.
In that example code, only the first 10 table rows and it will apply to all tables in the report.

If you will be adding this code to the template, please make sure to create a new custom template by following these instructions: Pro Reports - MainWP Knowledgebase