89% hideshowpassword

Code Review | hideShowPassword

WordPress plugin hideShowPassword scored89%from 54 tests.

About plugin

  • Plugin page: hideshowpassword
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Nov 6, 2013
  • Latest release: Jul 12, 2018
  • Number of updates: 52
  • Update frequency: every 32.9 days
  • Top authors: barryceelen (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /9,538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.15ms] Passed 4 tests

A check of server-side resources used by hideShowPassword
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0349.09 ▲6.97
Dashboard /wp-admin3.34 ▲0.0448.20 ▲1.78
Posts /wp-admin/edit.php3.39 ▲0.0446.80 ▼0.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.17 ▼22.40
Media Library /wp-admin/upload.php3.26 ▲0.0434.91 ▲0.42

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

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

Browser metrics Passed 4 tests

hideShowPassword: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.29 ▼1.091.99 ▲0.1842.99 ▼0.75
Dashboard /wp-admin2,206 ▲185.77 ▼0.1594.02 ▼7.4438.11 ▼5.27
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0237.52 ▼1.7231.97 ▼5.82
Add New Post /wp-admin/post-new.php1,514 ▼017.67 ▲0.08688.73 ▲28.5855.09 ▼6.69
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.09102.18 ▲3.9043.25 ▼2.89

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

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

hideshowpassword/hide-show-password.php 92% from 13 tests

The entry point to "hideShowPassword" version 2.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hideshowpassword.php" instead of "hide-show-password.php")

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
Success! There were no dangerous files found in this plugin766 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33665370
PHP432113121
CSS3177112
PO File2222282
SVG10071
Markdown15010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin