79% softech-form-builder

Code Review | Softech Form Builder

WordPress plugin Softech Form Builder scored79%from 54 tests.

About plugin

  • Plugin page: softech-form-builder
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: May 27, 2019
  • Number of updates: 8
  • Update frequency: every 21.5 days
  • Top authors: shravanchoudhary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Softech Form Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.16 ▲3.86
Dashboard /wp-admin3.33 ▼0.0148.46 ▼8.27
Posts /wp-admin/edit.php3.38 ▲0.0344.96 ▼3.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0577.35 ▼17.43
Media Library /wp-admin/upload.php3.26 ▲0.0338.36 ▲1.09
Get Help /wp-admin/admin.php?page=softech-form-help3.2228.27
Softech Forms /wp-admin/admin.php?page=softech-form-builder-list3.2330.65
Create Form /wp-admin/admin.php?page=softech-new-form3.2028.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 7 new options
New tables
wp_softech_forms
New WordPress options
widget_theysaidso_widget
softech_forms_db_version
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Softech Form Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲22714.05 ▼0.3114.77 ▲13.2139.68 ▼0.54
Dashboard /wp-admin2,245 ▲645.18 ▼0.7287.13 ▼9.6035.36 ▼8.57
Posts /wp-admin/edit.php2,157 ▲572.43 ▲0.4438.24 ▼1.2133.41 ▼4.31
Add New Post /wp-admin/post-new.php1,724 ▲19823.10 ▼0.40668.94 ▲15.8129.42 ▼27.56
Media Library /wp-admin/upload.php1,447 ▲504.42 ▲0.25106.87 ▲7.7346.00 ▲0.08
Get Help /wp-admin/admin.php?page=softech-form-help9892.1629.5826.35
Softech Forms /wp-admin/admin.php?page=softech-form-builder-list1,0302.1930.5026.94
Create Form /wp-admin/admin.php?page=softech-new-form1,0932.1730.8438.14

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
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=softech-new-form
    • > Notice in wp-content/plugins/softech-form-builder/admin/add-new.php+8
    Undefined index: form_id
    • > GET request to /wp-admin/admin.php?page=softech-new-form
    • > Notice in wp-content/plugins/softech-form-builder/admin/add-new.php+42
    Undefined variable: form_name
    • > GET request to /wp-admin/admin.php?page=softech-new-form
    • > Notice in wp-content/plugins/softech-form-builder/admin/add-new.php+101
    Undefined variable: form_subject
    • > GET request to /wp-admin/admin.php?page=softech-new-form
    • > Notice in wp-content/plugins/softech-form-builder/admin/add-new.php+104
    Undefined variable: form_to
    • > GET request to /wp-admin/admin.php?page=softech-new-form
    • > Notice in wp-content/plugins/softech-form-builder/admin/add-new.php+107
    Undefined variable: form_from_cc

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/softech-form-builder/admin/sfb-load.php
    • > /wp-content/plugins/softech-form-builder/list-table.php
    • > /wp-content/plugins/softech-form-builder/admin/add-shortcode.php
    • > /wp-content/plugins/softech-form-builder/admin/add-new.php
    • > /wp-content/plugins/softech-form-builder/softech-form-builder.php
    • > /wp-content/plugins/softech-form-builder/admin/sfb-shortcode-load.php
    • > /wp-content/plugins/softech-form-builder/admin/sfb-save.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: form, softechure, forms, contact form plugin, contact form...

softech-form-builder/softech-form-builder.php Passed 13 tests

The primary PHP file in "Softech Form Builder" version 1.0.1 is used by WordPress to initiate all plugin functionality
32 characters long description:
Make a easy form by simple steps

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,791 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PO File64194961,191
PHP812060725
CSS2578453
JavaScript56957422

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin