84% hide-login-errors

Code Review | Hide Login Errors

WordPress plugin Hide Login Errors scored 84% from 54 tests.

About plugin

  • Plugin page: hide-login-errors
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2019
  • Latest release: Apr 18, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: amyjoy2020 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 525 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.68ms] Passed 4 tests

A check of server-side resources used by Hide Login Errors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.02 ▼7.77
Dashboard /wp-admin3.31 ▲0.0045.00 ▼1.41
Posts /wp-admin/edit.php3.36 ▲0.0045.92 ▲5.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.20 ▼6.76
Media Library /wp-admin/upload.php3.23 ▲0.0036.27 ▲1.21

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hide Login Errors
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.034.31 ▲2.0639.16 ▲1.43
Dashboard /wp-admin2,203 ▲185.82 ▲0.83104.88 ▼12.4338.97 ▼6.72
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.1438.63 ▲2.7734.81 ▲4.19
Add New Post /wp-admin/post-new.php1,537 ▼023.23 ▲4.96672.56 ▲19.3364.37 ▲7.00
Media Library /wp-admin/upload.php1,382 ▼64.11 ▼0.1496.70 ▼0.6141.34 ▼3.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hide-login-errors/hide-login-errors.php:14

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: login, username, password, error

hide-login-errors/hide-login-errors.php Passed 13 tests

The entry point to "Hide Login Errors" version 1.0.0 is a PHP file that has certain tags in its header comment area
67 characters long description:
A simple plugin that will hide WordPress login errors from hackers.

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
No dangerous file extensions were detected6 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP20106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin