10% custom-password-encryption

Code Review | Custom password encryption

WordPress plugin Custom password encryption scored10%from 54 tests.

About plugin

  • Plugin page: custom-password-e...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 17, 2013
  • Latest release: Feb 1, 2014
  • Number of updates: 3
  • Update frequency: every 107.7 days
  • Top authors: marchfeld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,008 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/custom-password-encryption/custom_password_encryption.php+75
    syntax error, unexpected end of file

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

Analyzing server-side resources used by Custom password encryption
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.87 ▲0.48
Dashboard /wp-admin3.31 ▲0.0046.64 ▼0.54
Posts /wp-admin/edit.php3.36 ▲0.0041.82 ▼5.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.80 ▼3.84
Media Library /wp-admin/upload.php3.23 ▲0.0038.10 ▲2.36

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Custom password encryption
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.171.72 ▼0.0543.64 ▼0.93
Dashboard /wp-admin2,209 ▲214.88 ▼0.00110.84 ▼4.1842.67 ▼0.69
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0334.88 ▼1.3932.91 ▼1.77
Add New Post /wp-admin/post-new.php1,533 ▼323.47 ▲0.37678.70 ▼8.6664.22 ▲7.14
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0196.43 ▼11.7040.98 ▼6.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/custom-password-encryption/custom_password_encryption.php on line 75

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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, password, encryption, users

custom-password-encryption/custom_password_encryption.php 92% from 13 tests

The main PHP script in "Custom password encryption" version 0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-password-encryption.php" instead of "custom_password_encryption.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP119848
PO File16626

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin