100% wp-modern-password-hashing

Code Review | WP Modern Password Hashing

WordPress plugin WP Modern Password Hashing scored 100% from 54 tests.

About plugin

  • Plugin page: wp-modern-passwor...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.9.8
  • WordPress version: 5.9.2
  • First release: Oct 1, 2018
  • Latest release: Oct 3, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: michaelrhmw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 567 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼289.39ms] Passed 4 tests

Server-side resources used by WP Modern Password Hashing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.75 ▼43.62
Dashboard /wp-admin3.41 ▲0.0141.15 ▲4.35
Posts /wp-admin/edit.php3.65 ▲0.0153.01 ▲12.68
Add New Post /wp-admin/post-new.php6.88 ▼0.09166.05 ▼1,123.34
Media Library /wp-admin/upload.php3.30 ▲0.0029.94 ▲5.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Modern Password Hashing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.80 ▲0.376.41 ▲0.812.12 ▼0.34
Dashboard /wp-admin2,895 ▲426.13 ▲0.05120.12 ▼4.29160.36 ▼1.07
Posts /wp-admin/edit.php2,691 ▼33.25 ▲0.0172.28 ▲11.28176.80 ▲37.03
Add New Post /wp-admin/post-new.php1,690 ▲2920.87 ▲4.91464.88 ▲38.38176.35 ▼8.53
Media Library /wp-admin/upload.php1,692 ▼35.55 ▼0.05130.77 ▼19.93246.29 ▲41.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: argon2, hash, bcrypt, phpass, authentication...

wp-modern-password-hashing/wp-modern-password-hashing.php Passed 13 tests

The main PHP script in "WP Modern Password Hashing" version 1.0.1 is automatically included on every request by WordPress
119 characters long description:
Forces user password hashes as generated by WordPress to be more modern/secure, Inspired by 'Password bcrypt' by Roots.

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
There were no executable files found in this plugin105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP124126105

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin