84% groups-members-mail

Code Review | Group Members Mail Plugin

WordPress plugin Group Members Mail Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: groups-members-mail
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2016
  • Latest release: Jan 29, 2017
  • Number of updates: 13
  • Update frequency: every 9.5 days
  • Top authors: alexhal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.08ms] Passed 4 tests

Server-side resources used by Group Members Mail Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.99 ▲2.06
Dashboard /wp-admin3.31 ▲0.0147.51 ▼1.26
Posts /wp-admin/edit.php3.36 ▲0.0145.51 ▲0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.14 ▼5.25
Media Library /wp-admin/upload.php3.23 ▲0.0135.88 ▲2.49

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Group Members Mail Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.451.79 ▼0.0243.55 ▼0.31
Dashboard /wp-admin2,206 ▲184.87 ▼0.02105.31 ▼2.5340.61 ▼3.68
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0339.51 ▲2.6635.56 ▲1.27
Add New Post /wp-admin/post-new.php1,544 ▲818.51 ▼4.61617.53 ▲4.3052.31 ▲0.20
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0194.27 ▼1.3143.65 ▼0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/groups-members-mail/bp-groups-members-mail.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_is_active() in wp-content/plugins/groups-members-mail/classes/gmm.class.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === groups-members-mail === )
You can take inspiration from this readme.txt

groups-members-mail/bp-groups-members-mail.php 92% from 13 tests

"Group Members Mail Plugin" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("groups-members-mail.php" instead of "bp-groups-members-mail.php")

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
Everything looks great! No dangerous files found in this plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23736169
CSS176912
JavaScript1127

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.50
▷ Minimum class complexity10.00
▷ Maximum class complexity15.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
3 PNG files occupy 0.42MB with 0.29MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png148.88KB35.80KB▼ 75.95%
assets/screenshot-2.png188.25KB48.29KB▼ 74.35%
assets/screenshot-1.png89.56KB37.05KB▼ 58.64%