84% admin-login-template

Code Review | Admin login template

WordPress plugin Admin login template scored84%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: 6.3.1
  • 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 /1,194 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.00ms] Passed 4 tests

Analyzing server-side resources used by Admin login template
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.88 ▼1.80
Dashboard /wp-admin3.34 ▲0.0354.19 ▼0.24
Posts /wp-admin/edit.php3.43 ▲0.0751.73 ▲2.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.17 ▼12.09
Media Library /wp-admin/upload.php3.24 ▲0.0135.92 ▼1.85

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Admin login template
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19314.54 ▲0.141.75 ▼0.3144.77 ▲2.11
Dashboard /wp-admin2,352 ▲1846.17 ▲0.65113.26 ▲11.7840.39 ▼3.91
Posts /wp-admin/edit.php2,284 ▲1813.33 ▲1.3552.68 ▲17.9533.28 ▼1.68
Add New Post /wp-admin/post-new.php1,546 ▲1823.22 ▲0.18652.32 ▼24.4337.42 ▼33.38
Media Library /wp-admin/upload.php1,420 ▲234.19 ▲0.0282.81 ▼23.8343.61 ▼3.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: login form, login, wp login template, wordpress login, wordpress admin template...

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

The main PHP file in "Admin login template" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

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
There were no executable files found in this plugin661 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS3132368
PHP27313265
JavaScript110028

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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
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%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin