88% simple-login-screen-customizer

Code Review | Simple Login Screen Customizer

WordPress plugin Simple Login Screen Customizer scored 88% from 54 tests.

About plugin

  • Plugin page: simple-login-scre...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-4.4
  • WordPress version: 5.8.1
  • First release: Dec 31, 2013
  • Latest release: Nov 19, 2015
  • Number of updates: 20
  • Update frequency: every 34.5 days
  • Top authors: firewatch (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,226 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼146.11ms] Passed 4 tests

Analyzing server-side resources used by Simple Login Screen Customizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1739.02 ▲15.53
Dashboard /wp-admin3.12 ▲0.0649.24 ▼5.84
Posts /wp-admin/edit.php3.20 ▲0.1053.17 ▼2.84
Add New Post /wp-admin/post-new.php5.48 ▲0.04101.50 ▼574.56
Media Library /wp-admin/upload.php3.06 ▲0.0638.67 ▼1.19
Login Screen /wp-admin/options-general.php?page=simpleloginscreencustomizer_plugin_options3.0637.63

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
simpleloginscreencustomizer_plugin_display_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Login Screen Customizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,711 ▲13915.85 ▲0.4615.20 ▲1.8652.21 ▼1.46
Dashboard /wp-admin2,972 ▲405.91 ▼0.01153.32 ▼32.69121.71 ▲4.71
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0180.59 ▲0.8792.75 ▼3.86
Add New Post /wp-admin/post-new.php1,686 ▲10518.56 ▼0.40452.51 ▲29.27121.27 ▲1.30
Media Library /wp-admin/upload.php1,753 ▼545.00 ▼0.03166.10 ▲2.42120.55 ▼11.43
Login Screen /wp-admin/options-general.php?page=simpleloginscreencustomizer_plugin_options1,9674.64127.59101.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=simpleloginscreencustomizer_plugin_options
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=simpleloginscreencustomizer_plugin_options
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simpleloginscreencustomizer_plugin_options
    • > Notice in wp-content/plugins/simple-login-screen-customizer/simple-login-screen-customizer-admin.php+140
    Trying to access array offset on value of type null

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-login-screen-customizer/simple-login-screen-customizer-admin.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-login-screen-customizer/simple-login-screen-customizer-public.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/simple-login-screen-customizer/views/admin.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: custom colors, login screen, logo, customize, login...

simple-login-screen-customizer/simple-login-screen-customizer.php 92% from 13 tests

The entry point to "Simple Login Screen Customizer" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin405 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP675102329
PO File1141445
JavaScript28431

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions22
▷ Named functions22100.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
There were not PNG files found in your plugin