84% add-login-text

Code Review | Add Login Text

WordPress plugin Add Login Text scored84%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: 6.3.1
  • 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

200+ active /2,849 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.58ms] 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.53 ▲0.0737.32 ▼3.06
Dashboard /wp-admin3.37 ▲0.0648.24 ▲1.06
Posts /wp-admin/edit.php3.48 ▲0.1249.16 ▼0.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.15 ▼13.69
Media Library /wp-admin/upload.php3.29 ▲0.0633.21 ▼0.81
Add Login Text /wp-admin/options-general.php?page=add-login-text3.2631.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
altlt

Browser metrics Passed 4 tests

A check of browser resources used by Add Login Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.30 ▼1.121.86 ▲0.1740.88 ▼2.52
Dashboard /wp-admin2,210 ▲255.85 ▲0.9598.67 ▼3.5336.67 ▼7.24
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0542.07 ▲2.7636.10 ▼2.46
Add New Post /wp-admin/post-new.php1,545 ▲2218.58 ▼4.65600.66 ▼45.1667.40 ▲14.30
Media Library /wp-admin/upload.php1,395 ▲44.30 ▲0.0797.29 ▼1.3844.11 ▲0.23
Add Login Text /wp-admin/options-general.php?page=add-login-text8602.1726.0639.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: text, admin, client, dev, login custom

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

"Add Login Text" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for 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
No dangerous file extensions were detected228 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3536223
CSS1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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/parameters.png3.48KB2.94KB▼ 15.45%
images/settings.png2.11KB2.31KB0.00%
images/login.png5.69KB3.02KB▼ 46.86%
images/support.png5.03KB2.79KB▼ 44.54%