89% bp-messaging-control

Code Review | BuddyPress Messaging Control

WordPress plugin BuddyPress Messaging Control scored89%from 54 tests.

About plugin

  • Plugin page: bp-messaging-control
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 16, 2019
  • Latest release: May 19, 2021
  • Number of updates: 40
  • Update frequency: every 19.9 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,607 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.02MB] [CPU: ▼1.07ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Messaging Control
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.50 ▼2.28
Dashboard /wp-admin3.33 ▲0.0347.85 ▼5.21
Posts /wp-admin/edit.php3.38 ▲0.0252.06 ▲0.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.25 ▲5.79
Media Library /wp-admin/upload.php3.25 ▲0.0241.05 ▲2.25

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress Messaging Control
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.25 ▼0.101.78 ▼0.2044.12 ▼0.37
Dashboard /wp-admin2,195 ▲185.61 ▲0.0982.28 ▼14.6343.07 ▼1.01
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0239.26 ▲1.9336.94 ▲3.87
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▲0.09598.81 ▼89.9549.24 ▼7.75
Media Library /wp-admin/upload.php1,403 ▲64.17 ▲0.00100.55 ▲1.6343.47 ▼2.45

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid url: "paypal.me/GeorgeChaplin"
  • Requires at least: Version not formatted correctly
The official readme.txt might help

bp-messaging-control/bp-messaging-control-loader.php 92% from 13 tests

Analyzing the main PHP file in "BuddyPress Messaging Control" version 1.7.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-messaging-control.php" instead of "bp-messaging-control-loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,172 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34261131,049
JavaScript2281123

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.79
Average class complexity108.00
▷ Minimum class complexity108.00
▷ Maximum class complexity108.00
Average method complexity6.94
▷ Minimum method complexity1.00
▷ Maximum method complexity100.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1688.89%
▷ Protected methods211.11%
▷ Private methods00.00%
Functions25
▷ Named functions25100.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 files were detected