88% video-converter

Code Review | Video Converter

WordPress plugin Video Converter scored 88% from 54 tests.

About plugin

  • Plugin page: video-converter
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.4
  • WordPress version: 5.8.1
  • First release: Mar 7, 2016
  • Latest release: Apr 28, 2017
  • Number of updates: 111
  • Update frequency: every 3.8 days
  • Top authors: bergamini (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 4,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.77MB] [CPU: ▼192.70ms] Passed 4 tests

Analyzing server-side resources used by Video Converter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.86 ▼0.978.00 ▼26.73
Dashboard /wp-admin1.88 ▼1.178.27 ▼41.95
Posts /wp-admin/edit.php1.88 ▼1.237.11 ▼44.00
Add New Post /wp-admin/post-new.php1.88 ▼3.5510.82 ▼650.88
Media Library /wp-admin/upload.php1.88 ▼1.127.47 ▼33.95

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Video Converter: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.74 ▲0.1712.45 ▲3.7057.98 ▲7.73
Dashboard /wp-admin2,976 ▲495.90 ▼0.10144.44 ▼8.45146.02 ▲16.91
Posts /wp-admin/edit.php2,770 ▲312.70 ▼0.0270.32 ▲1.31101.94 ▲13.54
Add New Post /wp-admin/post-new.php1,616 ▲1218.58 ▼0.18395.79 ▲17.92116.87 ▼0.48
Media Library /wp-admin/upload.php1,764 ▼435.03 ▼0.00139.72 ▼35.62147.61 ▲11.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the videoconverter-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 56 tag instead of maximum 10
  • Contributors: The plugin tags were not defined
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

video-converter/videoconverter.php 85% from 13 tests

The main file in "Video Converter" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("video-converter.php" instead of "videoconverter.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 detected868 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8165509673
PO File27014164
CSS23031

PHP code Passed 2 tests

An short overview of 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.29
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods4761.84%
▷ Protected methods2938.16%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
6 PNG files occupy 0.57MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assests/icon-128x128.png5.32KB3.30KB▼ 37.97%
assests/banner-772x250.png243.30KB61.82KB▼ 74.59%
assests/screenshot-1.png97.06KB49.67KB▼ 48.82%
img/icon.png0.88KB0.93KB0.00%
assests/screenshot-2.png198.44KB53.98KB▼ 72.80%