72% sk-wp-login-customization

Code Review | SK WP Login Customization

WordPress plugin SK WP Login Customization scored72%from 54 tests.

About plugin

  • Plugin page: sk-wp-login-custo...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Feb 14, 2016
  • Latest release: Jul 17, 2021
  • Number of updates: 21
  • Update frequency: every 94.5 days
  • Top authors: sk335577 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.34ms] Passed 4 tests

Analyzing server-side resources used by SK WP Login Customization
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.49 ▼3.82
Dashboard /wp-admin3.41 ▲0.1050.50 ▲3.60
Posts /wp-admin/edit.php3.53 ▲0.1744.77 ▼2.32
Add New Post /wp-admin/post-new.php5.99 ▲0.1082.78 ▼1.25
Media Library /wp-admin/upload.php3.32 ▲0.0835.13 ▼1.98
SK WP Login Customization /wp-admin/options-general.php?page=sk-wll3.6137.57

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by SK WP Login Customization
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,224 ▲46315.37 ▲0.822.28 ▲0.5341.69 ▲2.53
Dashboard /wp-admin2,618 ▲4416.47 ▲0.84111.21 ▲27.6536.35 ▼3.89
Posts /wp-admin/edit.php2,506 ▲4033.59 ▲1.5754.23 ▲12.6129.17 ▼7.81
Add New Post /wp-admin/post-new.php1,544 ▲523.93 ▲0.42666.45 ▼36.1237.99 ▼24.86
Media Library /wp-admin/upload.php1,706 ▲3064.46 ▲0.3086.98 ▼24.8142.09 ▼5.04
SK WP Login Customization /wp-admin/options-general.php?page=sk-wll2,0833.3550.3177.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=sk-wll
    • > Notice in wp-content/plugins/sk-wp-login-customization/views/dashboard.php+594
    Undefined variable: skwll_form_shadow_status

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/sk-wp-login-customization/sk-wp-login-customization.php
    • > /wp-content/plugins/sk-wp-login-customization/views/dashboard-print-head-scripts.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sk-wp-login-customization/views/dashboard.php:8
    • > PHP Warning
      Use of undefined constant SK_WLL_NAME - assumed 'SK_WLL_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/sk-wp-login-customization/views/dashboard.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'SkWllCommon' not found in wp-content/plugins/sk-wp-login-customization/classes/SkWllCore.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sk-wp-login-customization/views/login-form-customization.php:6
    • > PHP Warning
      Use of undefined constant SK_WLL_NO_IMG_URL - assumed 'SK_WLL_NO_IMG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sk-wp-login-customization/views/dashboard-print-head-scripts.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
2 plugin tags: customize wordpress login form, wordpress logo change

sk-wp-login-customization/sk-wp-login-customization.php 92% from 13 tests

The main file in "SK WP Login Customization" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 199 characters long)

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 detected10,596 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS361,8536,761
JavaScript351,1361522,776
PHP691271,059

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.50
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin