10% wp-sidebar-login

Code Review | WP Sidebar Login

WordPress plugin WP Sidebar Login scored10%from 54 tests.

About plugin

  • Plugin page: wp-sidebar-login
  • Plugin version: 2.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2012
  • Latest release: Feb 3, 2016
  • Number of updates: 21
  • Update frequency: every 62.1 days
  • Top authors: masdiblogs (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /26,488 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-sidebar-login/wp-sidebar-login.php+220
    Methods with the same name as their class will not be constructors in a future version of PHP; SidebarLoginMultiWidget has a deprecated constructor

Server metrics [RAM: ▼1.40MB] [CPU: ▼47.71ms] Passed 4 tests

This is a short check of server-side resources used by WP Sidebar Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.56 ▼0.909.28 ▼30.15
Dashboard /wp-admin2.61 ▼0.6912.84 ▼35.06
Posts /wp-admin/edit.php2.61 ▼0.7413.58 ▼39.01
Add New Post /wp-admin/post-new.php2.61 ▼3.2714.04 ▼86.61
Media Library /wp-admin/upload.php2.61 ▼0.6114.45 ▼18.72
WP Sidebar Login /wp-admin/options-general.php?page=wp-sidebar-login2.6113.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options
sidebarlogin_heading
sidebarlogin_forgotton_link
sidebarlogin_logout_redirect
widget_theysaidso_widget
sidebarlogin_register_link
theysaidso_admin_options
can_compress_scripts
sidebarlogin_logged_in_links
widget_recent-comments
sidebarlogin_login_redirect
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Sidebar Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.64 ▼0.905.60 ▲3.8840.44 ▼5.79
Dashboard /wp-admin2,223 ▲324.88 ▼1.00103.25 ▲4.6240.21 ▼3.66
Posts /wp-admin/edit.php2,106 ▲172.05 ▼0.0035.68 ▼8.9036.39 ▲0.40
Add New Post /wp-admin/post-new.php1,535 ▲2118.58 ▲0.79613.09 ▲4.5161.41 ▲5.94
Media Library /wp-admin/upload.php1,396 ▲144.25 ▲0.0596.35 ▼0.6042.14 ▲0.73
WP Sidebar Login /wp-admin/options-general.php?page=wp-sidebar-login9241.9126.5829.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function force_ssl_login is deprecated since version 4.4.0! Use force_ssl_admin() instead.
  • Zombie WordPress options were found after uninstall: 14 options
    • sidebarlogin_logged_in_links
    • sidebarlogin_logout_redirect
    • sidebarlogin_forgotton_link
    • sidebar_login_avatar
    • db_upgraded
    • sidebarlogin_login_redirect
    • can_compress_scripts
    • sidebarlogin_heading
    • widget_recent-comments
    • sidebarlogin_register_link
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-sidebar-login
    • > User deprecated in wp-includes/functions.php+5453
    Function force_ssl_login is deprecated since version 4.4.0! Use force_ssl_admin() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-sidebar-login
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in SidebarLoginMultiWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-sidebar-login
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-sidebar-login
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sidebar-login/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-sidebar-login/wp-sidebar-login.php:28

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-sidebar-login/wp-sidebar-login.php Passed 13 tests

The entry point to "WP Sidebar Login" version 2.14 is a PHP file that has certain tags in its header comment area
93 characters long description:
This plugin used to easily add an ajax enabled wordpress login widget to your site's sidebar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin848 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2105102462
PHP211263330
CSS11256

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin