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
Installer ran successfully
Server metrics [RAM: ▲1.65MB] [CPU: ▲45.27ms] Passed 4 tests
Analyzing server-side resources used by Roku Direct Publisher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.49 | 95.85 ▲58.72 |
Dashboard /wp-admin | 5.03 ▲1.69 | 90.60 ▲33.45 |
Posts /wp-admin/edit.php | 5.09 ▲1.73 | 96.52 ▲51.93 |
Add New Post /wp-admin/post-new.php | 7.61 ▲1.72 | 128.49 ▲37.01 |
Media Library /wp-admin/upload.php | 4.91 ▲1.68 | 93.35 ▲58.68 |
Categories /wp-admin/edit-tags.php?taxonomy=roku_category&post_type=roku_video | 5.04 | 86.08 |
All Videos /wp-admin/edit.php?post_type=roku_video | 5.00 | 79.69 |
Settings /wp-admin/edit.php?post_type=roku_video&page=roku_direct_publisher | 4.84 | 74.87 |
Add New /wp-admin/post-new.php?post_type=roku_video | 5.15 | 101.62 |
Genres /wp-admin/edit-tags.php?taxonomy=roku_genre&post_type=roku_video | 4.92 | 91.32 |
Tags /wp-admin/edit-tags.php?taxonomy=roku_tag&post_type=roku_video | 4.90 | 83.28 |
Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 143 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
roku_genre_children |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Roku Direct Publisher
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 14.35 ▲0.00 | 1.74 ▲0.25 | 43.45 ▲3.74 |
Dashboard /wp-admin | 2,255 ▲77 | 5.63 ▼0.04 | 95.05 ▼2.58 | 47.65 ▲2.28 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.00 ▼0.04 | 39.09 ▲3.47 | 37.39 ▼0.42 |
Add New Post /wp-admin/post-new.php | 6,690 ▲5,162 | 26.01 ▲2.82 | 1,038.74 ▲398.05 | 41.36 ▼9.50 |
Media Library /wp-admin/upload.php | 1,463 ▲66 | 4.21 ▲0.01 | 95.15 ▼2.50 | 44.80 ▼1.05 |
Categories /wp-admin/edit-tags.php?taxonomy=roku_category&post_type=roku_video | 2,060 | 7.39 | 171.87 | 37.86 |
All Videos /wp-admin/edit.php?post_type=roku_video | 1,148 | 1.99 | 31.04 | 30.53 |
Settings /wp-admin/edit.php?post_type=roku_video&page=roku_direct_publisher | 915 | 2.04 | 24.90 | 26.74 |
Add New /wp-admin/post-new.php?post_type=roku_video | 3,109 | 8.05 | 164.27 | 42.62 |
Genres /wp-admin/edit-tags.php?taxonomy=roku_genre&post_type=roku_video | 2,520 | 2.17 | 29.29 | 37.92 |
Tags /wp-admin/edit-tags.php?taxonomy=roku_tag&post_type=roku_video | 1,307 | 2.16 | 27.38 | 29.18 |
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 does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- roku_genre_children
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=roku_video&page=roku_direct_publisher
- > Notice in wp-content/plugins/direct-publisher-for-roku/lib/settings.php+54
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/direct-publisher-for-roku/roku-direct-publisher.php
- 52× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/direct-publisher-for-roku/vendor/advanced-custom-fields/core/controllers/third_party.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function roku_direct_publisher\\feed\\add_action() in wp-content/plugins/direct-publisher-for-roku/lib/feed.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/direct-publisher-for-roku/vendor/advanced-custom-fields/core/controllers/export.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function roku_direct_publisher\\format\\add_action() in wp-content/plugins/direct-publisher-for-roku/taxonomies/format.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/direct-publisher-for-roku/vendor/advanced-custom-fields/core/controllers/input.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/direct-publisher-for-roku/vendor/advanced-custom-fields/core/controllers/addons.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function roku_direct_publisher\\rating\\add_action() in wp-content/plugins/direct-publisher-for-roku/taxonomies/rating.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/direct-publisher-for-roku/vendor/advanced-custom-fields/core/controllers/revisions.php:30
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/direct-publisher-for-roku/vendor/advanced-custom-fields/core/fields/file.php:3
- > PHP Warning
include_once(ROKU_DIRECT_PUBLISHER_DIRvendor/advanced-custom-fields/acf.php): failed to open stream: No such file or directory in wp-content/plugins/direct-publisher-for-roku/lib/acf.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
4 plugin tags: roku, video, streaming, direct publisher
direct-publisher-for-roku/roku-direct-publisher.php 92% from 13 tests
The main file in "Roku Direct Publisher" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("direct-publisher-for-roku.php" instead of "roku-direct-publisher.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected37,801 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 24 | 9,701 | 14,112 | 21,302 |
PHP | 53 | 4,148 | 4,687 | 10,040 |
JavaScript | 6 | 2,120 | 1,592 | 4,139 |
CSS | 5 | 685 | 379 | 2,320 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 278 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 278 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 71 | |
▷ Named functions | 71 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/advanced-custom-fields/core/fields/date_picker/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/advanced-custom-fields/core/fields/date_picker/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/advanced-custom-fields/core/fields/date_picker/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/advanced-custom-fields/core/fields/date_picker/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vendor/advanced-custom-fields/core/fields/date_picker/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |