84% simple-groups

Code Review | Simple Groups

WordPress plugin Simple Groups scored84%from 54 tests.

About plugin

  • Plugin page: simple-groups
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Dec 20, 2012
  • Latest release: Dec 26, 2012
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: ChrisHurst (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,887 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.74ms] Passed 4 tests

Server-side resources used by Simple Groups
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.35 ▼3.51
Dashboard /wp-admin3.38 ▲0.0848.96 ▼7.34
Posts /wp-admin/edit.php3.50 ▲0.1447.27 ▲1.21
Add New Post /wp-admin/post-new.php5.97 ▲0.0888.03 ▼9.26
Media Library /wp-admin/upload.php3.31 ▲0.0836.62 ▲1.14
Groups /wp-admin/edit-tags.php?taxonomy=groups3.3036.54

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Simple Groups
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.63 ▼0.741.91 ▲0.0339.47 ▼4.44
Dashboard /wp-admin2,210 ▲196.07 ▲1.17102.08 ▲0.2743.34 ▼1.62
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0136.69 ▼1.4133.25 ▼1.53
Add New Post /wp-admin/post-new.php1,517 ▼1617.48 ▼5.47667.17 ▲12.2355.97 ▲1.18
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.0095.18 ▼6.3942.42 ▼3.19
Groups /wp-admin/edit-tags.php?taxonomy=groups1,2492.1330.5932.69

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 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/simple-groups/simple-groups.php:16

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Users page, with new groups column.), #2 (New groups page.), #3 (Group membership selection on edit user page.)
You can look at the official readme.txt

simple-groups/simple-groups.php Passed 13 tests

The main PHP script in "Simple Groups" version 1.1 is automatically included on every request by WordPress
34 characters long description:
Simple Groups Plugin for WordPress

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 plugin232 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111560232

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected