83% bbpress-login-register-links-on-forum-topic-pages

Code Review | bbPress Login Register Links On Forum Topic Pages

WordPress plugin bbPress Login Register Links On Forum Topic Pages scored83%from 54 tests.

About plugin

  • Plugin page: bbpress-login-reg...
  • Plugin version: 3.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Jun 18, 2023
  • Number of updates: 28
  • Update frequency: every 113.6 days
  • Top authors: zhuyi (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /58,747 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.61ms] 75% from 4 tests

This is a short check of server-side resources used by bbPress Login Register Links On Forum Topic Pages
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 509.36ms on /wp-admin/admin.php?page=bbPressCustomRegisterForm)
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1844.46 ▲3.82
Dashboard /wp-admin3.47 ▲0.1247.07 ▼6.72
Posts /wp-admin/edit.php3.58 ▲0.2347.52 ▲3.75
Add New Post /wp-admin/post-new.php6.05 ▲0.1694.72 ▼7.29
Media Library /wp-admin/upload.php3.39 ▲0.1637.73 ▲5.17
Style Customize /wp-admin/admin.php?page=bbPressCustomPage3.38472.14
Global Settings /wp-admin/admin.php?page=bbPressCustom3.38284.88
Login Admin Bar /wp-admin/admin.php?page=bbploginbarsettings3.38299.72
Login Notification /wp-admin/admin.php?page=bbplogincustomprologinnotification3.3633.93
Custom Login Links /wp-admin/admin.php?page=bbplogincustomloginlinks3.38350.72
Register Form /wp-admin/admin.php?page=bbPressCustomRegisterForm3.38509.36

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
bbploginuser_first_run_guide_bar
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress Login Register Links On Forum Topic Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11314.46 ▼0.172.03 ▲0.0742.79 ▼0.85
Dashboard /wp-admin2,252 ▲644.86 ▼0.02104.09 ▼4.3541.81 ▼1.01
Posts /wp-admin/edit.php2,132 ▲432.02 ▲0.0240.25 ▼3.3337.10 ▼0.79
Add New Post /wp-admin/post-new.php1,567 ▲2522.75 ▲4.69643.12 ▲23.0351.01 ▲2.38
Media Library /wp-admin/upload.php1,434 ▲464.26 ▲0.06100.98 ▼6.0244.83 ▲0.28
Style Customize /wp-admin/admin.php?page=bbPressCustomPage1,0812.0626.8129.36
Global Settings /wp-admin/admin.php?page=bbPressCustom1,4142.0323.7730.24
Login Admin Bar /wp-admin/admin.php?page=bbploginbarsettings1,1412.0123.6925.03
Login Notification /wp-admin/admin.php?page=bbplogincustomprologinnotification9042.0127.3324.71
Custom Login Links /wp-admin/admin.php?page=bbplogincustomloginlinks1,1252.0122.2428.68
Register Form /wp-admin/admin.php?page=bbPressCustomRegisterForm1,1382.0122.3828.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • bbploginuser_first_run_guide_bar
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bbpress-login-register-links-on-forum-topic-pages/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 33 tag instead of maximum 10
The official readme.txt is a good inspiration

bbpress-login-register-links-on-forum-topic-pages/bbpress-login-register-links-on-forum-page.php 77% from 13 tests

Analyzing the main PHP file in "bbPress Login Register Links On Forum Topic Pages" version 3.2.7
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("bbpress-login-register-links-on-forum-topic-pages.php" instead of "bbpress-login-register-links-on-forum-page.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 382 characters long)

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
There were no executable files found in this plugin1,531 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32071291,474
PO File1141557

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions21
▷ Named functions21100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/new.png5.78KB1.61KB▼ 72.15%