84% disableremove-login-hints

Code Review | Disable/Remove Login Hints

WordPress plugin Disable/Remove Login Hints scored84%from 54 tests.

About plugin

  • Plugin page: disableremove-log...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2020
  • Latest release: Jul 23, 2020
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: ubaidullahop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /369 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.01MB] [CPU: ▼3.40ms] Passed 4 tests

Analyzing server-side resources used by Disable/Remove Login Hints
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.72 ▼2.21
Dashboard /wp-admin3.32 ▲0.0148.18 ▼2.48
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▼2.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.25 ▼6.81
Media Library /wp-admin/upload.php3.24 ▲0.0135.50 ▼0.71

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable/Remove Login Hints
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.60 ▼0.985.49 ▲3.4441.20 ▼14.11
Dashboard /wp-admin2,222 ▲315.88 ▲0.95101.55 ▼4.6740.44 ▼4.77
Posts /wp-admin/edit.php2,087 ▲12.02 ▼0.1137.93 ▲2.9534.90 ▲1.21
Add New Post /wp-admin/post-new.php1,527 ▼617.72 ▼5.34668.25 ▲12.9153.83 ▼3.07
Media Library /wp-admin/upload.php1,407 ▲194.21 ▼0.04102.35 ▼4.1043.25 ▲1.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disableremove-login-hints/includes/admin-options.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: security, custom error message, error message, remove login hints, login hints...

disableremove-login-hints/disableremove-login-hints.php 92% from 13 tests

The main PHP script in "Disable/Remove Login Hints" version 0.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected47 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP261747

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin