84% 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 scored84%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: 6.3.1
  • 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

3 reviews

Install metrics

30+ active /672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by LH Buddypress Email or Message Group Members
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.58 ▼4.26
Dashboard /wp-admin3.33 ▲0.0351.41 ▼6.41
Posts /wp-admin/edit.php3.38 ▲0.0249.39 ▼1.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.86 ▼15.38
Media Library /wp-admin/upload.php3.25 ▲0.0236.23 ▼2.79

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LH Buddypress Email or Message Group Members
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.161.98 ▲0.3444.38 ▼3.99
Dashboard /wp-admin2,189 ▲125.54 ▼0.1584.88 ▼7.5037.24 ▼5.76
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0242.53 ▲5.8436.35 ▼1.60
Add New Post /wp-admin/post-new.php1,526 ▼023.71 ▲0.37617.20 ▼28.7641.82 ▼15.94
Media Library /wp-admin/upload.php1,403 ▲94.35 ▲0.1798.32 ▼11.8841.54 ▼5.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | A shallow check that no browser errors were triggered
No browser errors were detected

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, mass, members, groups, email

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

The entry point to "LH Buddypress Email or Message Group Members" version 1.01 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin239 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP322731239

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin