84% temporary-login-without-password

Code Review | Temporary Login Without Password

WordPress plugin Temporary Login Without Password scored84%from 54 tests.

About plugin

  • Plugin page: temporary-login-w...
  • Plugin version: 1.8.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.1
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: May 19, 2023
  • Number of updates: 160
  • Update frequency: every 16.3 days
  • Top authors: storeapps (95%)Icegram (3.13%)niravmehta (3.13%)

Code review

54 tests

User reviews

1159 reviews

Install metrics

70,000+ active /952,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.70MB] [CPU: ▲1.74ms] Passed 4 tests

A check of server-side resources used by Temporary Login Without Password
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7049.00 ▲7.43
Dashboard /wp-admin4.01 ▲0.7048.32 ▲2.52
Posts /wp-admin/edit.php4.06 ▲0.7050.23 ▼0.07
Add New Post /wp-admin/post-new.php6.61 ▲0.7284.54 ▼1.88
Media Library /wp-admin/upload.php3.93 ▲0.7038.79 ▲6.40
Temporary Logins /wp-admin/users.php?page=wp-temporary-login-without-password4.51493.29

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

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

Browser metrics Passed 4 tests

Temporary Login Without Password: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.30 ▼0.991.78 ▼0.1637.05 ▼8.69
Dashboard /wp-admin2,215 ▲304.86 ▼0.95110.24 ▼9.4439.01 ▼3.76
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0434.79 ▼6.1833.52 ▼0.36
Add New Post /wp-admin/post-new.php1,536 ▲1323.31 ▲0.02681.88 ▲13.3663.01 ▲5.87
Media Library /wp-admin/upload.php1,394 ▲124.31 ▲0.1197.88 ▲0.7441.11 ▼3.43
Temporary Logins /wp-admin/users.php?page=wp-temporary-login-without-password1,9092.1029.4142.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • theysaidso_admin_options
    • tlwp_plugin_activation_time
    • widget_theysaidso_widget
    • db_upgraded
    • tlwp_plugin_version
    • can_compress_scripts
    • temporary_logins_data
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/temporary-login-without-password/templates/new-login.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/temporary-login-without-password/templates/temporary-logins-settings.php:9
    • > PHP Notice
      Undefined variable: is_temporary_login in wp-content/plugins/temporary-login-without-password/templates/admin-settings.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'Wp_Temporary_Login_Without_Password_Layout' not found in wp-content/plugins/temporary-login-without-password/templates/list-temporary-logins.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/temporary-login-without-password/templates/update-login.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Wtlwp_Sytem_Info' not found in wp-content/plugins/temporary-login-without-password/templates/system-info.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/temporary-login-without-password/includes/feedback.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/temporary-login-without-password/templates/admin-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/temporary-login-without-password/templates/other-plugins.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
5 plugin tags: passwordless login, magic pin, developer access, secure login, temporary access

temporary-login-without-password/temporary-login-without-password.php 92% from 13 tests

"Temporary Login Without Password" version 1.8.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,976 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,1021,5194,139
JavaScript76573672,681
CSS787301,625
PO File3229270531

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity41.31
▷ Minimum class complexity1.00
▷ Maximum class complexity154.00
Average method complexity4.97
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods132
▷ Static methods5340.15%
▷ Public methods12796.21%
▷ Protected methods00.00%
▷ Private methods53.79%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/sa-includes/images/ig_bfcm2022.png47.24KB50.32KB0.00%
admin/assets/images/icon-64.png4.74KB2.31KB▼ 51.27%