89% login-bbpress

Code Review | Login bbPress

WordPress plugin Login bbPress scored89%from 54 tests.

About plugin

  • Plugin page: login-bbpress
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Dec 21, 2016
  • Number of updates: 19
  • Update frequency: every 36.7 days
  • Top authors: dyrer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,744 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Login bbPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.66 ▲0.71
Dashboard /wp-admin3.31 ▼0.0451.13 ▼23.27
Posts /wp-admin/edit.php3.36 ▲0.0049.45 ▼3.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.06 ▼23.03
Media Library /wp-admin/upload.php3.23 ▲0.0038.94 ▲4.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Login bbPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.141.71 ▲0.1043.68 ▼2.54
Dashboard /wp-admin2,198 ▲245.62 ▼0.0887.93 ▼16.4739.72 ▼7.12
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0236.95 ▼6.1436.12 ▼7.06
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.09658.22 ▼6.0351.34 ▼11.85
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.03102.89 ▲0.4546.43 ▲0.13

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • 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 everything seems fine, this is not an exhaustive test

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 a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

login-bbpress/bbpress-login-register-links-on-forum-page.php 85% from 13 tests

The main file in "Login bbPress" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("login-bbpress.php" instead of "bbpress-login-register-links-on-forum-page.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin44 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151535
CSS1249

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions3100.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 images were found in this plugin