84% streaming-video-link-google-drive

Code Review | Stream Video Link Google Drive

WordPress plugin Stream Video Link Google Drive scored84%from 54 tests.

About plugin

  • Plugin page: streaming-video-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.5
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: May 22, 2021
  • Number of updates: 3
  • Update frequency: every 74.0 days
  • Top authors: theanhk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.45ms] Passed 4 tests

An overview of server-side resources used by Stream Video Link Google Drive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.05 ▼6.75
Dashboard /wp-admin3.36 ▲0.0555.59 ▲3.30
Posts /wp-admin/edit.php3.48 ▲0.1251.69 ▼0.87
Add New Post /wp-admin/post-new.php5.94 ▲0.05101.43 ▼9.96
Media Library /wp-admin/upload.php3.29 ▲0.0538.90 ▼8.22
Google Drive Stream /wp-admin/options-general.php?page=stream3s-setting3.2534.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Stream Video Link Google Drive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.37 ▲0.221.67 ▼0.2241.94 ▼0.19
Dashboard /wp-admin2,199 ▲275.63 ▼0.0992.11 ▼8.8542.20 ▼2.30
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0140.27 ▼1.2735.91 ▼0.37
Add New Post /wp-admin/post-new.php1,529 ▲323.43 ▲0.01651.37 ▼35.7753.89 ▼8.69
Media Library /wp-admin/upload.php1,404 ▲74.19 ▲0.0696.31 ▼38.3547.06 ▼4.90
Google Drive Stream /wp-admin/options-general.php?page=stream3s-setting8261.9628.1227.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • 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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/streaming-video-link-google-drive/Stream3s/Views/setting.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Stream3s\\Controllers\\add_shortcode() in wp-content/plugins/streaming-video-link-google-drive/Stream3s/Controllers/EmbedController.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: google drive video streaming, google drive streaming, video streaming

streaming-video-link-google-drive/stream-google-drive.php 85% from 13 tests

The main file in "Stream Video Link Google Drive" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("streaming-video-link-google-drive.php" instead of "stream-google-drive.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin352 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP91019352

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity6.83
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods20
▷ Static methods525.00%
▷ Public methods1890.00%
▷ Protected methods15.00%
▷ Private methods15.00%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin