90% yith-custom-login

Code Review | YITH Custom Login

WordPress plugin YITH Custom Login scored90%from 54 tests.

About plugin

  • Plugin page: yith-custom-login
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: May 31, 2013
  • Latest release: Nov 13, 2023
  • Number of updates: 47
  • Update frequency: every 81.2 days
  • Top authors: yithemes (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

8,000+ active /187,272 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.19MB] [CPU: ▼5.92ms] Passed 4 tests

Server-side resources used by YITH Custom Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.67 ▲1.60
Dashboard /wp-admin3.50 ▲0.1551.80 ▼7.25
Posts /wp-admin/edit.php3.62 ▲0.2649.64 ▲6.33
Add New Post /wp-admin/post-new.php6.09 ▲0.1983.98 ▼19.27
Media Library /wp-admin/upload.php3.45 ▲0.2137.55 ▲1.26
Login Screen /wp-admin/themes.php?page=yith-custom-login3.4539.28

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 34 new options
New WordPress options
widget_recent-posts
yith_login_submit_color_hover
can_compress_scripts
yith_login_logo_height
yith_login_username_label
yith_login_mascotte
yith_login_submit_border_color_hover
theysaidso_admin_options
yith_login_submit_color
yith_login_logo_width
...

Browser metrics Passed 4 tests

Checking browser requirements for YITH Custom Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4614.17 ▼0.181.98 ▲0.0547.28 ▲3.95
Dashboard /wp-admin2,199 ▲225.60 ▼0.0395.98 ▲7.4344.07 ▲5.90
Posts /wp-admin/edit.php2,101 ▼21.96 ▼0.0536.21 ▼3.3134.69 ▼2.42
Add New Post /wp-admin/post-new.php1,529 ▼023.46 ▲0.43688.74 ▲85.0259.66 ▲9.39
Media Library /wp-admin/upload.php1,401 ▼24.22 ▼0.08102.19 ▲5.4946.38 ▲4.02
Login Screen /wp-admin/themes.php?page=yith-custom-login1,0963.5043.9335.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 34 options
    • yith_login_logo_image
    • yith_login_background_position
    • yith_login_enable
    • widget_recent-posts
    • yith_login_custom_style
    • yith_login_username_label
    • yith_login_submit_color
    • yith_login_container_width
    • yith_login_mascotte
    • yith_login_logo_width
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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: login screen, wordpress login, themes, custom login, customization

yith-custom-login/init.php 92% from 13 tests

The main PHP file in "YITH Custom Login" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("yith-custom-login.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,758 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS363551,336
PHP9176439966
JavaScript15022230
PO File1186317222
JSON2004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.20
▷ Minimum class complexity2.00
▷ Maximum class complexity64.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/box-bottom.png0.56KB0.56KB0.00%
assets/images/user.png0.40KB0.42KB0.00%
assets/images/checkbox.png0.53KB0.53KB0.18%
assets/images/bg-pattern.png0.10KB0.09KB▼ 10.78%
assets/images/logo.png1.26KB1.28KB0.00%