99% wc4bp-groups

Code Review | WooBuddy -> Groups

WordPress plugin WooBuddy -> Groups scored 99% from 54 tests.

About plugin

  • Plugin page: wc4bp-groups
  • Plugin version: 1.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.4-5.9
  • WordPress version: 5.9.2
  • First release: Apr 6, 2017
  • Latest release: Mar 30, 2022
  • Number of updates: 29
  • Update frequency: every 62.7 days
  • Top authors: svenl77 (75.86%)gfirem (27.59%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,153 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.38MB] [CPU: ▼313.27ms] Passed 4 tests

An overview of server-side resources used by WooBuddy -> Groups
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4277.59 ▼8.08
Dashboard /wp-admin3.80 ▲0.3947.85 ▲0.16
Posts /wp-admin/edit.php4.02 ▲0.3762.49 ▲5.52
Add New Post /wp-admin/post-new.php7.32 ▲0.35122.79 ▼1,250.66
Media Library /wp-admin/upload.php3.73 ▲0.4439.94 ▲6.43
Install Plugins /wp-admin/admin.php?page=wc4bp-groups-install-plugins3.7434.76

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooBuddy -> Groups
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,867 ▲11315.87 ▲0.949.72 ▲1.943.97 ▲0.49
Dashboard /wp-admin2,970 ▲916.45 ▲0.00188.31 ▼23.69235.01 ▲28.16
Posts /wp-admin/edit.php2,743 ▲583.57 ▲0.0393.05 ▲2.65198.77 ▲23.69
Add New Post /wp-admin/post-new.php1,670 ▲217.00 ▼3.93646.05 ▲1.00195.78 ▼17.87
Media Library /wp-admin/upload.php1,746 ▲485.74 ▲0.02185.41 ▼11.33294.47 ▲39.80
Install Plugins /wp-admin/admin.php?page=wc4bp-groups-install-plugins1,3262.7468.80167.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #2 (Product Single View), #3 (In the Card), #4 (Checkout Complete), #5 (In the eMail)
The official readme.txt might help

wc4bp-groups/wc4bp-groups.php 69% from 13 tests

The entry point to "WooBuddy -> Groups" version 1.4.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.6.4")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,716 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP142543991,291
JavaScript66623368
CSS28041
JSON10016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity32.41
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods173
▷ Static methods2715.61%
▷ Public methods14181.50%
▷ Protected methods2615.03%
▷ Private methods63.47%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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
There were not PNG files found in your plugin