68% v-player

Code Review | Video Player With Ads Control

WordPress plugin Video Player With Ads Control scored68%from 54 tests.

About plugin

  • Plugin page: v-player
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 21, 2018
  • Latest release: Sep 26, 2018
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: yasintechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /761 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.48ms] Passed 4 tests

A check of server-side resources used by Video Player With Ads Control
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.53 ▲0.05
Dashboard /wp-admin3.37 ▲0.0356.51 ▼4.02
Posts /wp-admin/edit.php3.49 ▲0.1350.35 ▲1.56
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.06 ▼19.52
Media Library /wp-admin/upload.php3.27 ▲0.0437.93 ▲4.78
All Video /wp-admin/admin.php?page=all_video3.2837.35
New v /wp-admin/admin.php?page=new_vp3.2736.55

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: 1 new table, 6 new options
New tables
wp_vpa_posts
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Video Player With Ads Control
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲21814.55 ▲0.191.69 ▲0.1143.25 ▲3.15
Dashboard /wp-admin2,371 ▲1916.18 ▲0.48112.15 ▲24.7941.36 ▼0.29
Posts /wp-admin/edit.php2,293 ▲1933.39 ▲1.4546.47 ▲12.6831.05 ▼0.70
Add New Post /wp-admin/post-new.php1,557 ▲2923.64 ▲0.75630.83 ▼46.8937.23 ▼8.20
Media Library /wp-admin/upload.php1,436 ▲394.11 ▼0.1281.28 ▼19.9842.47 ▼1.34
All Video /wp-admin/admin.php?page=all_video9933.0237.9223.09
New v /wp-admin/admin.php?page=new_vp1,0633.0637.4860.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_vpa_posts
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/v-player/update-video.php
    • > /wp-content/plugins/v-player/inc/insert.php
    • > /wp-content/plugins/v-player/V-player.php
    • > /wp-content/plugins/v-player/all-video.php
    • > /wp-content/plugins/v-player/inc/shortcode.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/v-player/new-post.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/v-player/inc/form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/v-player/inc/script.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This screenshot show a view of V-player On page.), #2 (This screenshot show a view of make your video posts, Compatible with media.), #3 (This screenshot show a view of the video list.)
The official readme.txt is a good inspiration

v-player/V-player.php 92% from 13 tests

Analyzing the main PHP file in "Video Player With Ads Control" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("v-player.php" instead of "V-player.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
No dangerous file extensions were detected579 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP818128350
JavaScript2410129
CSS2190100

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods11100.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 Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin