94% add-login-text

Code Review | Add Login Text

WordPress plugin Add Login Text scored 94% from 54 tests.

About plugin

  • Plugin page: add-login-text
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 5.9.2
  • First release: Apr 19, 2014
  • Latest release: Jan 17, 2015
  • Number of updates: 13
  • Update frequency: every 21.0 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 2,595 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼293.56ms] Passed 4 tests

Server-side resources used by Add Login Text
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1363.75 ▲5.63
Dashboard /wp-admin3.48 ▲0.0738.99 ▲2.19
Posts /wp-admin/edit.php3.70 ▲0.0645.99 ▲5.85
Add New Post /wp-admin/post-new.php6.95 ▼0.0297.75 ▼1,185.20
Media Library /wp-admin/upload.php3.36 ▲0.0628.43 ▲3.14
Add Login Text /wp-admin/options-general.php?page=add-login-text3.3229.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
altlt

Browser metrics Passed 4 tests

Checking browser requirements for Add Login Text
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲5616.22 ▲0.236.25 ▼0.982.84 ▲0.07
Dashboard /wp-admin2,897 ▲396.16 ▼0.07117.72 ▼15.14154.63 ▼4.64
Posts /wp-admin/edit.php2,693 ▼13.25 ▲0.0266.27 ▲2.95141.93 ▲1.91
Add New Post /wp-admin/post-new.php1,671 ▼4018.13 ▼3.34384.52 ▼49.64156.21 ▼4.63
Media Library /wp-admin/upload.php1,703 ▲55.42 ▼0.08145.72 ▲10.39180.93 ▼3.82
Add Login Text /wp-admin/options-general.php?page=add-login-text1,0922.3955.71154.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/add-login-text/add-login-text.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: text, dev, admin, login custom, client

add-login-text/add-login-text.php Passed 13 tests

The main PHP script in "Add Login Text" version 0.1.0 is automatically included on every request by WordPress
39 characters long description:
Add text to the WordPress login screen.

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
Success! There were no dangerous files found in this plugin228 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3536223
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/support.png5.03KB2.79KB▼ 44.54%
images/login.png5.69KB3.02KB▼ 46.86%
images/settings.png2.11KB2.31KB0.00%
images/parameters.png3.48KB2.94KB▼ 15.45%