84% wp-single-login

Code Review | Wp Single Login

WordPress plugin Wp Single Login scored84%from 54 tests.

About plugin

  • Plugin page: wp-single-login
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2014
  • Latest release: Nov 27, 2015
  • Number of updates: 6
  • Update frequency: every 111.3 days
  • Top authors: sagarseth9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,086 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.08ms] Passed 4 tests

Server-side resources used by Wp Single Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.33 ▲0.49
Dashboard /wp-admin3.33 ▼0.0251.04 ▼14.68
Posts /wp-admin/edit.php3.38 ▲0.0249.01 ▼4.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.35 ▼25.73
Media Library /wp-admin/upload.php3.25 ▲0.0239.73 ▲1.46

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Single Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.51 ▼0.8814.42 ▲12.7446.82 ▲6.00
Dashboard /wp-admin2,193 ▲165.65 ▲0.0196.59 ▲8.1137.94 ▼7.27
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0631.02 ▼10.7034.92 ▼1.08
Add New Post /wp-admin/post-new.php1,541 ▲1523.06 ▲5.37684.57 ▲14.9660.47 ▲6.40
Media Library /wp-admin/upload.php1,398 ▼24.17 ▼0.07100.41 ▼2.2443.02 ▼1.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Incomplete uninstall procedure, leaving 3 files (0.00MB) in the plugin directory
    • (new file) index.php
    • (new file) readme.txt
    • (new file) wp-single-login.php

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-single-login/wp-single-login.php:22

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: single login, login, wordpress single login, logout

wp-single-login/wp-single-login.php 92% from 13 tests

The principal PHP file in "Wp Single Login" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 279 characters long)

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
No dangerous file extensions were detected69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291569

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin