88% login-page-style

Code Review | Login page style

WordPress plugin Login page style scored 88% from 54 tests.

About plugin

  • Plugin page: login-page-style
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.2
  • WordPress version: 5.8.1
  • First release: Jul 29, 2013
  • Latest release: Jul 29, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: osmansorkar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,527 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Login page style
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0240.15 ▲3.25
Dashboard /wp-admin3.08 ▲0.0345.67 ▼11.11
Posts /wp-admin/edit.php3.13 ▲0.0353.81 ▼2.60
Add New Post /wp-admin/post-new.php5.44 ▲0.01100.12 ▼566.65
Media Library /wp-admin/upload.php3.02 ▲0.0238.36 ▲8.56
Login page Plugin /wp-admin/options-general.php?page=login_page_style2.9733.42

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Login page style
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11316.25 ▲0.2412.04 ▼0.9753.67 ▲0.04
Dashboard /wp-admin2,981 ▲475.99 ▼0.21160.36 ▼6.81118.69 ▼2.92
Posts /wp-admin/edit.php2,769 ▲302.76 ▲0.0670.19 ▼4.7490.90 ▼10.15
Add New Post /wp-admin/post-new.php1,626 ▼5721.47 ▲2.67320.55 ▼129.97120.28 ▼3.24
Media Library /wp-admin/upload.php1,831 ▲245.12 ▲0.08165.43 ▲4.43122.08 ▲2.95
Login page Plugin /wp-admin/options-general.php?page=login_page_style1,1402.3867.1679.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=login_page_style
    • > 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=login_page_style
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-style/loginpagestyle.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: costomazie lgoin page, style, login page, style login page, page...

login-page-style/loginpagestyle.php 92% from 13 tests

The main PHP file in "Login page style" ver. 0.01 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("login-page-style.php" instead of "loginpagestyle.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected171 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11314171

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin