74% personal-design-of-forms

Code Review | SOLASS Personal design of forms

WordPress plugin SOLASS Personal design of forms scored74%from 54 tests.

About plugin

  • Plugin page: personal-design-o...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2023
  • Latest release: Mar 22, 2023
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: solass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /91 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.68ms] Passed 4 tests

A check of server-side resources used by SOLASS Personal design of forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.396.52 ▼29.35
Dashboard /wp-admin2.09 ▼1.258.33 ▼53.22
Posts /wp-admin/edit.php2.09 ▼1.2610.03 ▼34.93
Add New Post /wp-admin/post-new.php2.09 ▼3.807.02 ▼101.21
Media Library /wp-admin/upload.php2.09 ▼1.147.50 ▼24.39
Дизайн форм /wp-admin/options-general.php?page=custom-form2.098.31

Server storage [IO: ▲0.07MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

SOLASS Personal design of forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7915.36 ▲1.051.83 ▲0.0243.81 ▼0.04
Dashboard /wp-admin2,225 ▲376.42 ▲1.51144.37 ▲41.1640.42 ▼1.32
Posts /wp-admin/edit.php2,116 ▲483.71 ▲1.6948.22 ▲13.4434.46 ▲2.85
Add New Post /wp-admin/post-new.php1,527 ▲1018.77 ▲0.94686.40 ▲8.8135.60 ▼15.00
Media Library /wp-admin/upload.php1,406 ▲185.26 ▲1.08125.57 ▲27.6041.94 ▼0.94
Дизайн форм /wp-admin/options-general.php?page=custom-form1,7735.1092.8648.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > 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 wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=custom-form
    • > 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 wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=custom-form
    • > 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 wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=custom-form
    • > User notice in wp-includes/functions.php+5905
    Function wp_add_inline_script was called incorrectly. Do not pass <script> tags to wp_add_inline_script(). Please see Debugging in WordPress for more information. (This message was added in version 4.5.0.)
    • > GET request to /wp-admin/options-general.php?page=custom-form
    • > Notice in wp-content/plugins/personal-design-of-forms/admin/admin-page.php+60
    Undefined index: solass-wp-settings
    • > GET request to /wp-admin/options-general.php?page=custom-form
    • > Notice in wp-content/plugins/personal-design-of-forms/admin/admin-page.php+129
    Undefined variable: onnn

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: input, form, select custom design, select

personal-design-of-forms/custom-form.php 92% from 13 tests

"SOLASS Personal design of forms" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("personal-design-of-forms.php" instead of "custom-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,039 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP44761428
PO File37578245
CSS22550239
JavaScript11211127

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin