89% list-youtube-channel-videos

Code Review | List YouTube Channel Videos

WordPress plugin List YouTube Channel Videos scored89%from 54 tests.

About plugin

  • Plugin page: list-youtube-chan...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Jan 31, 2018
  • Latest release: Jan 31, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: gchoyal1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /724 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.01MB] [CPU: ▼2.28ms] Passed 4 tests

This is a short check of server-side resources used by List YouTube Channel Videos
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.48 ▲1.50
Dashboard /wp-admin3.32 ▲0.0148.20 ▼2.01
Posts /wp-admin/edit.php3.37 ▲0.0151.00 ▲0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.18 ▼8.54
Media Library /wp-admin/upload.php3.24 ▲0.0139.61 ▲1.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for List YouTube Channel Videos
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.122.01 ▲0.3441.01 ▼3.86
Dashboard /wp-admin2,195 ▲155.61 ▲0.0495.33 ▲2.1639.31 ▼5.58
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0040.24 ▲1.7536.39 ▼4.17
Add New Post /wp-admin/post-new.php1,526 ▼223.44 ▲0.52697.91 ▲30.9749.36 ▼4.98
Media Library /wp-admin/upload.php1,400 ▼04.31 ▲0.07121.20 ▲9.5147.63 ▲2.81

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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: The official readme.txt is a good inspiration

list-youtube-channel-videos/plugin.php 85% from 13 tests

"List YouTube Channel Videos" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("list-youtube-channel-videos.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 296 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP120832

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.54
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin