84% videoask

Code Review | VideoAsk by Typeform | Get personal with your audience through beautiful video interactions

WordPress plugin VideoAsk by Typeform | Get personal with your audience through beautiful video interactions scored84%from 54 tests.

About plugin

  • Plugin page: videoask
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Jul 8, 2020
  • Number of updates: 5
  • Update frequency: every 62.8 days
  • Top authors: typeform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.85ms] Passed 4 tests

Analyzing server-side resources used by VideoAsk by Typeform | Get personal with your audience through beautiful video interactions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.28 ▼3.93
Dashboard /wp-admin3.31 ▼0.0354.30 ▼10.72
Posts /wp-admin/edit.php3.36 ▲0.0150.20 ▲1.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.74 ▼8.16
Media Library /wp-admin/upload.php3.23 ▲0.0136.18 ▼0.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

VideoAsk by Typeform | Get personal with your audience through beautiful video interactions: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5713.42 ▼1.1910.77 ▲9.1038.47 ▼1.72
Dashboard /wp-admin2,198 ▲275.67 ▲0.1190.26 ▼0.1939.00 ▼0.63
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0039.54 ▲4.7636.27 ▼4.02
Add New Post /wp-admin/post-new.php6,364 ▲4,83827.88 ▲4.35907.32 ▲223.5759.13 ▲10.42
Media Library /wp-admin/upload.php1,394 ▼64.13 ▼0.1898.78 ▼17.3141.32 ▼5.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/videoask/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: feedback, videoask, typeform, forms, surveys

videoask/index.php 92% from 13 tests

The primary PHP file in "VideoAsk by Typeform | Get personal with your audience through beautiful video interactions" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("videoask.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin211 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1160149
JavaScript2432238
PHP151324

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin