10% list-video-youtube

Code Review | GSLLV List video youtube

WordPress plugin GSLLV List video youtube scored10%from 54 tests.

About plugin

  • Plugin page: list-video-youtube
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Oct 14, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: josejavierfm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/list-video-youtube/gsliv-widget.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; gsliv_widget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼51.03ms] Passed 4 tests

Server-side resources used by GSLLV List video youtube
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.14 ▼34.14
Dashboard /wp-admin2.29 ▼1.0110.20 ▼47.51
Posts /wp-admin/edit.php2.29 ▼1.0611.42 ▼36.22
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.75 ▼86.26
Media Library /wp-admin/upload.php2.29 ▼0.948.78 ▼29.05

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_gsliv_widget
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

GSLLV List video youtube: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.401.73 ▼0.2142.95 ▼1.53
Dashboard /wp-admin2,206 ▲185.91 ▲1.03106.85 ▲0.3139.06 ▼9.59
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0541.35 ▼1.0434.24 ▼3.23
Add New Post /wp-admin/post-new.php1,533 ▲523.36 ▲5.24642.43 ▼9.8753.80 ▲0.14
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0298.42 ▼11.0741.90 ▼6.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in gsliv_widget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_gsliv_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/list-video-youtube/gsliv-widget.php:19

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: channel, video, links, youtube, last

list-video-youtube/gsliv-widget.php 92% from 13 tests

"GSLLV List video youtube" 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: Please rename the main PHP file in this plugin to the plugin slug ("list-video-youtube.php" instead of "gsliv-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin177 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12217105
PO File2212272

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin