89% lh-buddypress-login-on-activation

Code Review | LH Buddypress login on activation

WordPress plugin LH Buddypress login on activation scored89%from 54 tests.

About plugin

  • Plugin page: lh-buddypress-log...
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 9, 2017
  • Latest release: Aug 2, 2022
  • Number of updates: 8
  • Update frequency: every 219.9 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /2,239 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by LH Buddypress login on activation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.52 ▲2.29
Dashboard /wp-admin3.32 ▲0.0248.41 ▲0.97
Posts /wp-admin/edit.php3.37 ▲0.0142.20 ▼7.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.33 ▼16.48
Media Library /wp-admin/upload.php3.24 ▲0.0133.10 ▲1.17

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

LH Buddypress login on activation: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.11 ▼0.241.67 ▲0.0744.34 ▲5.37
Dashboard /wp-admin2,195 ▲155.63 ▼0.0392.88 ▲9.8942.14 ▼3.18
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0533.82 ▼7.1131.57 ▼7.16
Add New Post /wp-admin/post-new.php1,529 ▼622.89 ▲4.71625.38 ▲28.5953.52 ▼12.88
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0399.68 ▲1.7042.07 ▼1.29

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

lh-buddypress-login-on-activation/lh-buddypress-login-on-activation.php 92% from 13 tests

Analyzing the main PHP file in "LH Buddypress login on activation" version 1.03
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
No dangerous file extensions were detected45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2392245

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected