84% notification-bbpress

Code Review | Notification : bbPress

WordPress plugin Notification : bbPress scored84%from 54 tests.

About plugin

  • Plugin page: notification-bbpress
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Feb 19, 2017
  • Latest release: Nov 19, 2021
  • Number of updates: 13
  • Update frequency: every 133.3 days
  • Top authors: Kubitomakita (84.62%)bracketspace (23.08%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,444 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
Install script ran successfully

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

Analyzing server-side resources used by Notification : bbPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.10 ▼5.45
Dashboard /wp-admin3.32 ▲0.0145.90 ▼4.71
Posts /wp-admin/edit.php3.37 ▲0.0147.68 ▲1.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.27 ▼2.91
Media Library /wp-admin/upload.php3.24 ▲0.0134.71 ▲3.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Notification : bbPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.14 ▼1.171.59 ▼0.3236.97 ▼13.44
Dashboard /wp-admin2,206 ▲184.85 ▼0.21114.86 ▼1.1544.16 ▲0.90
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0138.83 ▲3.2635.30 ▲1.82
Add New Post /wp-admin/post-new.php1,519 ▼2322.89 ▲4.59663.01 ▲28.7856.32 ▲1.77
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0794.26 ▼5.9441.58 ▼0.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-bbpress/notification-bbpress.php:97
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\bbPress\\Repository\\Trigger\\Topic' not found in wp-content/plugins/notification-bbpress/src/Repository/Trigger/Topic/Created.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\bbPress\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/notification-bbpress/vendor/micropackage/requirements/src/Checker/DocHooks.php:16
    • > PHP Fatal error
      Trait 'BracketSpace\otification\\bbPress\\Vendor\\Micropackage\\DocHooks\\HookTrait' not found in wp-content/plugins/notification-bbpress/src/Runtime.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\bbPress\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/notification-bbpress/vendor/micropackage/requirements/src/Checker/PHP.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\bbPress\\Repository\\Trigger\\Forum' not found in wp-content/plugins/notification-bbpress/src/Repository/Trigger/Forum/Removed.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Abstracts\\Trigger' not found in wp-content/plugins/notification-bbpress/src/Repository/Trigger/Forum.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\bbPress\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/notification-bbpress/vendor/micropackage/requirements/src/Checker/SSL.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\bbPress\\Repository\\Trigger\\Reply' not found in wp-content/plugins/notification-bbpress/src/Repository/Trigger/Reply/Updated.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Abstracts\\Trigger' not found in wp-content/plugins/notification-bbpress/src/Repository/Trigger/Topic.php:16

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: notify, bbpress, mail, email, trigger...

notification-bbpress/notification-bbpress.php 92% from 13 tests

The entry point to "Notification : bbPress" version 3.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("resources/languages")

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 plugin3,448 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP558421,7802,747
JSON100485
Markdown648079
JavaScript244454
PO File191146
XML20034
Sass1113
CSS1240

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces22
Interfaces1
Traits1
Classes42
▷ Abstract classes49.52%
▷ Concrete classes3890.48%
▷ Final classes00.00%
Methods158
▷ Static methods2918.35%
▷ Public methods15296.20%
▷ Protected methods31.90%
▷ Private methods31.90%
Functions33
▷ Named functions39.09%
▷ Anonymous functions3090.91%
Constants0
▷ 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
PNG images were not found in this plugin