72% firework-videos

Code Review | Firework Shoppable Live Video

WordPress plugin Firework Shoppable Live Video scored72%from 54 tests.

About plugin

  • Plugin page: firework-videos
  • Plugin version: 6.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: Oct 21, 2023
  • Number of updates: 100
  • Update frequency: every 12.7 days
  • Top authors: wirefork (43%)dwalintukan (37%)stefanbackor (22%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100+ active /6,656 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.03MB] [CPU: ▲1,515.95ms] 50% from 4 tests

This is a short check of server-side resources used by Firework Shoppable Live Video
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 2,077.37ms on /wp-admin/edit.php?post_type=firework_video_feed)
  • Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 1,515.95ms on /wp-admin/index.php?page=firework-videos-wizard)
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3539.90 ▲3.66
Dashboard /wp-admin4.60 ▲1.292,422.45 ▲2,377.47
Posts /wp-admin/edit.php4.73 ▲1.372,078.38 ▲2,029.50
Add New Post /wp-admin/post-new.php7.00 ▲1.112,099.56 ▲2,007.60
Media Library /wp-admin/upload.php4.66 ▲1.442,054.58 ▲2,023.04
Dashboard /wp-admin/edit.php?post_type=firework_video_feed&page=firework-dashboard4.582,346.71
Settings /wp-admin/edit.php?post_type=firework_video_feed&page=firework-video-settings4.582,046.80
Video Feeds /wp-admin/edit.php?post_type=firework_video_feed4.712,077.37
/wp-admin/index.php?page=firework-videos-wizard3.9830.44

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 359 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
firework-videos-client-id-secret
can_compress_scripts
widget_firework_videos_widget
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Firework Shoppable Live Video
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5614.37 ▲0.091.08 ▼0.8639.27 ▼0.06
Dashboard /wp-admin2,249 ▲795.65 ▼0.0180.28 ▼16.6980.49 ▲36.96
Posts /wp-admin/edit.php2,152 ▲521.99 ▼0.0435.05 ▼6.7238.27 ▲5.87
Add New Post /wp-admin/post-new.php6,240 ▲4,70519.28 ▲1.08864.36 ▲230.1536.89 ▼42.18
Media Library /wp-admin/upload.php1,454 ▲604.08 ▼0.1497.27 ▼2.2976.33 ▲31.38
Dashboard /wp-admin/edit.php?post_type=firework_video_feed&page=firework-dashboard5,2724.8997.9148.04
Settings /wp-admin/edit.php?post_type=firework_video_feed&page=firework-video-settings9701.7925.2830.45
Video Feeds /wp-admin/edit.php?post_type=firework_video_feed1,1474.42124.6334.13
/wp-admin/index.php?page=firework-videos-wizard3121.90874.929.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_firework_videos_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/firework-videos/includes/admin/views/_wizard-breadcrumbs.php
  • 84× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/firework-videos/includes/admin/views/_metabox-settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/firework-videos/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/firework-videos/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
    • > PHP Warning
      Use of undefined constant FIREWORK_VIDEOS_MIN_PHP - assumed 'FIREWORK_VIDEOS_MIN_PHP' (this will throw an Error in a future version of PHP) in wp-content/plugins/firework-videos/includes/startup-checks.php on line 41
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/firework-videos/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/firework-videos/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/firework-videos/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/firework-videos/includes/admin/views/_wizard-header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/firework-videos/includes/admin/views/_wizard-panel-3.php:4
    • > PHP Notice
      Trying to get property 'feed_type' of non-object in wp-content/plugins/firework-videos/includes/admin/views/_metabox-settings.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=firework_video_feed
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'length')" "TypeError: Cannot read properties of undefined (reading 'length')\n at Object.RepostVideo (/wp-content/plugins/firework-videos/library/scripts/admin.min.js?ver=5.8:612:17)\n at Object.init (/wp-content/plugins/firework-videos/library/scripts/admin.min.js?ver=5.8:92:8)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/firework-videos/library/scripts/admin.min.js?ver=5.8:649:6)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=firework_video_feed
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'length')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: create video, short video, live stream commerce, live streaming, shoppable video

firework-videos/firework-videos.php Passed 13 tests

"Firework Shoppable Live Video" version 6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Enables infinite storytelling using short videos across the internet

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin30,819 lines of code in 328 files:
LanguageFilesBlank linesComment linesLines of code
Sass1951,8771,3269,471
JSON8009,218
PHP991,5031,6845,920
JavaScript98989075,094
CSS517024752
SVG1000201
Markdown1320140
XML12023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.39
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces19
Interfaces0
Traits0
Classes71
▷ Abstract classes22.82%
▷ Concrete classes6997.18%
▷ Final classes00.00%
Methods252
▷ Static methods4317.06%
▷ Public methods21986.90%
▷ Protected methods176.75%
▷ Private methods166.35%
Functions49
▷ Named functions4285.71%
▷ Anonymous functions714.29%
Constants51
▷ Global constants4384.31%
▷ Class constants815.69%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
library/img/firework-horizontal-white.png10.25KB4.42KB▼ 56.84%
library/img/firework_logo.png11.69KB5.03KB▼ 56.97%
library/img/firework_logo_32x32.png1.74KB1.61KB▼ 7.26%
library/img/firework_logo_48x48.png3.13KB1.96KB▼ 37.25%
library/img/firework_logo_16x16.png0.66KB0.79KB0.00%