90% groups-bbpress

Code Review | Groups bbPress

WordPress plugin Groups bbPress scored90%from 54 tests.

About plugin

  • Plugin page: groups-bbpress
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 2, 2016
  • Latest release: Apr 3, 2021
  • Number of updates: 7
  • Update frequency: every 265.6 days
  • Top authors: itthinx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,514 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.51ms] Passed 4 tests

A check of server-side resources used by Groups bbPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.37 ▼5.60
Dashboard /wp-admin3.31 ▲0.0044.28 ▼7.78
Posts /wp-admin/edit.php3.36 ▲0.0046.35 ▼1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.59 ▼11.07
Media Library /wp-admin/upload.php3.23 ▲0.0035.48 ▲3.09

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Groups bbPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.73 ▲0.361.68 ▼0.2040.71 ▼2.01
Dashboard /wp-admin2,213 ▲315.83 ▼0.02105.38 ▼15.4537.85 ▼13.56
Posts /wp-admin/edit.php2,101 ▲122.16 ▲0.1740.93 ▲2.7535.71 ▲4.91
Add New Post /wp-admin/post-new.php1,530 ▼1223.14 ▲5.00617.69 ▲2.2848.98 ▼11.85
Media Library /wp-admin/upload.php1,392 ▲14.22 ▼0.1499.37 ▲1.8044.03 ▼3.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: forums, groups, memberships, access control, bbpress

groups-bbpress/groups-bbpress.php 92% from 13 tests

The entry point to "Groups bbPress" version 1.3.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected119 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP212125119

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity16.00
▷ Minimum class complexity8.00
▷ Maximum class complexity24.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin