88% login-tweaks

Code Review | Login Tweaks by Next Page

WordPress plugin Login Tweaks by Next Page scored 88% from 54 tests.

About plugin

  • Plugin page: login-tweaks
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 28, 2014
  • Latest release: Feb 28, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: sajidhussain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 580 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.02MB] [CPU: ▼139.41ms] Passed 4 tests

A check of server-side resources used by Login Tweaks by Next Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.24 ▲13.49
Dashboard /wp-admin3.08 ▲0.0239.08 ▼8.08
Posts /wp-admin/edit.php3.13 ▲0.0245.44 ▼4.60
Add New Post /wp-admin/post-new.php5.44 ▲0.00123.76 ▼545.03
Media Library /wp-admin/upload.php3.02 ▲0.0235.32 ▲0.08
Login Tweaks /wp-admin/options-general.php?page=NP_login2.9925.53

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Login Tweaks by Next Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.82 ▲0.218.18 ▼4.3352.17 ▲0.21
Dashboard /wp-admin2,978 ▲446.09 ▲0.18145.12 ▼0.71116.80 ▼6.94
Posts /wp-admin/edit.php2,744 ▲52.82 ▲0.1482.09 ▲7.49135.60 ▲39.96
Add New Post /wp-admin/post-new.php1,602 ▼8118.84 ▼0.00427.53 ▲42.38118.06 ▲6.29
Media Library /wp-admin/upload.php1,815 ▼75.02 ▲0.03161.19 ▼3.10129.42 ▲2.15
Login Tweaks /wp-admin/options-general.php?page=NP_login1,2092.1067.1085.05

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
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/login-tweaks/instructions.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/login-tweaks/np_registeration.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-tweaks/login-tweaks.php:87

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The new log-in screen.) image missing
The official readme.txt is a good inspiration

login-tweaks/login-tweaks.php Passed 13 tests

The primary PHP file in "Login Tweaks by Next Page" version 1.0 is used by WordPress to initiate all plugin functionality
136 characters long description:
This plugin will allow you to login into admin using username/email. You can use both username and email to login to worpdress dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37115163

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.46KB8.96KB▼ 72.41%