84% vision6-forms

Code Review | Vision6 Forms

WordPress plugin Vision6 Forms scored84%from 54 tests.

About plugin

  • Plugin page: vision6-forms
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2017
  • Latest release: Jan 22, 2023
  • Number of updates: 15
  • Update frequency: every 125.9 days
  • Top authors: vision6 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.84ms] Passed 4 tests

A check of server-side resources used by Vision6 Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.85 ▼4.32
Dashboard /wp-admin3.35 ▲0.0046.49 ▼14.08
Posts /wp-admin/edit.php3.40 ▲0.0445.06 ▲2.42
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.86 ▼3.22
Media Library /wp-admin/upload.php3.27 ▲0.0436.51 ▲2.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_v6_forms_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Vision6 Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.75 ▲0.472.61 ▲0.8238.77 ▼4.42
Dashboard /wp-admin2,209 ▲174.84 ▼0.0799.24 ▼6.6739.36 ▼1.72
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0135.58 ▲1.8933.65 ▼1.29
Add New Post /wp-admin/post-new.php1,519 ▼923.48 ▲0.28581.76 ▼84.5461.29 ▲9.45
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0895.35 ▲2.2939.75 ▲0.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_v6_forms_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vision6-forms/includes/templates/webforms_iframe.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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: contact, forms, vision6, form

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

"Vision6 Forms" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin150 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP675105146
JavaScript1494

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.33
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods763.64%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin