80% gutena-forms

Code Review | Gutena Forms - Contact Forms Block

WordPress plugin Gutena Forms - Contact Forms Block scored80%from 54 tests.

About plugin

  • Plugin page: gutena-forms
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 30, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 18
  • Update frequency: every 25.0 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10,000+ active /59,586 total downloads

Benchmarks

Plugin footprint 65% 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.17MB] [CPU: ▼4.08ms] Passed 4 tests

An overview of server-side resources used by Gutena Forms - Contact Forms Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1737.23 ▼4.49
Dashboard /wp-admin3.50 ▲0.2046.99 ▼3.67
Posts /wp-admin/edit.php3.55 ▲0.1946.18 ▼2.51
Add New Post /wp-admin/post-new.php6.32 ▲0.4387.60 ▼5.66
Media Library /wp-admin/upload.php3.36 ▲0.1335.72 ▲3.71

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 92 new files
Database: 4 new tables, 8 new options
New tables
wp_gutenaforms_field_value
wp_gutenaforms_meta
wp_gutenaforms_entries
wp_gutenaforms
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
gutena_forms_store_version
db_upgraded
theysaidso_admin_options
gutena_forms_version
can_compress_scripts

Browser metrics Passed 4 tests

Gutena Forms - Contact Forms Block: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14514.24 ▼0.402.21 ▲0.4336.42 ▼9.41
Dashboard /wp-admin2,279 ▲1055.66 ▲0.0896.48 ▼7.5244.74 ▼0.21
Posts /wp-admin/edit.php2,185 ▲852.00 ▼0.0044.77 ▲2.3137.87 ▼2.88
Add New Post /wp-admin/post-new.php6,289 ▲4,76326.12 ▲2.89954.23 ▲318.7740.44 ▼10.89
Media Library /wp-admin/upload.php1,482 ▲884.25 ▲0.0799.33 ▼3.7962.30 ▲18.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_gutenaforms_field_value
    • wp_gutenaforms_entries
    • wp_gutenaforms
    • wp_gutenaforms_meta
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • widget_recent-posts
    • gutena_forms_version
    • widget_theysaidso_widget
    • gutena_forms_store_version
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: block, form block, contact form, forms, form

gutena-forms/gutena-forms.php 92% from 13 tests

The principal PHP file in "Gutena Forms - Contact Forms Block" v. 1.1.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 293 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5,633 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
PHP163996092,339
JavaScript34153831,542
Sass113041,067
JSON700566
SVG2400116
CSS3003

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.71
Average class complexity52.12
▷ Minimum class complexity14.00
▷ Maximum class complexity158.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods97
▷ Static methods55.15%
▷ Public methods7981.44%
▷ Protected methods55.15%
▷ Private methods1313.40%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/welcome.png23.94KB11.70KB▼ 51.13%
assets/img/features/gutenberg.png3.79KB2.54KB▼ 32.96%
assets/img/logo.png1.33KB0.73KB▼ 45.26%
assets/img/view-actions.png5.63KB2.42KB▼ 56.99%
assets/img/features/recaptcha.png1.68KB1.30KB▼ 22.26%