89% buddypress-notifications-widget

Code Review | BuddyPress Notification Widget

WordPress plugin BuddyPress Notification Widget scored89%from 54 tests.

About plugin

  • Plugin page: buddypress-notifi...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Nov 22, 2013
  • Latest release: Aug 7, 2023
  • Number of updates: 23
  • Update frequency: every 154.2 days
  • Top authors: sbrajesh (65.22%)raviousprime (30.43%)anusharma (13.04%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /45,680 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests

Server-side resources used by BuddyPress Notification Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.17 ▼0.00
Dashboard /wp-admin3.33 ▲0.0246.27 ▼1.11
Posts /wp-admin/edit.php3.38 ▲0.0245.96 ▼2.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.99 ▼16.93
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▲0.60

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress Notification Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.021.72 ▲0.0744.55 ▲5.04
Dashboard /wp-admin2,195 ▲155.57 ▼0.0887.65 ▼4.7140.70 ▼1.56
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0334.18 ▲0.5534.78 ▲2.96
Add New Post /wp-admin/post-new.php1,526 ▼023.82 ▲0.74673.42 ▼30.0452.08 ▲2.76
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.05105.67 ▲4.9947.57 ▲3.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

buddypress-notifications-widget/notifications-widget.php 92% from 13 tests

"BuddyPress Notification Widget" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("buddypress-notifications-widget.php" instead of "notifications-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin570 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File34044125

PHP code Passed 2 tests

An short overview of 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.38
Average class complexity11.33
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods211.76%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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