94% lh-buddypress-email-or-message-group-members

Code Review | LH Buddypress Email or Message Group Members

WordPress plugin LH Buddypress Email or Message Group Members scored 94% from 54 tests.

About plugin

  • Plugin page: lh-buddypress-ema...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.9.2
  • First release: Jul 2, 2021
  • Latest release: Jul 2, 2021
  • Number of updates: 8
  • Update frequency: every 3.0 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 265 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼308.95ms] Passed 4 tests

A check of server-side resources used by LH Buddypress Email or Message Group Members
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.0362.63 ▲9.18
Dashboard /wp-admin4.07 ▲0.0338.84 ▼0.27
Posts /wp-admin/edit.php4.35 ▲0.0349.60 ▲2.41
Add New Post /wp-admin/post-new.php7.59 ▼0.00100.20 ▼1,236.48
Media Library /wp-admin/upload.php4.00 ▲0.0234.29 ▼1.46

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by LH Buddypress Email or Message Group Members
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7316.18 ▲0.206.25 ▼1.222.95 ▲0.20
Dashboard /wp-admin2,892 ▲316.08 ▼0.10135.76 ▼1.59189.67 ▲22.22
Posts /wp-admin/edit.php2,685 ▼33.24 ▲0.0172.94 ▲7.79152.33 ▲0.93
Add New Post /wp-admin/post-new.php1,690 ▼021.31 ▲0.71493.65 ▲35.14197.09 ▼5.02
Media Library /wp-admin/upload.php1,695 ▼35.48 ▼0.05161.01 ▲13.20209.88 ▼32.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'BP_Group_Extension' not found in wp-content/plugins/lh-buddypress-email-or-message-group-members/classes/lh_begm-screen-class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: members, buddypress, groups, mass, email

lh-buddypress-email-or-message-group-members/lh-buddypress-email-or-message-group-members.php 92% from 13 tests

The main PHP file in "LH Buddypress Email or Message Group Members" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Everything looks great! No dangerous files found in this plugin239 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP322731239

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.00
▷ Minimum class complexity19.00
▷ Maximum class complexity23.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods861.54%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin