62% viddyoze

Code Review | Viddyoze

WordPress plugin Viddyoze scored 62% from 54 tests.

About plugin

  • Plugin page: viddyoze
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7
  • WordPress version: 6.3.1
  • First release: May 31, 2021
  • Latest release: Oct 25, 2021
  • Number of updates: 12
  • Update frequency: every 12.5 days
  • Top authors: viddyozeollie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,571 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.90MB] [CPU: ▼41.02ms] Passed 4 tests

A check of server-side resources used by Viddyoze
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2846.78 ▲4.03
Dashboard /wp-admin3.05 ▼0.2621.80 ▼35.49
Posts /wp-admin/edit.php3.05 ▼0.3124.56 ▼30.06
Add New Post /wp-admin/post-new.php3.05 ▼2.8419.09 ▼76.28
Media Library /wp-admin/upload.php3.05 ▼0.1818.86 ▼22.23
Welcome To Viddyoze /wp-admin/index.php?page=viddyoze-welcome-screen3.0517.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Viddyoze
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲6113.64 ▼1.132.01 ▲0.1042.03 ▼4.22
Dashboard /wp-admin2,245 ▲365.88 ▲0.0099.96 ▲4.2439.68 ▲1.65
Posts /wp-admin/edit.php2,124 ▲382.01 ▼0.0143.19 ▲9.0937.03 ▲1.60
Add New Post /wp-admin/post-new.php1,558 ▲2522.94 ▼0.41690.24 ▼39.2164.19 ▲12.42
Media Library /wp-admin/upload.php1,427 ▲394.22 ▲0.0195.77 ▼7.9643.49 ▼2.88
Welcome To Viddyoze /wp-admin/index.php?page=viddyoze-welcome-screen1,4196.4162.4966.54

Uninstaller [IO: ✅] [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
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/viddyoze/includes/class.viddyoze.php+37
    Undefined index: page
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/index.php?page=viddyoze-welcome-screen
    • > Notice in wp-content/plugins/viddyoze/includes/class.viddyoze.php+38
    Undefined index: t

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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/viddyoze/viddyoze.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/index.php?page=viddyoze-welcome-screen
    • > Other (warning) in unknown
    /wp-admin/index.php?page=viddyoze-welcome-screen 205 Allow attribute will take precedence over 'allowfullscreen'.
    • > GET request to /wp-admin/index.php?page=viddyoze-welcome-screen
    • > Network (severe)
    wp-content/plugins/viddyoze/admin/welcome-page-hero-dots.png - Failed to load resource: the server responded with a status of 404 (Not 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
4 plugin tags: videos, marketing, video, promotion

viddyoze/viddyoze.php 92% from 13 tests

"Viddyoze" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,194 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP31661791,609
CSS33342241,157
JavaScript54631404
Markdown111024

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity226.00
▷ Minimum class complexity226.00
▷ Maximum class complexity226.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods66
▷ Static methods66100.00%
▷ Public methods6293.94%
▷ Protected methods00.00%
▷ Private methods46.06%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants11
▷ Global constants11100.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
3 compressed PNG files occupy 0.25MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/welcome-page-hero-items.png245.32KB266.30KB0.00%
admin/images/viddyoze-plugin-icon.png0.73KB0.57KB▼ 22.18%
admin/images/welcome-page-hero-dots.png13.72KB15.91KB0.00%