89% set-youtube-image-as-featured-thumbnail

Code Review | Set Youtube Thumbnail as Featured Thumbnail

WordPress plugin Set Youtube Thumbnail as Featured Thumbnail scored89%from 54 tests.

About plugin

  • Plugin page: set-youtube-image...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Feb 26, 2017
  • Latest release: Dec 12, 2020
  • Number of updates: 11
  • Update frequency: every 125.7 days
  • Top authors: tazotodua (63.64%)ttodua (45.45%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.28ms] Passed 4 tests

An overview of server-side resources used by Set Youtube Thumbnail as Featured Thumbnail
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.33 ▲4.09
Dashboard /wp-admin3.31 ▲0.0047.88 ▼2.38
Posts /wp-admin/edit.php3.36 ▲0.0047.18 ▲1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.90 ▼4.24
Media Library /wp-admin/upload.php3.23 ▲0.0033.67 ▼3.99

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Set Youtube Thumbnail as Featured Thumbnail
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.42 ▲0.051.87 ▼0.1146.46 ▼2.28
Dashboard /wp-admin2,203 ▲155.83 ▲0.7496.61 ▼21.3638.35 ▼3.48
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0136.98 ▲0.4034.83 ▼1.46
Add New Post /wp-admin/post-new.php1,544 ▲1118.33 ▼4.98642.85 ▼40.0558.59 ▼7.45
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0593.15 ▼10.8240.00 ▼4.28

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • 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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Please add an image for screenshot #1 (screenshot)
Please take inspiration from this readme.txt

set-youtube-image-as-featured-thumbnail/index.php 85% from 13 tests

"Set Youtube Thumbnail as Featured Thumbnail" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("set-youtube-image-as-featured-thumbnail.php" instead of "index.php")

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
There were no executable files found in this plugin1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13161

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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
PNG images were not found in this plugin