10% ventunos-videopub

Code Review | Ventuno’s VideoPub

WordPress plugin Ventuno’s VideoPub scored 10% from 54 tests.

About plugin

  • Plugin page: ventunos-videopub
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.0
  • WordPress version: 5.8.1
  • First release: Jul 30, 2013
  • Latest release: May 26, 2014
  • Number of updates: 17
  • Update frequency: every 18.5 days
  • Top authors: vtnwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 840 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/ventunos-videopub/VentunoMedia.php+813
    Uncaught Error: Using $this when not in object context in wp-content/plugins/ventunos-videopub/VentunoMedia.php:813
    Stack trace:
    #0 wp-admin/includes/plugin.php(2286): include_once()
    #1 wp-admin/includes/plugin.php(668): plugin_sandbox_scrape()

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

Server-side resources used by Ventuno’s VideoPub
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1237.41 ▲9.12
Dashboard /wp-admin3.06 ▲0.0047.20 ▼4.63
Posts /wp-admin/edit.php3.11 ▲0.0053.37 ▲1.23
Add New Post /wp-admin/post-new.php5.42 ▼0.0294.64 ▼565.30
Media Library /wp-admin/upload.php3.00 ▲0.0038.78 ▼0.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Ventuno’s VideoPub: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.94 ▲0.359.82 ▼2.0253.85 ▲0.82
Dashboard /wp-admin2,970 ▲395.95 ▼0.01146.26 ▼3.71119.04 ▼2.59
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0173.72 ▲5.18103.86 ▼6.59
Add New Post /wp-admin/post-new.php1,683 ▼018.65 ▲0.52397.90 ▲4.26119.91 ▲3.07
Media Library /wp-admin/upload.php1,807 ▼35.05 ▼0.02159.83 ▲0.04138.42 ▲7.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 21× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'VentunoMedia' not found in wp-content/plugins/ventunos-videopub/includes/ventuno-search-template-ajax.php:24
    • > PHP Notice
      Undefined variable: account_result in wp-content/plugins/ventunos-videopub/includes/ventuno-blend-template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'VentunoMedia' not found in wp-content/plugins/ventunos-videopub/includes/ventuno-header-template.php:11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ventunos-videopub/includes/ventuno-blend-template.php on line 3
    • > PHP Notice
      Undefined variable: result_ventuno_feed in wp-content/plugins/ventunos-videopub/includes/ventuno-search-template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ventunos-videopub/includes/ventuno-search-template.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ventunos-videopub/includes/ventuno-manage-tmp-template.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ventunos-videopub/VentunoMedia.php:636
    • > PHP Notice
      Undefined variable: account_result in wp-content/plugins/ventunos-videopub/includes/ventuno-account-template.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ventunos-videopub/includes/ventuno-account-template.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 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
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (VideoPub Dashboard.), #2 (linking-up your Ventuno account), #3 (Create a publisher account to link your Ventuno account), #4 (Single video publish catalog), #5 (Video Templates publish)
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

ventunos-videopub/VentunoMedia.php 92% from 13 tests

The main PHP file in "Ventuno’s VideoPub" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ventunos-videopub.php" instead of "VentunoMedia.php")

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
Success! There were no dangerous files found in this plugin2,873 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP11259391,781
CSS5150118696
JavaScript56842396

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity38.33
▷ Minimum class complexity14.00
▷ Maximum class complexity73.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods49
▷ Static methods4591.84%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.66MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fancybox_overlay.png0.98KB0.09KB▼ 90.43%
screenshot-4.png168.61KB64.02KB▼ 62.03%
images/time_icon.png1.11KB0.40KB▼ 64.24%
screenshot-2.png62.65KB24.55KB▼ 60.81%
screenshot-5.png55.60KB21.56KB▼ 61.22%