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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 39.90 ▲3.66 |
Dashboard /wp-admin | 4.60 ▲1.29 | 2,422.45 ▲2,377.47 |
Posts /wp-admin/edit.php | 4.73 ▲1.37 | 2,078.38 ▲2,029.50 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.11 | 2,099.56 ▲2,007.60 |
Media Library /wp-admin/upload.php | 4.66 ▲1.44 | 2,054.58 ▲2,023.04 |
Dashboard /wp-admin/edit.php?post_type=firework_video_feed&page=firework-dashboard | 4.58 | 2,346.71 |
Settings /wp-admin/edit.php?post_type=firework_video_feed&page=firework-video-settings | 4.58 | 2,046.80 |
Video Feeds /wp-admin/edit.php?post_type=firework_video_feed | 4.71 | 2,077.37 |
/wp-admin/index.php?page=firework-videos-wizard | 3.98 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲56 | 14.37 ▲0.09 | 1.08 ▼0.86 | 39.27 ▼0.06 |
Dashboard /wp-admin | 2,249 ▲79 | 5.65 ▼0.01 | 80.28 ▼16.69 | 80.49 ▲36.96 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 1.99 ▼0.04 | 35.05 ▼6.72 | 38.27 ▲5.87 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,705 | 19.28 ▲1.08 | 864.36 ▲230.15 | 36.89 ▼42.18 |
Media Library /wp-admin/upload.php | 1,454 ▲60 | 4.08 ▼0.14 | 97.27 ▼2.29 | 76.33 ▲31.38 |
Dashboard /wp-admin/edit.php?post_type=firework_video_feed&page=firework-dashboard | 5,272 | 4.89 | 97.91 | 48.04 |
Settings /wp-admin/edit.php?post_type=firework_video_feed&page=firework-video-settings | 970 | 1.79 | 25.28 | 30.45 |
Video Feeds /wp-admin/edit.php?post_type=firework_video_feed | 1,147 | 4.42 | 124.63 | 34.13 |
/wp-admin/index.php?page=firework-videos-wizard | 312 | 1.90 | 874.92 | 9.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 195 | 1,877 | 1,326 | 9,471 |
JSON | 8 | 0 | 0 | 9,218 |
PHP | 99 | 1,503 | 1,684 | 5,920 |
JavaScript | 9 | 898 | 907 | 5,094 |
CSS | 5 | 170 | 24 | 752 |
SVG | 10 | 0 | 0 | 201 |
Markdown | 1 | 32 | 0 | 140 |
XML | 1 | 2 | 0 | 23 |
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 code | 0.33 |
Average class complexity | 7.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 2 | 2.82% |
▷ Concrete classes | 69 | 97.18% |
▷ Final classes | 0 | 0.00% |
Methods | 252 | |
▷ Static methods | 43 | 17.06% |
▷ Public methods | 219 | 86.90% |
▷ Protected methods | 17 | 6.75% |
▷ Private methods | 16 | 6.35% |
Functions | 49 | |
▷ Named functions | 42 | 85.71% |
▷ Anonymous functions | 7 | 14.29% |
Constants | 51 | |
▷ Global constants | 43 | 84.31% |
▷ Class constants | 8 | 15.69% |
▷ Public constants | 8 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/img/firework-horizontal-white.png | 10.25KB | 4.42KB | ▼ 56.84% |
library/img/firework_logo.png | 11.69KB | 5.03KB | ▼ 56.97% |
library/img/firework_logo_32x32.png | 1.74KB | 1.61KB | ▼ 7.26% |
library/img/firework_logo_48x48.png | 3.13KB | 1.96KB | ▼ 37.25% |
library/img/firework_logo_16x16.png | 0.66KB | 0.79KB | 0.00% |