79% videomail-for-ninja-forms

Code Review | Videomail for Ninja Forms

WordPress plugin Videomail for Ninja Forms scored79%from 54 tests.

About plugin

  • Plugin page: videomail-for-nin...
  • Plugin version: 5.0.2
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Nov 21, 2023
  • Number of updates: 119
  • Update frequency: every 17.4 days
  • Top authors: michael.heuberger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /11,273 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Videomail for Ninja Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.90 ▲5.95
Dashboard /wp-admin3.31 ▲0.0046.52 ▼4.96
Posts /wp-admin/edit.php3.36 ▲0.0048.38 ▼4.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.08 ▲2.05
Media Library /wp-admin/upload.php3.23 ▲0.0037.87 ▲3.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Videomail for Ninja Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.25 ▼0.101.74 ▲0.0244.95 ▲8.66
Dashboard /wp-admin2,198 ▲185.57 ▼0.1091.89 ▼12.1841.86 ▼3.69
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0540.36 ▼7.6637.27 ▼3.20
Add New Post /wp-admin/post-new.php1,528 ▲223.10 ▲0.00657.32 ▼1.0764.72 ▲16.46
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.0095.98 ▼4.7541.59 ▲0.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-form-element.html.php
    • > /wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-metabox-submission.html.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-metabox-submission.html.php on line 2
    • > PHP Notice
      Undefined variable: poster in wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-metabox-submission.html.php on line 1
    • > PHP Notice
      Undefined variable: source in wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-metabox-submission.html.php on line 9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-metabox-submission.html.php on line 9
    • > PHP Notice
      Undefined variable: value in wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-form-element.html.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/videomail-for-ninja-forms/target/php/config/videomail-field-settings.php:3
    • > PHP Notice
      Undefined variable: source in wp-content/plugins/videomail-for-ninja-forms/target/php/templates/admin-metabox-submission.html.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/videomail-for-ninja-forms/videomail-for-ninja-forms.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: webcam, recorder, form, email, video...

videomail-for-ninja-forms/videomail-for-ninja-forms.php Passed 13 tests

"Videomail for Ninja Forms" version 5.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
Express yourself in more than just words. Record and send a short video from your webcam.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected26,292 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23,6344,06825,809
PHP119878400
HTML40082
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes250.00%
Methods25
▷ Static methods312.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.30MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png56.89KB15.06KB▼ 73.52%
assets/banner-772x250.png6.41KB5.47KB▼ 14.74%
assets/screenshot-1.png230.46KB66.47KB▼ 71.16%
assets/icon-256x256.png13.46KB10.44KB▼ 22.41%