84% wp-bcrypt

Code Review | wp-bcrypt

WordPress plugin wp-bcrypt scored 84% from 54 tests.

About plugin

  • Plugin page: wp-bcrypt
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2014
  • Latest release: Jun 5, 2014
  • Number of updates: 9
  • Update frequency: every 52.6 days
  • Top authors: harrym (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 11,035 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by wp-bcrypt
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.55 ▼4.03
Dashboard /wp-admin3.31 ▲0.0165.23 ▲19.89
Posts /wp-admin/edit.php3.36 ▲0.0043.66 ▼0.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.80 ▼14.01
Media Library /wp-admin/upload.php3.23 ▲0.0034.71 ▲0.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for wp-bcrypt
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.841.78 ▲0.0446.28 ▼0.91
Dashboard /wp-admin2,206 ▲544.85 ▼0.84158.46 ▲60.8667.15 ▲25.30
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0635.97 ▼0.7028.67 ▼6.34
Add New Post /wp-admin/post-new.php1,520 ▼1023.43 ▲5.10691.68 ▲92.0565.23 ▲9.69
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.1098.26 ▼0.2842.45 ▼1.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/class-phpass.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bcrypt/wp-bcrypt.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-bcrypt/wp-bcrypt.php on line 14
    • > PHP Warning
      require_once(ABSPATHwp-includes/class-phpass.php): failed to open stream: No such file or directory in wp-content/plugins/wp-bcrypt/wp-bcrypt.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-bcrypt === )
The official readme.txt might help

wp-bcrypt/wp-bcrypt.php Passed 13 tests

The main PHP file in "wp-bcrypt" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
wp-bcrypt switches WordPress's password hashes from MD5 to bcrypt, making it harder for them to be brute-forced if they are leaked.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101624

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin