83% white-login-screen

Code Review | White Login Screen

WordPress plugin White Login Screen scored83%from 54 tests.

About plugin

  • Plugin page: white-login-screen
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Jun 10, 2014
  • Latest release: Jun 10, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: silver530 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /813 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by White Login Screen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.29 ▼5.66
Dashboard /wp-admin3.31 ▲0.0050.40 ▲0.21
Posts /wp-admin/edit.php3.36 ▲0.0054.17 ▲0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.08 ▼16.42
Media Library /wp-admin/upload.php3.23 ▲0.0034.92 ▼2.22

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for White Login Screen
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8213.64 ▼0.631.89 ▲0.1042.85 ▼0.04
Dashboard /wp-admin2,218 ▲125.81 ▼0.10106.09 ▼2.7241.46 ▼3.36
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0535.40 ▼4.4529.23 ▼7.72
Add New Post /wp-admin/post-new.php1,545 ▲1423.55 ▲0.30664.62 ▲30.5059.71 ▲5.72
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0294.97 ▼8.7940.67 ▼4.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 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/white-login-screen/white-login-screen.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 36 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
You can look at the official readme.txt

white-login-screen/white-login-screen.php 92% from 13 tests

The main PHP script in "White Login Screen" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected155 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File42872132
PHP2172923

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.37KB5.33KB▼ 48.65%