90% encrypt-my-login-password

Code Review | Encrypt My Login Password

WordPress plugin Encrypt My Login Password scored90%from 54 tests.

About plugin

  • Plugin page: encrypt-my-login-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Oct 23, 2021
  • Latest release: Oct 23, 2021
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: himansu1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 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
Installer ran successfully

Server metrics [RAM: ▼0.27MB] [CPU: ▼14.51ms] Passed 4 tests

Analyzing server-side resources used by Encrypt My Login Password
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.67 ▼39.29
Dashboard /wp-admin3.44 ▲0.1452.52 ▼7.37
Posts /wp-admin/edit.php3.55 ▲0.2052.20 ▲0.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.66 ▼12.13
Media Library /wp-admin/upload.php3.36 ▲0.1341.36 ▲4.86

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Encrypt My Login Password
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,754 ▼1714.64 ▲0.273.63 ▲1.7143.75 ▼0.74
Dashboard /wp-admin2,218 ▲305.47 ▼0.55108.27 ▼14.0538.70 ▼5.22
Posts /wp-admin/edit.php2,102 ▲132.18 ▲0.1036.27 ▼5.5430.73 ▼4.78
Add New Post /wp-admin/post-new.php1,523 ▲922.83 ▲5.35702.65 ▲13.9937.61 ▼22.42
Media Library /wp-admin/upload.php1,397 ▲94.70 ▲0.51109.08 ▲1.7046.67 ▲1.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

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 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: privacy, security, admin, sha, crypt...

encrypt-my-login-password/encryptloginpassword.php 92% from 13 tests

The main PHP script in "Encrypt My Login Password" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("encrypt-my-login-password.php" instead of "encryptloginpassword.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25784141
JavaScript2234146

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods125.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected