84% enscrypt

Code Review | Enscrypt

WordPress plugin Enscrypt scored 84% from 54 tests.

About plugin

  • Plugin page: enscrypt
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.1
  • WordPress version: 6.3.1
  • First release: May 27, 2015
  • Latest release: May 27, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: faazshift (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Enscrypt
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.06 ▼6.12
Dashboard /wp-admin3.32 ▲0.0250.91 ▲1.60
Posts /wp-admin/edit.php3.37 ▲0.0246.52 ▲1.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.30 ▲1.48
Media Library /wp-admin/upload.php3.24 ▲0.0234.74 ▲5.23

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Enscrypt
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.26 ▼1.361.88 ▼0.0338.56 ▼8.39
Dashboard /wp-admin2,209 ▲244.85 ▼0.0496.46 ▼10.2739.82 ▼2.10
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0536.65 ▲2.9434.67 ▼1.70
Add New Post /wp-admin/post-new.php1,547 ▲2723.24 ▲0.02644.47 ▼8.6651.38 ▼3.74
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0297.77 ▼4.4543.89 ▲2.24

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/enscrypt/enscrypt.php:109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: auth, login, hash, authentication

enscrypt/enscrypt.php Passed 13 tests

"Enscrypt" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Seemless authentication implementation using scrypt as its primary underlying hashing algorithm.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182682

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
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
No PNG images were found in this plugin