84% bp-profile-message-ux

Code Review | BuddyProfileMessageUX Free

WordPress plugin BuddyProfileMessageUX Free scored84%from 54 tests.

About plugin

  • Plugin page: bp-profile-messag...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2013
  • Latest release: Dec 23, 2022
  • Number of updates: 65
  • Update frequency: every 54.7 days
  • Top authors: shanebp (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

90+ active /10,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by BuddyProfileMessageUX Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.84 ▼6.69
Dashboard /wp-admin3.31 ▲0.0145.36 ▼6.15
Posts /wp-admin/edit.php3.36 ▲0.0050.29 ▲2.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.08 ▼5.49
Media Library /wp-admin/upload.php3.24 ▲0.0039.75 ▲0.72

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

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

Browser metrics Passed 4 tests

BuddyProfileMessageUX Free: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.662.17 ▲0.2046.60 ▼3.59
Dashboard /wp-admin2,203 ▲185.82 ▲0.93102.28 ▼15.5839.34 ▼5.93
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0539.82 ▲3.4133.97 ▼1.71
Add New Post /wp-admin/post-new.php1,514 ▼017.51 ▼0.01668.50 ▼18.6451.32 ▼1.39
Media Library /wp-admin/upload.php1,391 ▲34.33 ▲0.1695.32 ▼16.0240.84 ▼6.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-profile-message-ux/bp-profile-message-ux.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: buddypress, plugins, members, message, profile

bp-profile-message-ux/loader.php 92% from 13 tests

The primary PHP file in "BuddyProfileMessageUX Free" version 1.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-profile-message-ux.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected135 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29326135

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin