83% custom-login-admin-front-end-css-with-multisite-support

Code Review | Custom Login Admin Front-end CSS

WordPress plugin Custom Login Admin Front-end CSS scored83%from 54 tests.

About plugin

  • Plugin page: custom-login-admi...
  • Plugin version: 1.8
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Oct 4, 2023
  • Number of updates: 28
  • Update frequency: every 97.5 days
  • Top authors: arunbasillal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /6,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.82ms] Passed 4 tests

Server-side resources used by Custom Login Admin Front-end CSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.63 ▼4.59
Dashboard /wp-admin3.38 ▲0.0748.98 ▼2.55
Posts /wp-admin/edit.php3.43 ▲0.0747.65 ▼7.93
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.01 ▼16.19
Media Library /wp-admin/upload.php3.30 ▲0.0738.72 ▼1.02
Custom LAF CSS /wp-admin/themes.php?page=custom-login-admin-frontend-css3.2734.80

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
abl_clafc_version
clafc_custom_css
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Custom Login Admin Front-end CSS: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.23 ▼0.041.65 ▲0.0039.24 ▼4.80
Dashboard /wp-admin2,204 ▲245.67 ▲0.0589.43 ▼4.0242.12 ▲2.65
Posts /wp-admin/edit.php2,109 ▲62.08 ▲0.1136.04 ▼4.6736.46 ▼1.55
Add New Post /wp-admin/post-new.php1,536 ▲1022.96 ▼0.68663.84 ▲7.7161.55 ▼0.01
Media Library /wp-admin/upload.php1,403 ▼04.18 ▲0.05106.10 ▲2.0247.70 ▼2.68
Custom LAF CSS /wp-admin/themes.php?page=custom-login-admin-frontend-css1,4022.4842.4742.86

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
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • 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 no errors were found, 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
Please take a closer look at the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/csstidy/data-wp.inc.php on line 34
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/csstidy/data-wp.inc.php on line 24
    • > PHP Notice
      Undefined index: multiple_properties in wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/csstidy/data-wp.inc.php on line 34
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/csstidy/data-wp.inc.php on line 3
    • > PHP Notice
      Undefined index: unit_values in wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/csstidy/data-wp.inc.php on line 16
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/csstidy/data-wp.inc.php on line 16
    • > PHP Notice
      Undefined index: color_values in wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/csstidy/data-wp.inc.php on line 24

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: admin, admin interface, custom admin css, css, custom login css...

custom-login-admin-front-end-css-with-multisite-support/clafc_custom-login-admin-frontend-css.php 77% from 13 tests

This is the main PHP file of "Custom Login Admin Front-end CSS" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-login-admin-front-end-css-with-multisite-support.php" instead of "clafc_custom-login-admin-frontend-css.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin9,145 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24904555,960
PHP64291,1692,786
CSS36122333
Markdown120066

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 153)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity210.00
▷ Minimum class complexity72.00
▷ Maximum class complexity286.00
Average method complexity9.21
▷ Minimum method complexity1.00
▷ Maximum method complexity153.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods76
▷ Static methods11.32%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants10
▷ Global constants10100.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