72% login-page-editor

Code Review | Login Page Editor

WordPress plugin Login Page Editor scored 72% from 54 tests.

About plugin

  • Plugin page: login-page-editor
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 25, 2022
  • Latest release: Jul 22, 2023
  • Number of updates: 8
  • Update frequency: every 53.0 days
  • Top authors: zero1zerouk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 469 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
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲1.92ms] Passed 4 tests

Server-side resources used by Login Page Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.79 ▼2.52
Dashboard /wp-admin3.49 ▲0.1953.01 ▲3.82
Posts /wp-admin/edit.php3.61 ▲0.2560.55 ▲11.36
Add New Post /wp-admin/post-new.php6.07 ▲0.1889.51 ▼0.63
Media Library /wp-admin/upload.php3.39 ▲0.1640.07 ▲7.00
Login Page Editor /wp-admin/options-general.php?page=login-page-editor3.4334.41

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Login Page Editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,156 ▲39933.96 ▲19.341.60 ▼0.4638.91 ▼13.35
Dashboard /wp-admin2,559 ▲37127.67 ▲22.79224.24 ▲109.4846.84 ▼2.17
Posts /wp-admin/edit.php2,429 ▲34324.02 ▲21.89132.36 ▲97.0133.49 ▼1.68
Add New Post /wp-admin/post-new.php6,633 ▲5,11445.33 ▲21.98937.32 ▲270.4734.69 ▼18.26
Media Library /wp-admin/upload.php1,635 ▲24725.05 ▲20.84173.37 ▲75.6647.74 ▲0.83
Login Page Editor /wp-admin/options-general.php?page=login-page-editor2,38820.74252.8886.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/render/partial/login-preview.php+59
    Undefined variable: formpadding
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+338
    Undefined index: preview
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+356
    Undefined variable: default
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+305
    Undefined index: parent
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+395
    Undefined index: required
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+245
    Undefined index: status
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+264
    Undefined index: live
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-editor
    • > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+306
    Undefined index: parentValue

SRP 0% 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 items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/login-page-editor/includes/footer.php
    • > /wp-content/plugins/login-page-editor/login-page-editor.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-editor/includes/menus.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-editor/includes/scripts.php:14
    • > PHP Fatal error
      Uncaught Error: Call to a member function previewOpts() on null in wp-content/plugins/login-page-editor/render/partial/login-preview.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/login-page-editor/includes/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/login-page-editor/includes/vars.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-editor/class/devotion.core.class.php:10
    • > PHP Notice
      Undefined variable: dv in wp-content/plugins/login-page-editor/render/partial/login-preview.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

login-page-editor/login-page-editor.php 92% from 13 tests

The main PHP file in "Login Page Editor" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 261 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
Success! There were no dangerous files found in this plugin3,932 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
Sass34401,250
CSS241491,225
PHP1367281,127
JavaScript4139274
SVG10056

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity27.67
▷ Minimum class complexity5.00
▷ Maximum class complexity67.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/ecologi-logo.png22.72KB10.79KB▼ 52.50%
assets/img/devotion-wplogin-trans.png17.62KB7.24KB▼ 58.92%
assets/img/w-logo-blue.png3.04KB3.09KB0.00%