10% baw-login-logout-menu

Code Review | Login Logout Menu

WordPress plugin Login Logout Menu scored10%from 54 tests.

About plugin

  • Plugin page: baw-login-logout-...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2012
  • Latest release: Jul 31, 2015
  • Number of updates: 15
  • Update frequency: every 82.7 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

86 reviews

Install metrics

10,000+ active /232,229 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/baw-login-logout-menu/bawllm.php+13
    Function create_function() is deprecated

Server metrics [RAM: ▼1.95MB] [CPU: ▼54.19ms] Passed 4 tests

Analyzing server-side resources used by Login Logout Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.425.50 ▼34.88
Dashboard /wp-admin2.07 ▼1.285.94 ▼53.35
Posts /wp-admin/edit.php2.07 ▼1.295.46 ▼44.02
Add New Post /wp-admin/post-new.php2.07 ▼3.825.30 ▼84.51
Media Library /wp-admin/upload.php2.07 ▼1.165.57 ▼28.64

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Login Logout Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.391.67 ▲0.0645.55 ▲7.41
Dashboard /wp-admin2,198 ▲265.64 ▲0.0283.04 ▼15.0738.37 ▼3.44
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0539.15 ▼3.3939.82 ▲3.54
Add New Post /wp-admin/post-new.php1,534 ▲818.36 ▼4.81609.19 ▼56.2779.55 ▲8.15
Media Library /wp-admin/upload.php1,397 ▼04.24 ▲0.08100.55 ▼17.1442.34 ▼5.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/baw-login-logout-menu/bawllm.php+13
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/baw-login-logout-menu/inc/frontend-noajax.inc.php
    • > /wp-content/plugins/baw-login-logout-menu/inc/backend-noajax.inc.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/baw-login-logout-menu/bawllm.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: log in, logout, menu, login, nonce

baw-login-logout-menu/bawllm.php 92% from 13 tests

The main PHP script in "Login Logout Menu" version 1.3.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("baw-login-logout-menu.php" instead of "bawllm.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
Good job! No executable or dangerous file extensions detected194 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32717194

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin