84% do-not-display-my-password

Code Review | Do not display my password

WordPress plugin Do not display my password scored84%from 54 tests.

About plugin

  • Plugin page: do-not-display-my...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2020
  • Latest release: Feb 11, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: tomek00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /435 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Do not display my password
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0032.65 ▼7.87
Dashboard /wp-admin3.31 ▼0.0443.41 ▼21.90
Posts /wp-admin/edit.php3.36 ▲0.0038.81 ▼0.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.77 ▼31.54
Media Library /wp-admin/upload.php3.24 ▲0.0032.97 ▼2.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Do not display my password
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.22 ▼1.084.33 ▲2.6338.58 ▼5.40
Dashboard /wp-admin2,206 ▲184.85 ▼1.00113.57 ▲3.2643.75 ▲3.00
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0836.19 ▼1.3729.37 ▼4.81
Add New Post /wp-admin/post-new.php1,542 ▲1418.68 ▲0.24632.45 ▲17.1575.18 ▲16.20
Media Library /wp-admin/upload.php1,382 ▼04.19 ▲0.0599.76 ▼2.3541.36 ▼1.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/do-not-display-my-password/no-show-password.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: form, login, password, wp-login

do-not-display-my-password/no-show-password.php 92% from 13 tests

Analyzing the main PHP file in "Do not display my password" version 1.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("do-not-display-my-password.php" instead of "no-show-password.php")

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

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in 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%
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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.20KB13.87KB▼ 55.54%