83% most-wanted-login-page-styler

Code Review | MOST_WANTED Login Page Styler

WordPress plugin MOST_WANTED Login Page Styler scored 83% from 54 tests.

About plugin

  • Plugin page: most-wanted-login...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 29, 2021
  • Latest release: May 29, 2021
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: mostwanted_sl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 288 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.05MB] [CPU: ▲0.61ms] Passed 4 tests

This is a short check of server-side resources used by MOST_WANTED Login Page Styler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.27 ▲0.86
Dashboard /wp-admin3.37 ▲0.0655.74 ▲2.33
Posts /wp-admin/edit.php3.42 ▲0.0658.83 ▲4.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.87 ▼3.71
Media Library /wp-admin/upload.php3.29 ▲0.0642.63 ▲2.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
yvk_login_styler_installDate
can_compress_scripts

Browser metrics Passed 4 tests

MOST_WANTED Login Page Styler: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲813.55 ▲0.311.68 ▼0.3644.13 ▼2.71
Dashboard /wp-admin2,226 ▲205.84 ▼0.05106.16 ▲3.2372.03 ▲31.86
Posts /wp-admin/edit.php2,105 ▲191.99 ▼0.0635.84 ▼0.6935.93 ▲3.25
Add New Post /wp-admin/post-new.php1,538 ▲521.15 ▼1.93730.88 ▲53.6464.29 ▲2.03
Media Library /wp-admin/upload.php1,405 ▲174.25 ▲0.09100.29 ▼7.4556.97 ▲12.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • yvk_login_styler_installDate
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× 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/most-wanted-login-page-styler/includes/login-functions.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Requires php: Version format is invalid
The official readme.txt might help

most-wanted-login-page-styler/plugin.php 85% from 13 tests

"MOST_WANTED Login Page Styler" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("most-wanted-login-page-styler.php" instead of "plugin.php")

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
Good job! No executable or dangerous file extensions detected494 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP558103416
CSS116078

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/yvk-logo-small.png1.61KB0.88KB▼ 45.41%