84% my-wp-login

Code Review | My WP Login

WordPress plugin My WP Login scored84%from 54 tests.

About plugin

  • Plugin page: my-wp-login
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2018
  • Latest release: May 11, 2020
  • Number of updates: 8
  • Update frequency: every 76.6 days
  • Top authors: ergest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.40ms] Passed 4 tests

This is a short check of server-side resources used by My WP Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.68 ▲1.39
Dashboard /wp-admin3.45 ▲0.1554.64 ▼0.30
Posts /wp-admin/edit.php3.56 ▲0.2052.87 ▲0.10
Add New Post /wp-admin/post-new.php6.02 ▲0.1499.08 ▼1.76
Media Library /wp-admin/upload.php3.35 ▲0.1237.84 ▼3.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by My WP Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,998 ▲23714.72 ▲0.501.89 ▲0.1945.64 ▲0.13
Dashboard /wp-admin2,374 ▲1976.33 ▲0.76107.71 ▲20.8642.83 ▲1.76
Posts /wp-admin/edit.php2,299 ▲1963.58 ▲1.5647.37 ▲6.8838.39 ▲0.87
Add New Post /wp-admin/post-new.php1,560 ▲3423.87 ▲1.07614.98 ▼49.7734.04 ▼26.74
Media Library /wp-admin/upload.php1,442 ▲424.32 ▲0.1588.04 ▼23.9341.80 ▼4.52

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/my-wp-login/mywplogin.php
    • > /wp-content/plugins/my-wp-login/admin/settings-validate.php
    • > /wp-content/plugins/my-wp-login/admin/register-settings.php
    • > /wp-content/plugins/my-wp-login/admin/admin-menu.php
    • > /wp-content/plugins/my-wp-login/admin/settings-page.php
    • > /wp-content/plugins/my-wp-login/includes/core.php
    • > /wp-content/plugins/my-wp-login/admin/settings-callbacks.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wp login page, custom login page, custom login logo, login logo, change login logo

my-wp-login/mywplogin.php 85% from 13 tests

Analyzing the main PHP file in "My WP Login" version 1.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("my-wp-login.php" instead of "mywplogin.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin684 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7102142600
CSS23051
JavaScript32332
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin