84% bbpress-notifications

Code Review | bbPress Notifications

WordPress plugin bbPress Notifications scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-notificat...
  • Plugin version: 1.0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2013
  • Latest release: Jun 26, 2013
  • Number of updates: 8
  • Update frequency: every 8.1 days
  • Top authors: dfactory (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /5,060 total downloads

Benchmarks

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.42ms] Passed 4 tests

A check of server-side resources used by bbPress Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.07 ▼3.13
Dashboard /wp-admin3.31 ▲0.0048.42 ▼7.70
Posts /wp-admin/edit.php3.36 ▲0.0051.47 ▼0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.79 ▼14.65
Media Library /wp-admin/upload.php3.23 ▲0.0038.32 ▲0.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.21 ▼0.401.93 ▲0.3444.95 ▼4.53
Dashboard /wp-admin2,195 ▲185.50 ▼0.1285.82 ▼7.3638.87 ▼6.02
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0233.49 ▼2.1934.68 ▼0.88
Add New Post /wp-admin/post-new.php1,526 ▼023.65 ▲0.51676.70 ▼13.7864.06 ▲3.53
Media Library /wp-admin/upload.php1,397 ▼04.13 ▼0.07109.13 ▼2.5340.33 ▼6.43

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbpress-notifications/bbpress-notifications.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

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

Analyzing the main PHP file in "bbPress Notifications" version 1.0.1.1
117 characters long description:
bbPress Notifications allows you to send email notifications to specific users when new topics or replies are posted.

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 plugin296 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25480200
PO File1172196

PHP code Passed 2 tests

A brief analysis 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.11
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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
There are no PNG files in this plugin