84% bbpress-new-topic-notifications-to-inbox

Code Review | bbPress New Topic Notifications to Inbox

WordPress plugin bbPress New Topic Notifications to Inbox scored 84% from 54 tests.

About plugin

  • Plugin page: bbpress-new-topic...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Jun 29, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: codezag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,212 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by bbPress New Topic Notifications to Inbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.75 ▼2.70
Dashboard /wp-admin3.32 ▲0.0243.90 ▼4.58
Posts /wp-admin/edit.php3.37 ▲0.0146.78 ▲2.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.09 ▼20.75
Media Library /wp-admin/upload.php3.24 ▲0.0137.00 ▲3.74

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for bbPress New Topic Notifications to Inbox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼0.954.55 ▲2.7841.69 ▲0.49
Dashboard /wp-admin2,206 ▲144.86 ▼0.05109.43 ▲0.2539.13 ▼1.29
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0236.16 ▼0.4531.15 ▼5.78
Add New Post /wp-admin/post-new.php1,534 ▲1523.31 ▼0.09666.07 ▲18.7754.85 ▼7.98
Media Library /wp-admin/upload.php1,388 ▲34.27 ▲0.06112.65 ▲11.8847.82 ▲3.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-new-topic-notifications-to-inbox/index.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: bbpress new topic notification, bbpress, forum, topic notification, bbpress topic notification...

bbpress-new-topic-notifications-to-inbox/index.php 92% from 13 tests

"bbPress New Topic Notifications to Inbox" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bbpress-new-topic-notifications-to-inbox.php" instead of "index.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
Good job! No executable or dangerous file extensions detected60 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121330
PO File18730

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin