89% video-thumbnails-reloaded

Code Review | Video Thumbnails Reloaded

WordPress plugin Video Thumbnails Reloaded scored 89% from 54 tests.

About plugin

  • Plugin page: video-thumbnails-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.7.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Apr 30, 2021
  • Number of updates: 7
  • Update frequency: every 66.3 days
  • Top authors: yehudah (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active / 10,139 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▲0.71ms] Passed 4 tests

A check of server-side resources used by Video Thumbnails Reloaded
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5539.41 ▼0.28
Dashboard /wp-admin3.88 ▲0.5846.54 ▼2.67
Posts /wp-admin/edit.php3.93 ▲0.5750.60 ▲8.81
Add New Post /wp-admin/post-new.php6.45 ▲0.5693.92 ▲0.33
Media Library /wp-admin/upload.php3.80 ▲0.5738.42 ▲5.46
Bulk Video Thumbs /wp-admin/tools.php?page=video-thumbnails-bulk3.7133.75
Video Thumbnails /wp-admin/options-general.php?page=video_thumbnails3.7130.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
video_thumbnails

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Thumbnails Reloaded
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.30 ▼1.081.75 ▼0.0140.84 ▼3.89
Dashboard /wp-admin2,214 ▲234.88 ▼0.06108.97 ▲5.5441.35 ▲4.98
Posts /wp-admin/edit.php2,097 ▲52.01 ▲0.0139.99 ▲4.3534.59 ▲1.70
Add New Post /wp-admin/post-new.php6,529 ▲4,99620.38 ▼2.74832.98 ▲244.5450.25 ▼11.37
Media Library /wp-admin/upload.php1,396 ▲114.21 ▼0.0292.95 ▼6.0844.90 ▲0.75
Bulk Video Thumbs /wp-admin/tools.php?page=video-thumbnails-bulk8651.8431.9229.65
Video Thumbnails /wp-admin/options-general.php?page=video_thumbnails9232.0422.5729.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Settings page) image not found
You can look at the official readme.txt

video-thumbnails-reloaded/video-thumbnails.php 77% from 13 tests

"Video Thumbnails Reloaded" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 255 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("video-thumbnails-reloaded.php" instead of "video-thumbnails.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,296 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP296138762,525
JavaScript24514358
PO File1127158267
CSS2214145
Markdown1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.62
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods139
▷ Static methods4834.53%
▷ Public methods13194.24%
▷ Protected methods00.00%
▷ Private methods85.76%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants50
▷ Global constants36.00%
▷ Class constants4794.00%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin