88% secure-admin-login-with-customize

Code Review | Secure Admin Login With Customize

WordPress plugin Secure Admin Login With Customize scored 88% from 54 tests.

About plugin

  • Plugin page: secure-admin-logi...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0
  • WordPress version: 5.8.1
  • First release: Nov 20, 2017
  • Latest release: Dec 20, 2018
  • Number of updates: 13
  • Update frequency: every 30.5 days
  • Top authors: dilipbheda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 933 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼137.60ms] Passed 4 tests

Server-side resources used by Secure Admin Login With Customize
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.1237.81 ▲2.96
Dashboard /wp-admin3.18 ▲0.1250.71 ▲8.20
Posts /wp-admin/edit.php3.29 ▲0.1845.69 ▲4.46
Add New Post /wp-admin/post-new.php5.54 ▲0.1092.63 ▼560.82
Media Library /wp-admin/upload.php3.12 ▲0.1235.11 ▲3.01

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Secure Admin Login With Customize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,680 ▲8416.35 ▲0.709.40 ▲0.1247.52 ▼1.48
Dashboard /wp-admin2,995 ▲645.93 ▼0.04135.61 ▼9.52120.85 ▲4.30
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0167.09 ▼0.6196.10 ▲7.32
Add New Post /wp-admin/post-new.php1,606 ▼6618.85 ▼0.22384.39 ▼11.24103.81 ▼3.15
Media Library /wp-admin/upload.php1,807 ▼35.02 ▼0.02142.22 ▼16.34115.86 ▼3.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/secure-admin-login-with-customize/admin/css/secure-admin-login-with-customize.php
    • > /wp-content/plugins/secure-admin-login-with-customize/admin/class-secure-admin-login-with-customize.php
    • > /wp-content/plugins/secure-admin-login-with-customize/admin/captcha/secure-admin-login-with-customize-captcha.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/secure-admin-login-with-customize/secure-admin-login-with-customize.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/secure-admin-login-with-customize/admin/captcha/class-secure-admin-login-with-customize-captcha.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/secure-admin-login-with-customize/admin/customizer/class-secure-admin-login-with-customize-customizer.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3 in secure-admin-login-with-customize/assets to your readme.txt
Please take inspiration from this readme.txt

secure-admin-login-with-customize/secure-admin-login-with-customize.php Passed 13 tests

The main file in "Secure Admin Login With Customize" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This plugin allows you to customize your WordPress admin login page within WordPress customizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,328 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP61201281,056
PO File2118154272

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/reload.png4.42KB2.44KB▼ 44.76%