89% buddy-notification-bell

Code Review | Buddy Notification Bell

WordPress plugin Buddy Notification Bell scored89%from 54 tests.

About plugin

  • Plugin page: buddy-notificatio...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Jan 5, 2020
  • Number of updates: 19
  • Update frequency: every 54.8 days
  • Top authors: 1naveengiri (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100+ active /6,845 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.01MB] [CPU: ▼6.83ms] Passed 4 tests

Server-side resources used by Buddy Notification Bell
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.95 ▼2.55
Dashboard /wp-admin3.31 ▲0.0149.73 ▼3.03
Posts /wp-admin/edit.php3.36 ▲0.0146.55 ▼5.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.98 ▼16.06
Media Library /wp-admin/upload.php3.24 ▲0.0137.64 ▲0.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Buddy Notification Bell
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.73 ▲0.381.76 ▼0.2640.90 ▼0.32
Dashboard /wp-admin2,209 ▲355.65 ▲0.0694.08 ▼3.7840.53 ▼2.55
Posts /wp-admin/edit.php2,115 ▲121.99 ▲0.0238.70 ▲2.1635.24 ▼2.74
Add New Post /wp-admin/post-new.php1,535 ▼323.00 ▲0.01655.73 ▼1.5659.95 ▲7.62
Media Library /wp-admin/upload.php1,411 ▲84.17 ▼0.0799.96 ▼4.5942.56 ▼1.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
These attributes need your attention:
  • Tested up to: The plugin version is formatted incorrectly
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

buddy-notification-bell/buddy-notification-bell.php 85% from 13 tests

The main PHP script in "Buddy Notification Bell" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)

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
Success! There were no dangerous files found in this plugin5,451 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS311142,407
PHP494186301
JavaScript1332372

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.50
▷ Minimum class complexity8.00
▷ Maximum class complexity27.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods18100.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 were not PNG files found in your plugin