68% password-only-login

Code Review | Password only login

WordPress plugin Password only login scored68%from 54 tests.

About plugin

  • Plugin page: password-only-login
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: May 11, 2013
  • Latest release: Jan 3, 2014
  • Number of updates: 8
  • Update frequency: every 34.1 days
  • Top authors: calvaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,379 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.23MB] [CPU: ▼48.96ms] Passed 4 tests

A check of server-side resources used by Password only login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7114.26 ▼25.20
Dashboard /wp-admin2.79 ▼0.5614.68 ▼52.41
Posts /wp-admin/edit.php2.79 ▼0.5717.05 ▼36.34
Add New Post /wp-admin/post-new.php2.79 ▼3.1015.16 ▼81.88
Media Library /wp-admin/upload.php2.79 ▼0.4416.17 ▼16.93
Password only login /wp-admin/options-general.php?page=password-only-login/admin.php2.7917.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Password only login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.391.53 ▼0.2540.67 ▲1.63
Dashboard /wp-admin2,207 ▲195.76 ▲0.8697.07 ▼15.1141.62 ▲0.82
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0339.79 ▲2.6839.17 ▲5.21
Add New Post /wp-admin/post-new.php1,536 ▲2223.27 ▲5.76606.68 ▼93.2962.67 ▲3.49
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0597.24 ▼13.5143.65 ▼6.57
Password only login /wp-admin/options-general.php?page=password-only-login/admin.php7832.0527.1426.82

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
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/password-only-login/index.php+21
    Undefined index: a
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=password-only-login/admin.php
    • > Notice in wp-content/plugins/password-only-login/index.php+21
    Undefined index: a
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=password-only-login/admin.php
    • > Notice in wp-content/plugins/password-only-login/admin.php+59
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/password-only-login/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/password-only-login/admin.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

password-only-login/index.php 85% from 13 tests

Analyzing the main PHP file in "Password only login" version 0.2
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 536 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("password-only-login.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin156 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27925156

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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
There were not PNG files found in your plugin