83% shiga-custom-login-by-corelabs

Code Review | Shiga - Custom WordPress Login for Rebranding your Login

WordPress plugin Shiga - Custom WordPress Login for Rebranding your Login scored83%from 54 tests.

About plugin

  • Plugin page: shiga-custom-logi...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 6, 2020
  • Latest release: May 18, 2022
  • Number of updates: 8
  • Update frequency: every 100.4 days
  • Top authors: webcreative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by Shiga - Custom WordPress Login for Rebranding your Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.85 ▲8.87
Dashboard /wp-admin3.37 ▲0.0744.82 ▼5.08
Posts /wp-admin/edit.php3.49 ▲0.1350.65 ▲2.91
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.34 ▼18.59
Media Library /wp-admin/upload.php3.30 ▲0.0735.49 ▼3.20
Shiga - Custom Login /wp-admin/options-general.php?page=cl_shiga_wp3.2941.47

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Shiga - Custom WordPress Login for Rebranding your Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15113.62 ▼0.9111.31 ▲9.8143.93 ▲6.31
Dashboard /wp-admin2,201 ▲245.48 ▼0.2283.08 ▼3.1636.96 ▼4.94
Posts /wp-admin/edit.php2,106 ▲61.99 ▼0.0439.58 ▲0.2933.49 ▼6.56
Add New Post /wp-admin/post-new.php1,531 ▲323.70 ▲0.64677.27 ▼26.7454.92 ▼4.19
Media Library /wp-admin/upload.php1,406 ▲64.16 ▲0.01104.53 ▼4.3246.41 ▼0.18
Shiga - Custom Login /wp-admin/options-general.php?page=cl_shiga_wp1,1553.7163.0374.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/shiga-custom-login-by-corelabs/public/partials/cl_shiga_login-public-display.php
    • > /wp-content/plugins/shiga-custom-login-by-corelabs/admin/partials/cl_shiga_login-admin-display.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can take inspiration from this readme.txt

shiga-custom-login-by-corelabs/cl_shiga_login.php 85% from 13 tests

This is the main PHP file of "Shiga - Custom WordPress Login for Rebranding your Login" version 2.0, 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("shiga-custom-login-by-corelabs.php" instead of "cl_shiga_login.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin535 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12146570272
CSS42999
Sass111790
JavaScript253074

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/wp-default-logo.png82.46KB25.93KB▼ 68.56%