84% bbpress-custom-reply-notifications

Code Review | bbPress Custom Reply Notifications

WordPress plugin bbPress Custom Reply Notifications scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-custom-re...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2012
  • Latest release: Dec 17, 2014
  • Number of updates: 11
  • Update frequency: every 71.4 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by bbPress Custom Reply Notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.30 ▼2.40
Dashboard /wp-admin3.32 ▲0.0241.59 ▼4.62
Posts /wp-admin/edit.php3.37 ▲0.0144.80 ▼3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.58 ▼16.40
Media Library /wp-admin/upload.php3.24 ▲0.0132.52 ▼3.87

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for bbPress Custom Reply Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.091.76 ▼0.3540.13 ▼9.80
Dashboard /wp-admin2,203 ▲124.84 ▼0.04109.34 ▲8.2939.02 ▼1.95
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0239.42 ▲0.0434.46 ▼2.76
Add New Post /wp-admin/post-new.php1,514 ▼1417.76 ▼5.36669.00 ▲42.0648.50 ▼4.52
Media Library /wp-admin/upload.php1,388 ▼04.31 ▲0.0894.52 ▼3.8243.41 ▼2.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbpress-custom-reply-notifications/bbp-custom-reply-notifications.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: replies, pippinsplugins, bbpress, pippin williamson, forums...

bbpress-custom-reply-notifications/bbp-custom-reply-notifications.php 92% from 13 tests

The entry point to "bbPress Custom Reply Notifications" version 1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-custom-reply-notifications.php" instead of "bbp-custom-reply-notifications.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19223120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1292.31%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected