78% edit-login

Code Review | Edit Login

WordPress plugin Edit Login scored78%from 54 tests.

About plugin

  • Plugin page: edit-login
  • Plugin version: 1.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Jun 7, 2013
  • Latest release: Dec 12, 2018
  • Number of updates: 80
  • Update frequency: every 25.2 days
  • Top authors: timeoutworldnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Edit Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.03 ▼1.84
Dashboard /wp-admin3.34 ▼0.0145.52 ▼17.66
Posts /wp-admin/edit.php3.39 ▲0.0349.57 ▲0.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.49 ▼21.09
Media Library /wp-admin/upload.php3.26 ▲0.0336.36 ▲1.97
Edit Login /wp-admin/options-general.php?page=editlogin-options-page3.2334.14

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options
editLogin_login_custom_font
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
editLogin_login_logo_image
widget_recent-comments
db_upgraded
editLogin_login_bg_image
theysaidso_admin_options
editLogin_login_logo_url

Browser metrics Passed 4 tests

This is an overview of browser requirements for Edit Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.65 ▲0.281.73 ▼0.0740.77 ▼0.34
Dashboard /wp-admin2,196 ▲185.51 ▼0.1888.55 ▼9.0042.06 ▼3.25
Posts /wp-admin/edit.php2,107 ▲72.12 ▲0.1638.20 ▲3.6235.54 ▲1.42
Add New Post /wp-admin/post-new.php1,541 ▲1323.02 ▼0.00680.78 ▲7.8753.59 ▲0.23
Media Library /wp-admin/upload.php1,398 ▲44.23 ▲0.0496.67 ▼1.8040.68 ▼1.77
Edit Login /wp-admin/options-general.php?page=editlogin-options-page9342.1627.0127.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 10 options
    • editLogin_login_bg_image
    • widget_recent-comments
    • can_compress_scripts
    • editLogin_login_custom_font
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • editLogin_login_logo_image
    • editLogin_login_logo_url

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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× 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/edit-login/editLogin.php:185

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=editlogin-options-page
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugins_url(%27sample.jpg%27%20,%20__FILE__%20);%20?%3E - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 ([Plugin setting])
The official readme.txt might help

edit-login/editLogin.php 85% from 13 tests

The main PHP file in "Edit Login" ver. 1.9.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("edit-login.php" instead of "editLogin.php")

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
Good job! No executable or dangerous file extensions detected398 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP61644238
PO File44552160

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png84.94KB32.96KB▼ 61.20%