10% buddypress-mute

Code Review | BuddyPress Mute

WordPress plugin BuddyPress Mute scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-mute
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.0
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Mar 7, 2016
  • Number of updates: 21
  • Update frequency: every 16.1 days
  • Top authors: henry.wright (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

50+ active /5,622 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/buddypress-mute/buddypress-mute.php+48
    Trying to get property 'table_prefix' of non-object

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

An overview of server-side resources used by BuddyPress Mute
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.35 ▲4.30
Dashboard /wp-admin3.32 ▼0.0344.23 ▼16.13
Posts /wp-admin/edit.php3.37 ▲0.0146.25 ▼7.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.95 ▼15.74
Media Library /wp-admin/upload.php3.24 ▲0.0134.01 ▼0.25

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables
bp_mute
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Mute
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.192.24 ▲0.6342.90 ▲1.31
Dashboard /wp-admin2,198 ▲315.58 ▼0.0892.58 ▼4.6337.96 ▼5.17
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0640.91 ▼1.0935.41 ▼1.48
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▲0.05634.21 ▼35.2857.55 ▼1.98
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.07105.78 ▲4.4643.33 ▼0.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • bp_mute
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-mute/inc/actions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-mute/buddypress-mute.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'BP_Component' not found in wp-content/plugins/buddypress-mute/inc/classes/bp-component-mute.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypress-mute/inc/filters.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: friends, users, mute, activity, buddypress

buddypress-mute/buddypress-mute.php Passed 13 tests

The main file in "BuddyPress Mute" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
Let members mute their friends and shed unwanted items from their BuddyPress activity stream.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin540 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6182363496
JavaScript20044

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.30
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin