62% abcsubmit

Code Review | Create custom forms for WordPress with a smart form plugin for smart businesses - Form builder for WordPress

WordPress plugin Create custom forms for WordPress with a smart form plugin for smart businesses - Form builder for WordPress scored62%from 54 tests.

About plugin

  • Plugin page: abcsubmit
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: May 2, 2022
  • Number of updates: 43
  • Update frequency: every 29.2 days
  • Top authors: dorinabc (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,975 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.89MB] [CPU: ▼53.52ms] Passed 4 tests

An overview of server-side resources used by Create custom forms for WordPress with a smart form plugin for smart businesses - Form builder for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.66 ▼32.89
Dashboard /wp-admin2.12 ▼1.195.63 ▼44.15
Posts /wp-admin/edit.php2.12 ▼1.245.73 ▼40.32
Add New Post /wp-admin/post-new.php2.12 ▼3.776.32 ▼96.70
Media Library /wp-admin/upload.php2.12 ▼1.115.30 ▼30.06
Help /wp-admin/admin.php?page=abcSubmitHelp2.125.40
My Forms /wp-admin/admin.php?page=abcSubmitMyForms2.126.75
AbcSubmit /wp-admin/admin.php?page=abcsubmit2.125.27
My Account /wp-admin/admin.php?page=abcSubmitMyAccount2.126.60
New Form /wp-admin/admin.php?page=abcSubmitNewForm2.126.10

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Create custom forms for WordPress with a smart form plugin for smart businesses - Form builder for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲20813.87 ▼0.535.77 ▲3.9536.62 ▼4.45
Dashboard /wp-admin2,245 ▲574.86 ▼0.02107.65 ▲1.4293.01 ▲49.65
Posts /wp-admin/edit.php2,140 ▲512.06 ▲0.0639.39 ▲3.3740.69 ▲6.98
Add New Post /wp-admin/post-new.php6,443 ▲4,92223.38 ▲0.09977.56 ▲359.4243.34 ▼17.09
Media Library /wp-admin/upload.php1,432 ▲414.24 ▲0.06101.03 ▼3.9380.22 ▲34.31
Help /wp-admin/admin.php?page=abcSubmitHelp1,37010.15226.1268.00
My Forms /wp-admin/admin.php?page=abcSubmitMyForms1,36810.18211.4838.84
AbcSubmit /wp-admin/admin.php?page=abcsubmit1,3689.7497.5236.06
My Account /wp-admin/admin.php?page=abcSubmitMyAccount1,3689.88105.6639.26
New Form /wp-admin/admin.php?page=abcSubmitNewForm1,3689.6698.0138.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% 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
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the abcsubmit-admin-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the admin_abcsubmit_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/abcsubmit/abcsubmit.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/dist/v2/editor.bundle.js?&_r_=fbdae6bd 1:2513958 "[I18n] Interface language suggested by backend as:" "\"ro\""
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/dist/v2/editor.bundle.js?&_r_=fbdae6bd 1:112878 "[API] GET: " "ui/i18n/my-language?JWT=null"
    • > GET request to /wp-admin/admin.php?page=abcSubmitHelp
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/vendor/abcsubmit-analytics/analytics.js?&_r_=fbdae6bd 26:20 "[CIO] referrer = " "/"
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/dist/v2/editor.bundle.js?&_r_=fbdae6bd 1:168315 "[NET] GET: " "/static/i18n/editor-ro.po?_revision_=fbdae6bd"
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/dist/v2/editor.bundle.js?&_r_=fbdae6bd 1:2514467 "[I18n] Loaded external translations for language ro"
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/dist/v2/editor.bundle.js?&_r_=fbdae6bd 1:511001 "[CIO] enabled = " true
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/dist/v2/editor.bundle.js?&_r_=fbdae6bd 1:112878 "[API] GET: " "cloud/platform"
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abcSubmitNewForm
    • > Console-api (warning) in unknown
    https://edge15.abcsubmit.com/dist/v2/editor.bundle.js?&_r_=fbdae6bd 1:168315 "[NET] GET: " "/static/templates/ui-v2/login/login-and-signup.html?_revision_=fbdae6bd"

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: pop-up forms, e-forms, payment forms, order form, form builder

abcsubmit/abcsubmit.php 92% from 13 tests

The main file in "Create custom forms for WordPress with a smart form plugin for smart businesses - Form builder for WordPress" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

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
Everything looks great! No dangerous files found in this plugin763 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript419241393
PHP26142221
CSS3270149

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/abcsubmit.png2.64KB1.93KB▼ 27.07%
assets/img/icon-abcsubmit-dashboard.png2.29KB0.86KB▼ 62.58%
assets/img/iconAbcSubmit.png1.61KB1.61KB0.00%