89% simple-buddypress-notifications

Code Review | Simple Buddypress Notifications

WordPress plugin Simple Buddypress Notifications scored89%from 54 tests.

About plugin

  • Plugin page: simple-buddypress...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 30, 2019
  • Latest release: Nov 4, 2022
  • Number of updates: 6
  • Update frequency: every 183.5 days
  • Top authors: imemine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /984 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Simple Buddypress Notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.80 ▼3.80
Dashboard /wp-admin3.31 ▼0.0345.14 ▼18.20
Posts /wp-admin/edit.php3.36 ▲0.0145.09 ▼3.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.46 ▼8.10
Media Library /wp-admin/upload.php3.24 ▲0.0131.56 ▼1.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Buddypress Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.73 ▲0.481.99 ▲0.3343.96 ▲0.75
Dashboard /wp-admin2,220 ▲324.88 ▼0.02111.61 ▼1.2843.33 ▲0.91
Posts /wp-admin/edit.php2,103 ▲172.03 ▲0.0640.81 ▲4.3339.64 ▲7.37
Add New Post /wp-admin/post-new.php1,542 ▲2823.17 ▲5.63704.42 ▲36.2761.08 ▲8.59
Media Library /wp-admin/upload.php1,399 ▲114.21 ▲0.03102.54 ▲1.5342.27 ▼1.08

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

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

The main PHP file in "Simple Buddypress Notifications" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,213 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG100931
PHP383122164
JavaScript1341968
CSS28350

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin