99% bp-activity-comment-notifier

Code Review | BuddyPress Activity Comment Notifier

WordPress plugin BuddyPress Activity Comment Notifier scored 99% from 54 tests.

About plugin

  • Plugin page: bp-activity-comme...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Oct 20, 2015
  • Latest release: Dec 6, 2017
  • Number of updates: 6
  • Update frequency: every 129.7 days
  • Top authors: sbrajesh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 7,709 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by BuddyPress Activity Comment Notifier
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0258.94 ▲10.15
Dashboard /wp-admin3.42 ▲0.0134.44 ▲1.14
Posts /wp-admin/edit.php3.66 ▲0.0136.94 ▲1.92
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.01 ▼1,178.66
Media Library /wp-admin/upload.php3.31 ▲0.0125.19 ▼1.60

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Activity Comment Notifier
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1515.53 ▼0.477.16 ▲1.072.39 ▼0.45
Dashboard /wp-admin2,878 ▲176.16 ▲0.05122.33 ▼9.20157.88 ▼6.88
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0063.27 ▼2.39145.06 ▼0.17
Add New Post /wp-admin/post-new.php1,668 ▼4318.17 ▼2.66423.58 ▼25.78156.76 ▼3.41
Media Library /wp-admin/upload.php1,701 ▲35.53 ▼0.01143.60 ▼7.27183.07 ▼5.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
You can look at the official readme.txt

bp-activity-comment-notifier/ac-notify.php 85% from 13 tests

The primary PHP file in "BuddyPress Activity Comment Notifier" version 1.2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-activity-comment-notifier.php" instead of "ac-notify.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 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
No dangerous file extensions were detected256 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP390124216
PO File19940

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin