84% codemonkeys-hipaa-forms

Code Review | HIPAA FORMS - Add HIPAA Compliant Webforms to Your Wordpress Website

WordPress plugin HIPAA FORMS - Add HIPAA Compliant Webforms to Your Wordpress Website scored84%from 54 tests.

About plugin

  • Plugin page: codemonkeys-hipaa...
  • Plugin version: 2.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3.5
  • WordPress version: 6.3.1
  • First release: Dec 27, 2017
  • Latest release: Oct 27, 2023
  • Number of updates: 351
  • Update frequency: every 6.1 days
  • Top authors: codemonkeys (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /61,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.95MB] [CPU: ▲0.05ms] Passed 4 tests

This is a short check of server-side resources used by HIPAA FORMS - Add HIPAA Compliant Webforms to Your Wordpress Website
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9742.60 ▲0.07
Dashboard /wp-admin4.25 ▲0.9549.28 ▲3.32
Posts /wp-admin/edit.php4.35 ▲1.0045.12 ▲1.39
Add New Post /wp-admin/post-new.php6.83 ▲0.9587.10 ▼4.59
Media Library /wp-admin/upload.php4.17 ▲0.9543.25 ▲9.65

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for HIPAA FORMS - Add HIPAA Compliant Webforms to Your Wordpress Website
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲16113.84 ▼0.7314.64 ▲13.1234.66 ▼4.32
Dashboard /wp-admin2,207 ▲305.51 ▼0.0882.08 ▼3.8738.46 ▼3.03
Posts /wp-admin/edit.php2,112 ▲122.00 ▼0.0334.35 ▼0.6134.79 ▼0.10
Add New Post /wp-admin/post-new.php1,536 ▲823.15 ▼0.08656.27 ▼5.5952.26 ▲5.92
Media Library /wp-admin/upload.php1,412 ▲124.17 ▼0.1396.78 ▼11.3840.70 ▼5.94

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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
Everything seems fine, however 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 take a closer look at the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/codemonkeys-hipaa-forms/hipaa-forms.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemonkeys-hipaa-forms/admin-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemonkeys-hipaa-forms/ajax-functions-php7.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemonkeys-hipaa-forms/ajax-functions.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemonkeys-hipaa-forms/enqueue.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemonkeys-hipaa-forms/user-role.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemonkeys-hipaa-forms/includes/options.php:52

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: hipaa compliance, secure forms, gravity forms, health forms, medical forms...

codemonkeys-hipaa-forms/hipaa-forms.php 92% from 13 tests

Analyzing the main PHP file in "HIPAA FORMS - Add HIPAA Compliant Webforms to Your Wordpress Website" version 2.9.9
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("codemonkeys-hipaa-forms.php" instead of "hipaa-forms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected20,077 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP81,2231,53110,082
JavaScript99461,0705,971
CSS5753874,024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity685.00
▷ Minimum class complexity685.00
▷ Maximum class complexity685.00
Average method complexity15.25
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods48
▷ Static methods612.50%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions75
▷ Named functions7397.33%
▷ Anonymous functions22.67%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/hipaa-compliant-badge.png43.68KB10.32KB▼ 76.36%
images/tt-close.png18.54KB0.45KB▼ 97.60%
images/e-mod-logo.png31.08KB5.16KB▼ 83.41%
images/cm-logo.png15.61KB11.00KB▼ 29.54%
images/select-arrow.png17.44KB0.23KB▼ 98.70%