78% secure-encrypted-form

Code Review | Secure Encrypted Form

WordPress plugin Secure Encrypted Form scored78%from 54 tests.

About plugin

  • Plugin page: secure-encrypted-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2023
  • Latest release: Feb 23, 2023
  • Number of updates: 8
  • Update frequency: every 3.8 days
  • Top authors: danidub (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.91ms] Passed 4 tests

An overview of server-side resources used by Secure Encrypted Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.35 ▼4.73
Dashboard /wp-admin3.43 ▲0.1349.47 ▼1.44
Posts /wp-admin/edit.php3.48 ▲0.1349.94 ▼2.23
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.95 ▼7.25
Media Library /wp-admin/upload.php3.29 ▲0.0639.79 ▲2.46
Debug log /wp-admin/admin.php?page=secure-encrypted-form-debug-log3.3033.94
Secure Encrypted Form /wp-admin/admin.php?page=secure-encrypted-form3.3033.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 169 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
secure_encrypted_form_option_name

Browser metrics Passed 4 tests

A check of browser resources used by Secure Encrypted Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲18415.21 ▲0.838.24 ▲6.0541.32 ▼1.17
Dashboard /wp-admin2,248 ▲605.93 ▲1.03100.59 ▼4.9541.12 ▼2.25
Posts /wp-admin/edit.php2,130 ▲382.91 ▲0.9339.55 ▼2.6533.81 ▼3.79
Add New Post /wp-admin/post-new.php1,551 ▲1823.69 ▲0.46693.44 ▲50.9337.14 ▼15.33
Media Library /wp-admin/upload.php1,430 ▲425.17 ▲0.98104.35 ▼8.5644.75 ▼2.15
Debug log /wp-admin/admin.php?page=secure-encrypted-form-debug-log8572.7628.8943.67
Secure Encrypted Form /wp-admin/admin.php?page=secure-encrypted-form8942.7730.2941.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/secure-encrypted-form/public/partials/secure-encrypted-form-public-display.php
  • 101× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:34
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/secure-encrypted-form/lib/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

secure-encrypted-form/secure-encrypted-form.php Passed 13 tests

"Secure Encrypted Form" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Display a form on any page or post and receive secure (encrypted) communications using OpenPGP.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected10,415 lines of code in 160 files:
LanguageFilesBlank linesComment linesLines of code
PHP1502,4496,7489,308
Markdown42020648
JavaScript35141172
JSON100164
CSS2230123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.99
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces14
Interfaces10
Traits5
Classes122
▷ Abstract classes86.56%
▷ Concrete classes11493.44%
▷ Final classes32.63%
Methods765
▷ Static methods597.71%
▷ Public methods53169.41%
▷ Protected methods16221.18%
▷ Private methods729.41%
Functions24
▷ Named functions312.50%
▷ Anonymous functions2187.50%
Constants65
▷ Global constants11.54%
▷ Class constants6498.46%
▷ Public constants3757.81%

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