80% sticky-spotlight-video-player

Code Review | Sticky Spotlight Video Player

WordPress plugin Sticky Spotlight Video Player scored80%from 54 tests.

About plugin

  • Plugin page: sticky-spotlight-...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Mar 31, 2017
  • Number of updates: 32
  • Update frequency: every 5.3 days
  • Top authors: heygoto (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /5,718 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
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.64ms] Passed 4 tests

A check of server-side resources used by Sticky Spotlight Video Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.13 ▲1.38
Dashboard /wp-admin3.44 ▲0.1452.20 ▼2.91
Posts /wp-admin/edit.php3.49 ▲0.1452.76 ▼1.57
Add New Post /wp-admin/post-new.php6.02 ▲0.1490.25 ▼11.39
Media Library /wp-admin/upload.php3.36 ▲0.1438.43 ▲1.32
New Video Shortcode /wp-admin/edit.php?post_type=video_embed&page=video_embed_add_new3.4039.50
Video Shortcodes /wp-admin/edit.php?post_type=video_embed3.4449.57

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 182 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Sticky Spotlight Video Player
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.38 ▼0.051.85 ▼0.2043.83 ▼7.32
Dashboard /wp-admin2,206 ▲265.60 ▼0.0899.95 ▲6.3885.16 ▲36.61
Posts /wp-admin/edit.php2,126 ▲232.01 ▼0.0535.63 ▼8.4734.23 ▼3.73
Add New Post /wp-admin/post-new.php1,702 ▲17122.56 ▼0.72658.32 ▼28.5248.38 ▼17.30
Media Library /wp-admin/upload.php1,417 ▲204.16 ▼0.06101.58 ▲3.6973.79 ▲31.33
New Video Shortcode /wp-admin/edit.php?post_type=video_embed&page=video_embed_add_new2,4574.3795.32110.48
Video Shortcodes /wp-admin/edit.php?post_type=video_embed1,2933.6655.6885.42

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Congratulations! This plugin passed the SRP test

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
Please take inspiration from this readme.txt

sticky-spotlight-video-player/sticky-spotlight-video-player.php Passed 13 tests

"Sticky Spotlight Video Player" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
This plugin gives a very simple way to add your videos into your Wordpress Pages and Posts.

Code Analysis 5% from 3 tests

File types 0% from 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
Please fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .ps1 - Windows PowerShell Cmdlet in Windows
      • wp-content/plugins/sticky-spotlight-video-player/assets/bootstrap/nuget/MyGet.ps1
29,070 lines of code in 152 files:
LanguageFilesBlank linesComment linesLines of code
CSS81114710,169
LESS851,2091,5867,236
JavaScript261,5146734,382
JSON6003,197
Sass1434341,656
PHP4467691,233
SVG200973
Markdown3600109
XML20056
YAML1111655
PowerShell1224

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.24
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/icon.png1.32KB0.59KB▼ 55.59%
admin/assets/wistia_logo.png1.31KB0.60KB▼ 54.22%