90% bp-greeting-message

Code Review | BuddyPress Greeting Message

WordPress plugin BuddyPress Greeting Message scored90%from 54 tests.

About plugin

  • Plugin page: bp-greeting-message
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Aug 11, 2016
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: xarbo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /5,960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by BuddyPress Greeting Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0633.04 ▼7.97
Dashboard /wp-admin3.34 ▲0.0450.04 ▼2.40
Posts /wp-admin/edit.php3.39 ▲0.0349.25 ▲0.57
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.97 ▼8.42
Media Library /wp-admin/upload.php3.26 ▲0.0334.25 ▼2.10
BuddyPress Greeting Message /wp-admin/options-general.php?page=bp_greeting_message_settings3.2638.32

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
bp_greeting_message_version
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Greeting Message
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲17313.59 ▼0.776.66 ▲5.0643.98 ▲1.45
Dashboard /wp-admin2,229 ▲234.91 ▲0.02105.63 ▲1.1141.14 ▼4.74
Posts /wp-admin/edit.php2,111 ▲112.04 ▼0.0234.67 ▼3.7034.59 ▼5.11
Add New Post /wp-admin/post-new.php1,533 ▲723.32 ▲5.85689.01 ▼11.2553.77 ▼9.00
Media Library /wp-admin/upload.php1,411 ▲114.28 ▲0.08100.41 ▼17.5944.14 ▼3.17
BuddyPress Greeting Message /wp-admin/options-general.php?page=bp_greeting_message_settings1,0583.2548.8726.05

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • bp_greeting_message_version
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

bp-greeting-message/bp-greeting-message.php Passed 13 tests

"BuddyPress Greeting Message" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Display a Greeting Message on BuddyPress Activity Screen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected764 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7189317634
JavaScript3256103
CSS15027

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.50
▷ Minimum class complexity3.00
▷ Maximum class complexity61.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3494.44%
▷ Protected methods00.00%
▷ Private methods25.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/afternoon.png1.83KB0.90KB▼ 51.07%
assets/img/morning.png1.57KB0.92KB▼ 41.74%
assets/img/night.png2.32KB1.72KB▼ 26.15%
assets/img/evening.png1.76KB1.29KB▼ 26.84%