64% videozen

Code Review | VideoZen

WordPress plugin VideoZen scored64%from 54 tests.

About plugin

  • Plugin page: videozen
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 22, 2013
  • Latest release: Jan 26, 2013
  • Number of updates: 14
  • Update frequency: every 0.3 days
  • Top authors: j.conti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,636 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.14MB] [CPU: ▼44.39ms] Passed 4 tests

An overview of server-side resources used by VideoZen
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6213.98 ▼24.72
Dashboard /wp-admin2.88 ▼0.4616.34 ▼43.43
Posts /wp-admin/edit.php2.88 ▼0.4717.89 ▼28.32
Add New Post /wp-admin/post-new.php2.88 ▼3.0016.79 ▼81.07
Media Library /wp-admin/upload.php2.88 ▼0.3514.62 ▼17.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by VideoZen
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲13013.66 ▼0.803.56 ▲1.8337.34 ▼6.74
Dashboard /wp-admin2,231 ▲425.27 ▲0.32102.72 ▼17.2435.90 ▼6.04
Posts /wp-admin/edit.php2,114 ▲252.52 ▲0.5137.12 ▲1.5331.75 ▼2.03
Add New Post /wp-admin/post-new.php1,533 ▼017.74 ▼5.52647.97 ▲11.6655.34 ▲1.08
Media Library /wp-admin/upload.php1,416 ▲314.53 ▲0.3396.82 ▼0.8541.23 ▼2.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/videozen/videozen.php+336
    Undefined index: videozenznot
  • Zombie tables detected upon uninstall: 1 table
    • wp_videozen_cdnstatus
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • videozen_auth
    • videozen_db_version
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_network_admin() in wp-content/plugins/videozen/videozen.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: cdn, video, video html5, s3, wordpress...

videozen/videozen.php 92% from 13 tests

The entry point to "VideoZen" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please improve your description making it at least 10 characters long (currently 9 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin763 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2244130671
PO File1293173
CSS12019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
download.png1.93KB0.79KB▼ 59.36%
videozenadmin.png2.39KB1.48KB▼ 38.25%
videozenadmin32.png4.81KB1.99KB▼ 58.76%