94% admin-login-template

Code Review | Admin login template

WordPress plugin Admin login template scored 94% from 54 tests.

About plugin

  • Plugin page: admin-login-template
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.2
  • WordPress version: 5.9.2
  • First release: Feb 28, 2022
  • Latest release: Feb 28, 2022
  • Number of updates: 2
  • Update frequency: every 26.5 days
  • Top authors: haqueemon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 81 total downloads


Plugin footprint Passed 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.06MB] [CPU: ▼298.04ms] Passed 4 tests

A check of server-side resources used by Admin login template
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0855.79 ▼0.68
Dashboard /wp-admin3.51 ▲0.1040.08 ▼41.97
Posts /wp-admin/edit.php3.74 ▲0.1042.95 ▲5.06
Add New Post /wp-admin/post-new.php6.96 ▼0.01116.10 ▼1,150.14
Media Library /wp-admin/upload.php3.37 ▲0.0726.14 ▲0.62

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin login template: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,991 ▲23716.91 ▲1.615.68 ▼1.023.94 ▲1.14
Dashboard /wp-admin3,114 ▲2498.05 ▲1.89143.94 ▲5.30162.20 ▼49.01
Posts /wp-admin/edit.php2,942 ▲2855.23 ▲1.9881.46 ▲17.77191.91 ▲30.15
Add New Post /wp-admin/post-new.php1,681 ▲2016.38 ▼1.02402.35 ▼51.50224.83 ▲68.31
Media Library /wp-admin/upload.php1,724 ▲265.43 ▼0.08105.17 ▼66.14180.11 ▼6.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-login-template/admin-login-template.php:17

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)
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: wp login template, wordpress login, wp admin template, login form, wp login...

admin-login-template/admin-login-template.php 92% from 13 tests

The main file in "Admin login template" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 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
No dangerous file extensions were detected661 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1191.67%
▷ Anonymous functions18.33%
▷ Global constants00.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