79% video-blogster-lite

Code Review | Video Blogster Lite

WordPress plugin Video Blogster Lite scored79%from 54 tests.

About plugin

  • Plugin page: video-blogster-lite
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2014
  • Latest release: May 16, 2023
  • Number of updates: 12
  • Update frequency: every 258.4 days
  • Top authors: johnh10 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /18,900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.84ms] Passed 4 tests

Analyzing server-side resources used by Video Blogster Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.86 ▼3.40
Dashboard /wp-admin3.36 ▲0.0244.23 ▼17.59
Posts /wp-admin/edit.php3.42 ▲0.0648.04 ▼5.32
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.13 ▼9.06
Media Library /wp-admin/upload.php3.29 ▲0.0535.33 ▲1.69
Video Blogster Lite /wp-admin/tools.php?page=video_blogster-lite3.37241.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Video Blogster Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.69 ▲0.121.57 ▼0.0140.11 ▲0.50
Dashboard /wp-admin2,199 ▲225.48 ▼0.1482.04 ▼8.6038.63 ▲1.58
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0934.20 ▲1.1231.06 ▼5.35
Add New Post /wp-admin/post-new.php1,529 ▲323.29 ▲0.32672.09 ▼12.1254.51 ▼6.93
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.03104.92 ▲5.1448.03 ▲4.40
Video Blogster Lite /wp-admin/tools.php?page=video_blogster-lite1,3622.3022.0934.56

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/video-blogster-lite/sources/class-youtube.php
    • > /wp-content/plugins/video-blogster-lite/templates/buttons.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/video-blogster-lite/video-blogster-lite.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/video-blogster-lite/templates/process-results.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/video-blogster-lite/templates/video-feed.php:10
    • > PHP Warning
      Use of undefined constant VIDEO_BLOGSTER_LITE_VERSION - assumed 'VIDEO_BLOGSTER_LITE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/video-blogster-lite/templates/video-feed.php on line 2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/video-blogster-lite/templates/create-posts.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/video-blogster-lite/templates/query-youtube.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: embed video, video blog, videoblog, you tube, oembed...

video-blogster-lite/video-blogster-lite.php Passed 13 tests

The main PHP script in "Video Blogster Lite" version 1.2 is automatically included on every request by WordPress
77 characters long description:
Queries YouTube for content and automatically creates posts from the results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin728 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP783128653
CSS123075

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity40.50
▷ Minimum class complexity40.00
▷ Maximum class complexity41.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods1555.56%
▷ Protected methods414.81%
▷ Private methods829.63%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/yt_logo_rgb_light.png19.98KB8.66KB▼ 56.67%