90% lh-disable-bp-registration

Code Review | LH Disable BP Registration

WordPress plugin LH Disable BP Registration scored 90% from 54 tests.

About plugin

  • Plugin page: lh-disable-bp-reg...
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 8, 2016
  • Latest release: Mar 11, 2021
  • Number of updates: 5
  • Update frequency: every 316.2 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by LH Disable BP Registration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.53 ▼9.41
Dashboard /wp-admin3.31 ▲0.0142.98 ▼7.32
Posts /wp-admin/edit.php3.36 ▲0.0047.11 ▼2.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.30 ▼3.47
Media Library /wp-admin/upload.php3.23 ▲0.0035.75 ▼0.35

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for LH Disable BP Registration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.331.67 ▼0.5141.30 ▼1.74
Dashboard /wp-admin2,209 ▲185.83 ▲0.97105.64 ▼1.5840.33 ▼4.13
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0540.23 ▲0.4536.05 ▼0.15
Add New Post /wp-admin/post-new.php1,533 ▲1923.06 ▲5.50681.41 ▲50.5252.56 ▼8.88
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.0598.85 ▼4.5142.57 ▼3.16

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 your attention:
  • Requires at least: Invalid version format
The official readme.txt might help

lh-disable-bp-registration/lh-disable-bp-registration.php Passed 13 tests

The main PHP file in "LH Disable BP Registration" ver. 1.03 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Disable registration on your buddypress site or network

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin29 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2391729

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected