83% custom-admin-login-logo

Code Review | Custom Admin Login Logo

WordPress plugin Custom Admin Login Logo scored83%from 54 tests.

About plugin

  • Plugin page: custom-admin-logi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2019
  • Latest release: Aug 24, 2023
  • Number of updates: 6
  • Update frequency: every 224.2 days
  • Top authors: vividsunny (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /465 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Custom Admin Login Logo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.44 ▼5.66
Dashboard /wp-admin3.33 ▼0.0143.84 ▼13.99
Posts /wp-admin/edit.php3.38 ▲0.0245.05 ▼4.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.19 ▼24.76
Media Library /wp-admin/upload.php3.25 ▲0.0234.32 ▼0.51
Wp Login Logo /wp-admin/options-general.php?page=sp-wp-cust-login-logo3.2434.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Admin Login Logo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.34 ▼1.042.00 ▲0.2940.56 ▲0.05
Dashboard /wp-admin2,210 ▲224.79 ▼0.07109.43 ▲8.9038.93 ▼1.86
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0638.72 ▼3.6135.85 ▼1.08
Add New Post /wp-admin/post-new.php1,536 ▼123.33 ▲0.35712.97 ▲92.6458.37 ▲6.33
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0395.52 ▲0.3742.25 ▼0.81
Wp Login Logo /wp-admin/options-general.php?page=sp-wp-cust-login-logo9913.0743.1827.35

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-login-logo/class/class_sp_setting.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-login-logo/wp-custom-login-logo.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-login-logo/class/class_theme_customisations_install.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Requires php: Version not formatted correctly
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

custom-admin-login-logo/wp-custom-login-logo.php 85% from 13 tests

"Custom Admin Login Logo" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-admin-login-logo.php" instead of "wp-custom-login-logo.php")

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
Good job! No executable or dangerous file extensions detected191 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44456162
JavaScript20029

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods17
▷ Static methods211.76%
▷ Public methods17100.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

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