84% lh-buddypress-disable-group-deletion

Code Review | LH Buddypress Disable Group Deletion

WordPress plugin LH Buddypress Disable Group Deletion scored84%from 54 tests.

About plugin

  • Plugin page: lh-buddypress-dis...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: Aug 1, 2022
  • Number of updates: 4
  • Update frequency: every 296.5 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.72ms] Passed 4 tests

A check of server-side resources used by LH Buddypress Disable Group Deletion
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.13 ▼3.74
Dashboard /wp-admin3.32 ▲0.0146.98 ▼3.29
Posts /wp-admin/edit.php3.37 ▲0.0142.36 ▼13.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.83 ▼18.80
Media Library /wp-admin/upload.php3.24 ▲0.0134.97 ▼1.37

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for LH Buddypress Disable Group Deletion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.241.71 ▼0.1141.57 ▼0.82
Dashboard /wp-admin2,209 ▲215.85 ▲0.99100.32 ▼9.3038.37 ▼9.09
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0134.65 ▼5.0030.52 ▼2.89
Add New Post /wp-admin/post-new.php1,532 ▲1323.11 ▼0.16663.52 ▼9.9556.62 ▲3.39
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.1098.94 ▼7.4642.51 ▼0.92

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-buddypress-disable-group-deletion/lh-buddypress-disable-group-deletion.php:75

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: buddypress, permission, groups, group, delete

lh-buddypress-disable-group-deletion/lh-buddypress-disable-group-deletion.php 92% from 13 tests

The entry point to "LH Buddypress Disable Group Deletion" version 1.01 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2352332

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin