72% wp-custom-admin-login-lite

Code Review | WP Custom Admin Login Lite - Free WordPress plugin to make a customized admin login page

WordPress plugin WP Custom Admin Login Lite - Free WordPress plugin to make a customized admin login page scored 72% from 54 tests.

About plugin

  • Plugin page: wp-custom-admin-l...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 10, 2018
  • Latest release: Aug 10, 2018
  • Number of updates: 5
  • Update frequency: every 24.8 days
  • Top authors: 8degreethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,052 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.55ms] Passed 4 tests

This is a short check of server-side resources used by WP Custom Admin Login Lite - Free WordPress plugin to make a customized admin login page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.28 ▲1.52
Dashboard /wp-admin3.46 ▲0.1646.15 ▲0.28
Posts /wp-admin/edit.php3.51 ▲0.1551.85 ▲9.74
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.89 ▼10.46
Media Library /wp-admin/upload.php3.38 ▲0.1534.73 ▲2.45
General Settings /wp-admin/admin.php?page=wp-custom-admin-login-lite3.3331.78
How to use /wp-admin/admin.php?page=wcal-how-to3.3432.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Custom Admin Login Lite - Free WordPress plugin to make a customized admin login page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,975 ▲24013.28 ▼1.122.01 ▲0.4149.01 ▲6.97
Dashboard /wp-admin2,242 ▲505.85 ▲0.9196.50 ▼30.0139.24 ▼11.66
Posts /wp-admin/edit.php2,125 ▲362.07 ▲0.0239.77 ▼0.0940.78 ▲8.24
Add New Post /wp-admin/post-new.php1,543 ▲123.26 ▲5.05640.66 ▼7.5856.64 ▼9.93
Media Library /wp-admin/upload.php1,418 ▲334.21 ▼0.0898.55 ▼8.4243.59 ▼0.26
General Settings /wp-admin/admin.php?page=wp-custom-admin-login-lite1,1164.38103.2658.81
How to use /wp-admin/admin.php?page=wcal-how-to1,5334.72123.0950.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-custom-admin-login-lite/inc/classes/admin/wcal-admin.php
    • > /wp-content/plugins/wp-custom-admin-login-lite/inc/views/backend/wcal-settings.php
    • > /wp-content/plugins/wp-custom-admin-login-lite/wp-custom-admin-login-lite.php
    • > /wp-content/plugins/wp-custom-admin-login-lite/inc/classes/admin/wcal-how-to.php
  • 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-frontend-components/wcal-remember-me.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-frontend-components/wcal-registration.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WCAL_Admin_Login_Core' not found in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-templates/wcal-template-5.php:4
    • > PHP Warning
      require_once(WCAL_PATHinc/classes/customizer-class/wcal-customizer-tabs/tab-class.php): failed to open stream: No such file or directory in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/customizer-class/wcal-customizer-tabs/init.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-customizer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WCAL_Library' not found in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-admin-login-core.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WCAL_Admin_Login_Core' not found in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-templates/wcal-template-2.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WCAL_Admin_Login_Core' not found in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-templates/wcal-template-4.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/wcal-frontend-components/wcal-customizer-css.php:2
    • > PHP Warning
      Use of undefined constant WCAL_PATH - assumed 'WCAL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-custom-admin-login-lite/inc/classes/customizer-class/wcal-customizer-tabs/init.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=wp-custom-admin-login-lite
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=wp-custom-admin-login-lite
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-custom-admin-login-lite/wp-custom-admin-login-lite.php 92% from 13 tests

The principal PHP file in "WP Custom Admin Login Lite - Free WordPress plugin to make a customized admin login page" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 88 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin23,777 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
CSS931311714,153
PHP375223624,952
SVG1002,671
JavaScript123343301,659
PO File1158172342

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.95
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods89
▷ Static methods00.00%
▷ Public methods8696.63%
▷ Protected methods22.25%
▷ Private methods11.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
35 PNG files occupy 0.82MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/customize-images/wcal-template-26.png10.36KB4.58KB▼ 55.84%
images/customize-images/wcal-template-17.png35.26KB17.72KB▼ 49.76%
images/customize-images/wcal-template-11.png17.42KB7.31KB▼ 58.05%
images/customize-images/wcal-template-7.png7.72KB3.53KB▼ 54.21%
images/template-3/cancel1.png1.12KB0.18KB▼ 83.58%