84% bb-login-module

Code Review | Login Module For Beaver Builder

WordPress plugin Login Module For Beaver Builder scored84%from 54 tests.

About plugin

  • Plugin page: bb-login-module
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 21, 2022
  • Latest release: May 28, 2022
  • Number of updates: 4
  • Update frequency: every 17.7 days
  • Top authors: officialwaashero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /715 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
Installer ran successfully

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

This is a short check of server-side resources used by Login Module For Beaver Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.20 ▼8.31
Dashboard /wp-admin3.31 ▼0.0446.58 ▼20.17
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▲1.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.37 ▼24.90
Media Library /wp-admin/upload.php3.23 ▲0.0037.74 ▲3.59

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Login Module For Beaver Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.58 ▲0.011.54 ▼0.2237.18 ▼7.28
Dashboard /wp-admin2,195 ▲185.54 ▼0.0596.43 ▼9.4338.46 ▼4.66
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0432.92 ▼4.2232.39 ▲0.05
Add New Post /wp-admin/post-new.php1,526 ▼523.20 ▲0.13659.29 ▼39.1252.33 ▼19.23
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0194.37 ▼6.5142.82 ▼0.38

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/bb-login-module/modules/login-logout-reset/class-login-logout-module.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/bb-login-module/modules/login-logout-reset/includes/frontend.css.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bb-login-module/includes/login-module-for-bb-functions.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/bb-login-module/modules/login-logout-reset/includes/frontend.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: login module, beaver builder, logout module, modal

bb-login-module/login-module-for-bb.php 85% from 13 tests

The principal PHP file in "Login Module For Beaver Builder" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bb-login-module.php" instead of "login-module-for-bb.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin951 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13172410702
CSS120247
Markdown1102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods20
▷ Static methods525.00%
▷ Public methods1680.00%
▷ Protected methods00.00%
▷ Private methods420.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin