90% bbpress-notification

Code Review | bbPress Notification

WordPress plugin bbPress Notification scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-notification
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 23, 2014
  • Latest release: Jun 27, 2022
  • Number of updates: 10
  • Update frequency: every 307.8 days
  • Top authors: zhuyi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,250 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.73ms] Passed 4 tests

Analyzing server-side resources used by bbPress Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.17 ▼2.41
Dashboard /wp-admin3.36 ▲0.0644.48 ▼2.00
Posts /wp-admin/edit.php3.41 ▲0.0648.88 ▲2.70
Add New Post /wp-admin/post-new.php5.94 ▲0.0680.24 ▼8.50
Media Library /wp-admin/upload.php3.28 ▲0.0637.64 ▲2.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbPress Notification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.39 ▼0.991.66 ▲0.0542.52 ▲0.80
Dashboard /wp-admin2,222 ▲345.83 ▼0.0398.78 ▼1.1539.57 ▼2.82
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0436.57 ▼1.0334.90 ▼1.40
Add New Post /wp-admin/post-new.php1,541 ▲723.33 ▲0.21657.46 ▼16.5359.29 ▲0.40
Media Library /wp-admin/upload.php1,404 ▲164.22 ▼0.0197.94 ▲2.5742.29 ▲0.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: topic, mail, notification, bbpress, reply...

bbpress-notification/bbpress-notification.php Passed 13 tests

"bbPress Notification" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Send new topic and reply notification to admin email automatically.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin358 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/new.png5.78KB1.61KB▼ 72.15%