Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.43MB] [CPU: ▲7.83ms] Passed 4 tests
A check of server-side resources used by WP Smart TV
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲1.03 | 62.33 ▲20.64 |
Dashboard /wp-admin | 4.89 ▲1.55 | 61.29 ▼6.80 |
Posts /wp-admin/edit.php | 4.92 ▲1.56 | 59.39 ▲13.62 |
Add New Post /wp-admin/post-new.php | 7.49 ▲1.61 | 107.28 ▲5.36 |
Media Library /wp-admin/upload.php | 4.82 ▲1.59 | 53.11 ▲19.14 |
General Settings /wp-admin/admin.php?page=rovidx_smart_tv_options | 5.10 | 44.79 |
Recipe Builder /wp-admin/admin.php?page=wpstv_rdp | 5.10 | 44.38 |
Advertising /wp-admin/admin.php?page=rovidx_smart_tv_ad_options | 5.07 | 46.27 |
Import/Export /wp-admin/admin.php?page=rovidx_smart_tv_import_content | 5.08 | 46.20 |
Roku Publisher /wp-admin/admin.php?page=rovidx_smart_tv_roku_options | 5.09 | 44.76 |
Server storage [IO: ▲11.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 637 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
rovidx_smart_tv_roku_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
rovidx_smart_tv_ad_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Smart TV
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲231 | 13.97 ▼0.00 | 8.48 ▲6.69 | 49.11 ▲3.91 |
Dashboard /wp-admin | 2,260 ▲75 | 5.40 ▲0.44 | 107.08 ▼17.47 | 92.12 ▲32.66 |
Posts /wp-admin/edit.php | 2,166 ▲77 | 2.49 ▲0.49 | 42.45 ▲6.59 | 50.61 ▲16.60 |
Add New Post /wp-admin/post-new.php | 1,593 ▲79 | 18.68 ▲1.22 | 724.19 ▲39.92 | 40.18 ▼18.68 |
Media Library /wp-admin/upload.php | 1,460 ▲72 | 4.60 ▲0.41 | 116.11 ▲13.97 | 44.46 ▼1.71 |
General Settings /wp-admin/admin.php?page=rovidx_smart_tv_options | 1,032 | 2.23 | 30.33 | 32.51 |
Recipe Builder /wp-admin/admin.php?page=wpstv_rdp | 1,030 | 2.63 | 35.76 | 30.52 |
Advertising /wp-admin/admin.php?page=rovidx_smart_tv_ad_options | 973 | 2.26 | 29.11 | 29.59 |
Import/Export /wp-admin/admin.php?page=rovidx_smart_tv_import_content | 969 | 2.40 | 35.35 | 41.76 |
Roku Publisher /wp-admin/admin.php?page=rovidx_smart_tv_roku_options | 1,036 | 2.46 | 33.25 | 40.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- rovidx_smart_tv_roku_options
- rovidx_smart_tv_ad_options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-smart-tv/public/partials/wp-smart-tv-public-display.php
- > /wp-content/plugins/wp-smart-tv/admin/partials/wp-smart-tv-admin-display.php
- 54× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-tv/lib/cmb2-conditionals.php:264
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-smart-tv/lib/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/wp-smart-tv/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-smart-tv/lib/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-tv/lib/cmb2-plug-conditionals.php:177
- > PHP Warning
Use of undefined constant CMB2_ATTACHED_POSTS_FIELD_VERSION - assumed 'CMB2_ATTACHED_POSTS_FIELD_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-smart-tv/lib/WDS_CMB2_Attached_Posts.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-tv/lib/cmb2-fontawesome-picker.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-smart-tv/lib/cmb-field-select2.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/wp-smart-tv/lib/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/wp-smart-tv/lib/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: html5 video player, video cms, firetv, roku, iptv
wp-smart-tv/wp-smart-tv.php Passed 13 tests
The main PHP file in "WP Smart TV" ver. 2.1.8 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Toolkit for powering a video streaming service using WordPress
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
Success! There were no dangerous files found in this plugin141,944 lines of code in 392 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 53 | 5,480 | 1,727 | 42,896 |
JavaScript | 49 | 8,602 | 13,036 | 35,483 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 95 | 3,313 | 7,960 | 11,701 |
Sass | 61 | 1,490 | 470 | 9,214 |
JSON | 2 | 0 | 0 | 6,602 |
SVG | 8 | 0 | 3 | 2,932 |
Markdown | 3 | 247 | 0 | 765 |
HTML | 1 | 7 | 11 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 100 | |
▷ Abstract classes | 9 | 9.00% |
▷ Concrete classes | 91 | 91.00% |
▷ Final classes | 0 | 0.00% |
Methods | 757 | |
▷ Static methods | 100 | 13.21% |
▷ Public methods | 608 | 80.32% |
▷ Protected methods | 100 | 13.21% |
▷ Private methods | 49 | 6.47% |
Functions | 45 | |
▷ Named functions | 44 | 97.78% |
▷ Anonymous functions | 1 | 2.22% |
Constants | 37 | |
▷ Global constants | 16 | 43.24% |
▷ Class constants | 21 | 56.76% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
48 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/rovidx-smart-tv-for-wordpress-movies.icon.png | 0.98KB | 0.12KB | ▼ 87.50% |
admin/lib/mdb/img/overlays/06.png | 0.21KB | 0.10KB | ▼ 52.61% |
assets/img/rovidx-smart-tv-for-wordpress-cc-settings.icon.png | 0.99KB | 0.15KB | ▼ 84.97% |
lib/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/lib/mdb/img/overlays/03.png | 0.20KB | 0.10KB | ▼ 53.11% |