10% last-video-youtube

Code Review | GSLV Last video youtube

WordPress plugin GSLV Last video youtube scored 10% from 54 tests.

About plugin

  • Plugin page: last-video-youtube
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2016
  • Latest release: Oct 17, 2016
  • Number of updates: 12
  • Update frequency: every 0.4 days
  • Top authors: josejavierfm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 937 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/last-video-youtube/gslv-widget.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; gslv_widget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.08ms] Passed 4 tests

Server-side resources used by GSLV Last video youtube
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.59 ▼35.43
Dashboard /wp-admin2.10 ▼1.208.76 ▼44.98
Posts /wp-admin/edit.php2.10 ▼1.256.18 ▼39.55
Add New Post /wp-admin/post-new.php2.10 ▼3.786.91 ▼92.36
Media Library /wp-admin/upload.php2.10 ▼1.125.63 ▼30.63

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_gslv_widget
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GSLV Last video youtube
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.271.58 ▼0.4339.38 ▼13.23
Dashboard /wp-admin2,206 ▲184.85 ▼1.0695.63 ▼8.3337.44 ▼8.89
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0141.29 ▲1.7337.30 ▲3.79
Add New Post /wp-admin/post-new.php1,533 ▼923.44 ▲5.04634.66 ▼0.7149.76 ▼5.87
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.0597.17 ▲1.6440.83 ▼0.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/last-video-youtube/gslv-widget.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; gslv_widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_gslv_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/last-video-youtube/gslv-widget.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: video, last, youtube, channel, iframe

last-video-youtube/gslv-widget.php 92% from 13 tests

The main PHP file in "GSLV Last video youtube" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("last-video-youtube.php" instead of "gslv-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
Good job! No executable or dangerous file extensions detected209 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12516117
PO File2323292

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ 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

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