79% wp-additional-logins

Code Review | WordPress Additional Logins

WordPress plugin WordPress Additional Logins scored79%from 54 tests.

About plugin

  • Plugin page: wp-additional-logins
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 24, 2015
  • Latest release: Mar 24, 2015
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: niksudan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /649 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼13.24ms] Passed 4 tests

Analyzing server-side resources used by WordPress Additional Logins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.63 ▲5.21
Dashboard /wp-admin3.42 ▲0.1247.84 ▼12.88
Posts /wp-admin/edit.php3.52 ▲0.1645.92 ▼7.91
Add New Post /wp-admin/post-new.php6.10 ▲0.2176.01 ▼31.88
Media Library /wp-admin/upload.php3.36 ▲0.1336.39 ▼0.29
Additional Logins /wp-admin/users.php?page=wpal3.3635.24
Additional Logins /wp-admin/options-general.php?page=wpal-options3.2833.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Additional Logins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.38 ▼0.181.71 ▼0.1642.94 ▼0.47
Dashboard /wp-admin2,203 ▲265.63 ▼0.0895.52 ▲0.5842.44 ▲2.22
Posts /wp-admin/edit.php2,108 ▲81.96 ▼0.0135.87 ▼3.4934.59 ▲1.38
Add New Post /wp-admin/post-new.php1,538 ▲1223.11 ▼0.08687.13 ▲4.1648.70 ▼1.71
Media Library /wp-admin/upload.php1,408 ▲84.19 ▼0.01116.55 ▲1.7149.33 ▼1.16
Additional Logins /wp-admin/users.php?page=wpal8362.0426.5031.07
Additional Logins /wp-admin/options-general.php?page=wpal-options8522.0426.5830.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-additional-logins/views/header.php
    • > /wp-content/plugins/wp-additional-logins/views/choose-user.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_avatar() in wp-content/plugins/wp-additional-logins/views/view-logins.php:11
    • > PHP Notice
      Undefined variable: users in wp-content/plugins/wp-additional-logins/views/choose-user.php on line 17
    • > PHP Notice
      Undefined variable: userID in wp-content/plugins/wp-additional-logins/views/add-login.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-additional-logins/views/add-login.php:8
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/wp-additional-logins/views/choose-user.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-additional-logins/views/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-additional-logins/wp-additional-logins.php:221

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: multiple, additional, register, users, login...

wp-additional-logins/wp-additional-logins.php Passed 13 tests

The main PHP script in "WordPress Additional Logins" version 1.0.0 is automatically included on every request by WordPress
39 characters long description:
Adds additional login details to a user

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin437 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP689176416
Markdown118021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin