93% custom-admin-login-styler-wpzest

Code Review | Custom Admin Login Page | WPZest

WordPress plugin Custom Admin Login Page | WPZest scored 93% from 54 tests.

About plugin

  • Plugin page: custom-admin-logi...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 5.8.1
  • First release: Oct 16, 2015
  • Latest release: Feb 28, 2017
  • Number of updates: 105
  • Update frequency: every 5.0 days
  • Top authors: wpzest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 6,625 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼174.80ms] Passed 4 tests

This is a short check of server-side resources used by Custom Admin Login Page | WPZest
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2642.14 ▲18.24
Dashboard /wp-admin3.27 ▲0.2145.09 ▼3.88
Posts /wp-admin/edit.php3.37 ▲0.2647.48 ▲0.41
Add New Post /wp-admin/post-new.php5.85 ▲0.4292.59 ▼695.10
Media Library /wp-admin/upload.php3.23 ▲0.2236.58 ▼0.61

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Admin Login Page | WPZest
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12616.55 ▲1.107.37 ▼0.9650.54 ▼1.88
Dashboard /wp-admin3,013 ▲826.56 ▲0.62141.85 ▼13.26120.35 ▲2.74
Posts /wp-admin/edit.php2,782 ▲432.72 ▲0.0377.51 ▲5.5198.41 ▲0.42
Add New Post /wp-admin/post-new.php1,614 ▼6921.23 ▲2.66464.96 ▲76.33156.83 ▲43.21
Media Library /wp-admin/upload.php1,866 ▲595.21 ▲0.20150.67 ▼12.95120.88 ▼16.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-login-styler-wpzest/lpsFiltersAndActions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-login-styler-wpzest/loginPageStylerOption.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-login-styler-wpzest/loginPageStylerOption.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

custom-admin-login-styler-wpzest/loginPageStyler.php 92% from 13 tests

"Custom Admin Login Page | WPZest" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-admin-login-styler-wpzest.php" instead of "loginPageStyler.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,505 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3257651,059
CSS17732419
JavaScript2121427

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
22 PNG files occupy 8.18MB with 3.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/form-setting.png0.40KB0.43KB0.00%
screenshot-1.png77.92KB36.40KB▼ 53.29%
screenshot-13.png1,541.00KB553.42KB▼ 64.09%
images/button-settings.png0.14KB0.13KB▼ 10.88%
screenshot-2.png87.19KB39.26KB▼ 54.97%