90% lh-private-buddypress

Code Review | LH Private BuddyPress

WordPress plugin LH Private BuddyPress scored90%from 54 tests.

About plugin

  • Plugin page: lh-private-buddyp...
  • Plugin version: 1.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 6, 2016
  • Latest release: Jul 30, 2022
  • Number of updates: 17
  • Update frequency: every 123.1 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /10,429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.06ms] Passed 4 tests

Analyzing server-side resources used by LH Private BuddyPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.19 ▲0.98
Dashboard /wp-admin3.34 ▲0.0345.68 ▼1.64
Posts /wp-admin/edit.php3.39 ▲0.0346.73 ▲2.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.35 ▲3.99
Media Library /wp-admin/upload.php3.26 ▲0.0333.78 ▼1.59

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

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

Browser metrics Passed 4 tests

A check of browser resources used by LH Private BuddyPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.131.73 ▲0.0045.78 ▼0.58
Dashboard /wp-admin2,195 ▲155.48 ▼0.1980.10 ▼9.4139.95 ▼4.14
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0238.76 ▲4.0037.06 ▼0.95
Add New Post /wp-admin/post-new.php1,535 ▲918.28 ▼5.18593.53 ▼97.8164.94 ▼6.81
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.0494.30 ▼5.3139.69 ▼5.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: community, hide, buddypress, protect, protection...

lh-private-buddypress/lh-private-buddypress.php 92% from 13 tests

The primary PHP file in "LH Private BuddyPress" version 1.12 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • 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 a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP217928154

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods956.25%
▷ Public methods16100.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