84% tabbed-login

Code Review | Tabbed Login Widget

WordPress plugin Tabbed Login Widget scored84%from 54 tests.

About plugin

  • Plugin page: tabbed-login
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2012
  • Latest release: Sep 9, 2015
  • Number of updates: 63
  • Update frequency: every 17.4 days
  • Top authors: vivek.marakana (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

800+ active /63,251 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.37ms] Passed 4 tests

An overview of server-side resources used by Tabbed Login Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.46 ▼2.62
Dashboard /wp-admin3.32 ▼0.0348.57 ▼18.05
Posts /wp-admin/edit.php3.37 ▲0.0248.24 ▼7.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.92 ▼20.96
Media Library /wp-admin/upload.php3.24 ▲0.0139.02 ▲4.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_tabbed-login-widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tabbed Login Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.63 ▼0.595.93 ▲4.2440.98 ▲1.44
Dashboard /wp-admin2,210 ▲194.89 ▼0.02104.08 ▲3.5637.92 ▼8.92
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0737.27 ▼4.6233.73 ▼2.75
Add New Post /wp-admin/post-new.php1,518 ▼117.59 ▼5.62638.52 ▲16.8353.96 ▼2.20
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.0294.32 ▼10.5243.68 ▼0.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_tabbed-login-widget
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tabbed-login/tabbed-login-shortcode.php:172
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tabbed-login/tabbed-login-shortcode.php:172

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Login Tab), #2 (Register Tab), #3 (Forgot Password Tab), #4 (Metabox After Login)
The official readme.txt is a good inspiration

tabbed-login/tabbed-login.php Passed 13 tests

Analyzing the main PHP file in "Tabbed Login Widget" version 1.1.2
61 characters long description:
Easily add an beautifull tabbed login to your site's sidebar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,268 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PO File267061,3831,778
PHP34529306
CSS1293170
JavaScript10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin