84% login-site-icon

Code Review | Login Site Icon

WordPress plugin Login Site Icon scored 84% from 54 tests.

About plugin

  • Plugin page: login-site-icon
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Sep 18, 2023
  • Number of updates: 14
  • Update frequency: every 196.4 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 2,938 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.01MB] [CPU: ▼1.68ms] Passed 4 tests

Server-side resources used by Login Site Icon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.63 ▼2.42
Dashboard /wp-admin3.31 ▲0.0148.31 ▲2.58
Posts /wp-admin/edit.php3.36 ▲0.0149.66 ▲4.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.71 ▼6.11
Media Library /wp-admin/upload.php3.24 ▲0.0134.76 ▼0.78

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Login Site Icon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.17 ▼1.411.90 ▲0.2444.05 ▼8.80
Dashboard /wp-admin2,209 ▲214.84 ▼1.01100.77 ▼5.0340.04 ▼1.35
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0635.43 ▲0.2834.90 ▲4.02
Add New Post /wp-admin/post-new.php1,539 ▼323.26 ▲4.88603.21 ▼48.5356.10 ▼2.66
Media Library /wp-admin/upload.php1,379 ▼94.20 ▼0.01100.21 ▼5.6040.95 ▼3.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/login-site-icon/login-site-icon.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

login-site-icon/login-site-icon.php Passed 13 tests

The main PHP file in "Login Site Icon" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Display your site icon instead of the WordPress icon on the login screen.

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
No dangerous file extensions were detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182419

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin