Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.63MB] [CPU: ▼270.97ms] Passed 4 tests
Analyzing server-side resources used by Live TV Player - Worldwide Live TV Channels Player for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.48 ▲4.96 | 78.78 ▲23.52 |
Dashboard /wp-admin | 8.50 ▲5.09 | 64.92 ▲31.17 |
Posts /wp-admin/edit.php | 8.50 ▲4.85 | 64.13 ▲27.56 |
Add New Post /wp-admin/post-new.php | 10.57 ▲3.60 | 115.98 ▼1,158.28 |
Media Library /wp-admin/upload.php | 8.50 ▲5.20 | 46.68 ▲23.31 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.50 | 50.17 |
Server storage [IO: ▲7.44MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 571 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wptv_general_settings |
wptv_display_settings |
fs_accounts |
fs_gdpr |
fs_debug_mode |
wptv_color_settings |
fs_active_plugins |
wptv_install_time |
wptv_player_settings |
wptv_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Live TV Player - Worldwide Live TV Channels Player for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,264 ▲510 | 19.44 ▲3.72 | 21.00 ▲14.10 | 2.34 ▼0.47 |
Dashboard /wp-admin | 3,185 ▲327 | 7.82 ▲1.58 | 146.54 ▲13.37 | 172.97 ▲3.78 |
Posts /wp-admin/edit.php | 3,010 ▲319 | 5.43 ▲2.20 | 87.80 ▲23.04 | 158.83 ▲12.50 |
Add New Post /wp-admin/post-new.php | 1,757 ▲96 | 21.69 ▼0.10 | 431.06 ▼19.52 | 165.52 ▲4.97 |
Media Library /wp-admin/upload.php | 1,800 ▲105 | 6.29 ▲0.82 | 113.94 ▼45.68 | 205.52 ▲8.69 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,748 | 5.21 | 82.99 | 118.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-live-tv/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- fs_active_plugins
- fs_gdpr
- wptv_general_settings
- fs_debug_mode
- wptv_color_settings
- wptv_player_settings
- wptv_do_activation_redirect
- wptv_display_settings
- wptv_install_time
- fs_accounts
- ...
Smoke tests 50% from 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)
Good news, no errors were detected
SRP 0% from 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
Please fix the following
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-live-tv/includes/admin/views/get-started/index.php
- > /wp-content/plugins/wp-live-tv/includes/admin/views/get-started/widget.php
- > /wp-content/plugins/wp-live-tv/includes/admin/views/get-started/gutenberg.php
- > /wp-content/plugins/wp-live-tv/includes/admin/views/get-started/elementor.php
- > /wp-content/plugins/wp-live-tv/freemius/templates/ajax-loader.php
- > /wp-content/plugins/wp-live-tv/includes/admin/views/get-started/new.php
- 55× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wptv() in wp-content/plugins/wp-live-tv/templates/shortcode/player.php:8
- > PHP Fatal error
Uncaught Error: Class 'League\\Csv\\Exception' not found in wp-content/plugins/wp-live-tv/vendor/league/csv/src/UnavailableStream.php:16
- > PHP Fatal error
Uncaught Error: Interface 'League\\Csv\\ByteSequence' not found in wp-content/plugins/wp-live-tv/vendor/league/csv/src/AbstractCsv.php:34
- > PHP Warning
include_once(WPTV_INCLUDES/admin/views/get-started/elementor.php): failed to open stream: No such file or directory in wp-content/plugins/wp-live-tv/includes/admin/views/get-started/index.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-live-tv/includes/base.php:4
- > PHP Fatal error
Uncaught Error: Class 'League\\Csv\\Exception' not found in wp-content/plugins/wp-live-tv/vendor/league/csv/src/CannotInsertRecord.php:19
- > PHP Warning
include_once(WPTV_INCLUDES/admin/views/get-started/import.php): failed to open stream: No such file or directory in wp-content/plugins/wp-live-tv/includes/admin/views/get-started/index.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-live-tv/includes/admin/views/get-started/import.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wp-live-tv/freemius/templates/account/partials/addon.php:9
- > PHP Warning
Use of undefined constant WPTV_INCLUDES - assumed 'WPTV_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-live-tv/includes/admin/views/get-started/index.php on line 53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
wp-live-tv/plugin.php 85% from 13 tests
The entry point to "Live TV Player - Worldwide Live TV Channels Player for WordPress" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-live-tv.php" instead of "plugin.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected71,574 lines of code in 504 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 187 | 8,770 | 18,793 | 36,441 |
SVG | 260 | 0 | 1 | 17,676 |
JSON | 4 | 0 | 0 | 13,792 |
JavaScript | 22 | 463 | 220 | 1,895 |
Sass | 16 | 412 | 2 | 1,752 |
CSS | 15 | 0 | 0 | 18 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 52.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 3 | 3.57% |
▷ Concrete classes | 81 | 96.43% |
▷ Final classes | 6 | 7.41% |
Methods | 1,509 | |
▷ Static methods | 260 | 17.23% |
▷ Public methods | 1,116 | 73.96% |
▷ Protected methods | 55 | 3.64% |
▷ Private methods | 338 | 22.40% |
Functions | 138 | |
▷ Named functions | 112 | 81.16% |
▷ Anonymous functions | 26 | 18.84% |
Constants | 158 | |
▷ Global constants | 106 | 67.09% |
▷ Class constants | 52 | 32.91% |
▷ Public constants | 48 | 92.31% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.65MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/get-started/import-channels.png | 31.18KB | 13.77KB | ▼ 55.84% |
assets/vendor/lou-multi-select/img/switch.png | 0.53KB | 0.64KB | 0.00% |
assets/images/get-started/tv-archive.png | 21.80KB | 11.12KB | ▼ 49.01% |
freemius/assets/img/wp-radio-ads-playaer.png | 35.40KB | 15.38KB | ▼ 56.56% |