90% login-logout-register-menu

Code Review | Login Logout Register Menu

WordPress plugin Login Logout Register Menu scored90%from 54 tests.

About plugin

  • Plugin page: login-logout-regi...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Feb 25, 2021
  • Number of updates: 10
  • Update frequency: every 141.3 days
  • Top authors: vinod dalvi (100%)

Code review

54 tests

User reviews

49 reviews

Install metrics

10,000+ active /105,127 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.85ms] Passed 4 tests

A check of server-side resources used by Login Logout Register Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1547.91 ▲5.91
Dashboard /wp-admin3.46 ▲0.1647.93 ▼5.60
Posts /wp-admin/edit.php3.57 ▲0.2251.84 ▲2.34
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.87 ▼12.68
Media Library /wp-admin/upload.php3.38 ▲0.1634.94 ▼3.47
Login Logout Register /wp-admin/options-general.php?page=llrm3.3533.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Login Logout Register Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8313.30 ▼0.891.91 ▲0.2245.77 ▲4.49
Dashboard /wp-admin2,253 ▲534.86 ▼1.01105.89 ▲5.4436.84 ▼5.54
Posts /wp-admin/edit.php2,129 ▲292.05 ▲0.0543.55 ▲6.3937.72 ▲3.35
Add New Post /wp-admin/post-new.php1,563 ▲1823.05 ▼0.15695.67 ▲35.0358.73 ▲2.61
Media Library /wp-admin/upload.php1,429 ▲294.29 ▲0.06111.51 ▲6.1248.91 ▼0.04
Login Logout Register /wp-admin/options-general.php?page=llrm9162.0625.1646.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: logout menu, login menu, login to navigation bar, profile menu, plugin...

login-logout-register-menu/login-logout-register-menu.php Passed 13 tests

The main file in "Login Logout Register Menu" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
137 characters long description:
The plugin allows you to add login, logout, register and profile menus in the navigation bar which can be configured from the admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected721 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9221436596
PO File14149112
JavaScript12413

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity16.29
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods4489.80%
▷ Protected methods00.00%
▷ Private methods510.20%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected