84% video-lead-form

Code Review | Video Lead Form

WordPress plugin Video Lead Form scored84%from 54 tests.

About plugin

  • Plugin page: video-lead-form
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2012
  • Latest release: Nov 26, 2012
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: fillup17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,435 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.16ms] Passed 4 tests

A check of server-side resources used by Video Lead Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.73 ▲2.96
Dashboard /wp-admin3.31 ▲0.0145.05 ▼2.37
Posts /wp-admin/edit.php3.36 ▲0.0044.78 ▼2.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.98 ▼22.42
Media Library /wp-admin/upload.php3.23 ▲0.0038.86 ▲4.08

Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Video Lead Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.25 ▼0.281.75 ▲0.0644.80 ▲4.91
Dashboard /wp-admin2,195 ▲185.52 ▼0.1296.64 ▲8.7867.54 ▲23.82
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0135.42 ▼3.2333.80 ▲3.29
Add New Post /wp-admin/post-new.php1,692 ▲16620.95 ▼2.13743.01 ▲78.3958.52 ▲1.63
Media Library /wp-admin/upload.php1,418 ▲184.17 ▼0.0295.21 ▲0.4174.29 ▲26.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-lead-form/VideoLeadForm.php:44

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: lead form, contact form, video player

video-lead-form/VideoLeadForm.php 85% from 13 tests

The entry point to "Video Lead Form" version 0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("video-lead-form.php" instead of "VideoLeadForm.php")
  • Description: The description should be shorter than 140 characters (currently 328 characters long)

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
No dangerous file extensions were detected261 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14068261

PHP code Passed 2 tests

This is a short overview 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.49
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.26MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png111.76KB33.65KB▼ 69.89%
assets/screenshot-2.png147.00KB45.30KB▼ 69.19%
videoleadform/images/vlf-icon-small.png3.21KB0.51KB▼ 84.07%