84% heyform

Code Review | HeyForm - Online Form Builder & Data Collector

WordPress plugin HeyForm - Online Form Builder & Data Collector scored84%from 54 tests.

About plugin

  • Plugin page: heyform
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2020
  • Latest release: Dec 7, 2021
  • Number of updates: 22
  • Update frequency: every 17.5 days
  • Top authors: heyooo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /584 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.04ms] Passed 4 tests

An overview of server-side resources used by HeyForm - Online Form Builder & Data Collector
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.91 ▲0.01
Dashboard /wp-admin3.31 ▲0.0149.34 ▼7.75
Posts /wp-admin/edit.php3.36 ▲0.0047.21 ▼3.48
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.04 ▼4.94
Media Library /wp-admin/upload.php3.23 ▲0.0040.34 ▲5.59

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

HeyForm - Online Form Builder & Data Collector: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.051.85 ▲0.1943.81 ▲2.99
Dashboard /wp-admin2,192 ▲125.64 ▼0.04104.44 ▲11.7541.48 ▲1.85
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0237.32 ▲0.5636.35 ▲0.23
Add New Post /wp-admin/post-new.php1,529 ▼1623.76 ▲0.33639.64 ▼54.9358.47 ▼5.05
Media Library /wp-admin/upload.php1,403 ▲34.31 ▲0.0999.70 ▼9.5244.30 ▼0.62

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: data collector, form, integration, online form, form builder...

heyform/heyform.php Passed 13 tests

Analyzing the main PHP file in "HeyForm - Online Form Builder & Data Collector" version 1.3.0
57 characters long description:
Serverless Online Form Builder & Data Management Platform

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin314 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON400140
PO File4320124
PHP1102048
CSS1111
JavaScript1071

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected