84% wp-form-encryption

Code Review | WP Form Encryption

WordPress plugin WP Form Encryption scored84%from 54 tests.

About plugin

  • Plugin page: wp-form-encryption
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1+
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: Jul 10, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Subhransu Sekhar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /850 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
This plugin's installer ran successfully

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

Server-side resources used by WP Form Encryption
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0251.72 ▲3.94
Dashboard /wp-admin3.33 ▲0.0356.78 ▲2.25
Posts /wp-admin/edit.php3.38 ▲0.0251.83 ▲1.77
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.33 ▼9.89
Media Library /wp-admin/upload.php3.25 ▲0.0238.82 ▲4.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Form Encryption
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.35 ▼0.373.20 ▲1.4446.35 ▲1.63
Dashboard /wp-admin2,196 ▲195.64 ▲0.0684.79 ▼18.1537.82 ▼5.44
Posts /wp-admin/edit.php2,104 ▲72.01 ▼0.0235.30 ▼1.6932.50 ▼4.07
Add New Post /wp-admin/post-new.php1,529 ▲322.08 ▲1.01690.10 ▼4.1450.22 ▼9.74
Media Library /wp-admin/upload.php1,395 ▼84.18 ▼0.0295.83 ▼11.9440.65 ▼6.94

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-form-encryption/wp-form-encryption.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-form-encryption/jcryption.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: security, encrypt submission, form encryption, encryption, login

wp-form-encryption/wp-form-encryption.php Passed 13 tests

"WP Form Encryption" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
jQuery plugin for encrypting form data in javascript using jCryption library

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
Success! There were no dangerous files found in this plugin1,186 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27826643
PHP3117293543

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity66.00
▷ Minimum class complexity66.00
▷ Maximum class complexity66.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected