84% groups-for-membermouse

Code Review | Groups for MemberMouse

WordPress plugin Groups for MemberMouse scored84%from 54 tests.

About plugin

  • Plugin page: groups-for-member...
  • Plugin version: 2.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.9
  • WordPress version: 6.3.1
  • First release: Oct 10, 2018
  • Latest release: Apr 18, 2023
  • Number of updates: 34
  • Update frequency: every 48.8 days
  • Top authors: mintunmedia (91.18%)roymckenzie (11.76%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,269 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.05MB] [CPU: ▼24.22ms] Passed 4 tests

Analyzing server-side resources used by Groups for MemberMouse
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1335.77 ▼7.96
Dashboard /wp-admin3.33 ▼0.0234.21 ▼34.95
Posts /wp-admin/edit.php3.39 ▲0.0437.77 ▼15.61
Add New Post /wp-admin/post-new.php5.56 ▼0.3277.27 ▼38.36
Media Library /wp-admin/upload.php3.33 ▲0.1035.43 ▼4.33

Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/groups-for-membermouse/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Groups for MemberMouse
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.17 ▼1.051.68 ▼0.0941.13 ▼3.01
Dashboard /wp-admin2,221 ▲185.83 ▲0.9595.59 ▼6.8641.39 ▼1.33
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0435.76 ▼6.0635.61 ▲1.21
Add New Post /wp-admin/post-new.php1,545 ▲1923.09 ▲5.54690.34 ▲5.7556.10 ▼4.71
Media Library /wp-admin/upload.php1,397 ▼64.29 ▲0.12103.12 ▼12.0044.11 ▼4.19

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

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

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/groups-for-membermouse/includes/docs.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: membership site, mm groups, groups, membermouse, groups for membermouse...

groups-for-membermouse/groups-for-membermouse.php 92% from 13 tests

The principal PHP file in "Groups for MemberMouse" v. 2.3.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 290 characters long)

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
There were no executable files found in this plugin5,555 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP304774693,234
JavaScript463541,323
CSS2185998

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity82.00
▷ Minimum class complexity78.00
▷ Maximum class complexity86.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods66
▷ Static methods34.55%
▷ Public methods6598.48%
▷ Protected methods00.00%
▷ Private methods11.52%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/group_title_bg.png0.10KB0.17KB0.00%
images/close.png0.32KB0.17KB▼ 46.63%