84% drupal-password-encryption

Code Review | Drupal Password Encryption

WordPress plugin Drupal Password Encryption scored84%from 54 tests.

About plugin

  • Plugin page: drupal-password-e...
  • Plugin version: trunk...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: Mar 26, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: BevanR (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /1,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Drupal Password Encryption
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.52 ▼2.03
Dashboard /wp-admin3.34 ▼0.0145.68 ▼18.92
Posts /wp-admin/edit.php3.39 ▲0.0346.56 ▼2.24
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.39 ▼5.78
Media Library /wp-admin/upload.php3.26 ▲0.0335.19 ▲1.38

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Drupal Password Encryption: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.65 ▲0.291.89 ▲0.1936.54 ▼7.26
Dashboard /wp-admin2,198 ▲235.57 ▼0.1591.59 ▼26.8240.90 ▼4.48
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0639.07 ▼1.5137.99 ▲6.85
Add New Post /wp-admin/post-new.php1,526 ▼123.27 ▲0.22603.75 ▼86.1447.96 ▼13.19
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0594.84 ▼2.4640.90 ▼1.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
Even though no errors were found, 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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/drupal-password-encryption/test/auth.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/drupal-password-encryption/test/auth.php:7

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 93% 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
6 plugin tags: password, migration, drupal, import, security...

drupal-password-encryption/drupal-password-encryption.php 85% from 13 tests

"Drupal Password Encryption" version trunk...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 151 characters long)
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "trunk...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin404 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP567147194
Pascal12185185
YAML191523
Markdown1102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin