73% ms-custom-login

Code Review | MS Custom Login

WordPress plugin MS Custom Login scored 73% from 54 tests.

About plugin

  • Plugin page: ms-custom-login
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Jul 3, 2017
  • Number of updates: 25
  • Update frequency: every 39.1 days
  • Top authors: mignonstyle (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 30,974 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▲0.04ms] Passed 4 tests

A check of server-side resources used by MS Custom Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.91 ▲0.40
Dashboard /wp-admin3.55 ▲0.2447.35 ▼5.68
Posts /wp-admin/edit.php3.66 ▲0.3047.32 ▲1.03
Add New Post /wp-admin/post-new.php6.13 ▲0.2493.75 ▲4.41
Media Library /wp-admin/upload.php3.47 ▲0.2439.72 ▲7.28
MS Custom Login /wp-admin/options-general.php?page=ms-custom-login3.4737.21

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for MS Custom Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.76 ▲0.181.83 ▼0.1543.92 ▼4.52
Dashboard /wp-admin2,207 ▲195.83 ▲0.9694.91 ▼21.5639.95 ▼5.17
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0133.35 ▼9.6035.75 ▲0.15
Add New Post /wp-admin/post-new.php1,545 ▲1718.11 ▼4.96595.48 ▼45.4263.42 ▲6.56
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0897.17 ▼6.6642.80 ▼2.36
MS Custom Login /wp-admin/options-general.php?page=ms-custom-login3,6715.28139.4357.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% 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=ms-custom-login
    • > User deprecated in wp-includes/functions.php+5828
    Hook login_headertitle is deprecated since version 5.2.0! Use login_headertext instead. Usage of the title attribute on the login logo is not recommended for accessibility reasons. Use the link text instead.

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ms-custom-login/ms-custom-login.php:36

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ms-custom-login
    • > Security (severe) in unknown
    /wp-login.php - Blocked script execution in '/wp-login.php' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Very easy and simple UI.), #2 (You can have this much of customization. Create one and only login page.), #3 (This plugin includes a special edition for users of WordPress Theme "Chocolat".)
The official readme.txt might help

ms-custom-login/ms-custom-login.php Passed 13 tests

"MS Custom Login" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Customize login page of your WordPress with images, colors and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9,344 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript68271,0027,090
PHP22232491,388
CSS312978586
PO File1116127280

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
8 compressed PNG files occupy 0.40MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png10.76KB11.14KB0.00%
inc/mcl-chocolat/img/bg-footer.png0.78KB0.79KB0.00%
screenshot-2.png289.13KB318.31KB0.00%
screenshot-1.png94.93KB97.12KB0.00%
inc/mcl-chocolat/img/bg_body.png0.12KB0.12KB0.00%