84% custom-login-error-message

Code Review | Custom Login Error Message

WordPress plugin Custom Login Error Message scored 84% from 54 tests.

About plugin

  • Plugin page: custom-login-erro...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2016
  • Latest release: Jan 23, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: muhammadumer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 1,476 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.00ms] Passed 4 tests

Analyzing server-side resources used by Custom Login Error Message
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.58 ▼2.95
Dashboard /wp-admin3.32 ▲0.0161.82 ▲4.93
Posts /wp-admin/edit.php3.37 ▲0.0152.57 ▲2.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.80 ▼10.99
Media Library /wp-admin/upload.php3.24 ▲0.0138.56 ▼0.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Login Error Message
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲2714.74 ▲1.531.77 ▼0.1846.69 ▲0.07
Dashboard /wp-admin2,222 ▲164.88 ▲0.0499.46 ▼16.1636.98 ▼5.67
Posts /wp-admin/edit.php2,108 ▲222.06 ▼0.0934.76 ▼5.9333.97 ▲0.09
Add New Post /wp-admin/post-new.php1,550 ▲823.19 ▲5.02656.22 ▼23.1155.13 ▲9.18
Media Library /wp-admin/upload.php1,407 ▲164.22 ▲0.0196.59 ▼10.3342.30 ▼2.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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 | 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-login-error-message/custom-login-error-message.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: error message, message, login

custom-login-error-message/custom-login-error-message.php Passed 13 tests

This is the main PHP file of "Custom Login Error Message" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
This plugin shows a custom error message of your choice to users when they enter invalid username or password.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111832

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin