93% bbpress-reports

Code Review | bbPress Reports

WordPress plugin bbPress Reports scored 93% from 54 tests.

About plugin

  • Plugin page: bbpress-reports
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 5.8.1
  • First release: May 30, 2015
  • Latest release: Mar 14, 2020
  • Number of updates: 9
  • Update frequency: every 195.3 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 4,023 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼142.27ms] Passed 4 tests

Analyzing server-side resources used by bbPress Reports
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1243.68 ▲17.09
Dashboard /wp-admin3.07 ▲0.0153.36 ▼2.16
Posts /wp-admin/edit.php3.12 ▲0.0153.98 ▲4.35
Add New Post /wp-admin/post-new.php5.43 ▼0.00102.46 ▼570.91
Media Library /wp-admin/upload.php3.01 ▲0.0136.96 ▼0.34
Reports /wp-admin/edit.php?post_type=forum&page=bbp-reports2.7526.56

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbPress Reports
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲14916.40 ▲0.5611.31 ▲2.4753.73 ▲0.31
Dashboard /wp-admin2,985 ▲516.17 ▲0.22154.02 ▼5.51120.24 ▼2.31
Posts /wp-admin/edit.php2,757 ▲182.74 ▲0.0277.38 ▲10.31104.71 ▲3.33
Add New Post /wp-admin/post-new.php1,697 ▲1415.58 ▼0.67407.09 ▼2.90121.49 ▲2.42
Media Library /wp-admin/upload.php1,828 ▲215.36 ▲0.33162.60 ▼3.47132.17 ▼2.61
Reports /wp-admin/edit.php?post_type=forum&page=bbp-reports280.900.1112.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=forum&page=bbp-reports
    • > Network (severe)
    wp-admin/edit.php?post_type=forum&page=bbp-reports - Failed to load resource: the server responded with a status of 403 (Forbidden)


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #4 (User Stat)
  • Screenshots: Please describe screenshot #3 in bbpress-reports/assets to your readme.txt
You can take inspiration from this readme.txt

bbpress-reports/bbp-reports.php 92% from 13 tests

The main file in "bbPress Reports" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bbpress-reports.php" instead of "bbp-reports.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin676 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity22.00
▷ Minimum class complexity9.00
▷ Maximum class complexity35.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods750.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
assets/css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
assets/css/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%