83% buddypress-multi-group-remove

Code Review | BuddyPress Multi Group Remove

WordPress plugin BuddyPress Multi Group Remove scored83%from 54 tests.

About plugin

  • Plugin page: buddypress-multi-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 9, 2012
  • Latest release: May 9, 2012
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: blackphantom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,067 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.13MB] [CPU: ▼12.28ms] Passed 4 tests

A check of server-side resources used by BuddyPress Multi Group Remove
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0338.65 ▼15.35
Dashboard /wp-admin3.31 ▲0.0048.44 ▼8.96
Posts /wp-admin/edit.php3.36 ▼0.4947.18 ▼7.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.26 ▼17.28
Media Library /wp-admin/upload.php3.23 ▲0.0039.00 ▲4.64

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Multi Group Remove
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.571.92 ▼0.1846.93 ▲0.56
Dashboard /wp-admin2,206 ▲155.86 ▲0.97107.31 ▼9.5145.03 ▼1.94
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0038.74 ▲4.7133.04 ▼3.38
Add New Post /wp-admin/post-new.php1,519 ▼023.42 ▲0.33633.89 ▼55.1957.41 ▲3.95
Media Library /wp-admin/upload.php1,385 ▼04.22 ▲0.01104.81 ▼6.9747.47 ▲0.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-multi-group-remove/bp-multi-group-remove.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-multi-group-remove/core.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
  • Tested up to: Version not formatted correctly
The official readme.txt is a good inspiration

buddypress-multi-group-remove/bp-multi-group-remove.php 92% from 13 tests

The primary PHP file in "BuddyPress Multi Group Remove" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-multi-group-remove.php" instead of "bp-multi-group-remove.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin29 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP262129

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin