Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/live-tv/index.php+23
Undefined variable: pageid1
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.99ms] Passed 4 tests
This is a short check of server-side resources used by LIVE TV
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.65 ▼32.91 |
Dashboard /wp-admin | 2.05 ▼1.26 | 4.89 ▼46.64 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.44 ▼44.30 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.99 ▼100.09 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.87 ▼29.73 |
Server storage [IO: ▲1.11MB] [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: 24 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
livelivetv_page_name |
widget_recent-comments |
widget_theysaidso_widget |
widget_live_tv |
widget_recent-posts |
livelivetv_page_id |
livelivetv_page_title |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LIVE TV
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 14.35 ▲0.09 | 2.60 ▲1.03 | 42.65 ▲2.76 |
Dashboard /wp-admin | 2,210 ▲33 | 5.61 ▼0.05 | 79.74 ▼16.06 | 72.09 ▲27.69 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 1.97 ▼0.00 | 40.31 ▲1.15 | 36.70 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 18.18 ▼5.34 | 651.16 ▼5.75 | 50.95 ▼0.22 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.15 ▼0.12 | 98.47 ▼3.50 | 79.54 ▲31.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/live-tv/index.php+23
Undefined variable: pageid1
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_live_tv
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/live-tv/remotelist.php
- > /wp-content/plugins/live-tv/list.php
- > /wp-content/plugins/live-tv/play.php
- > /wp-content/plugins/live-tv/wwidgetopen.php
- > /wp-content/plugins/live-tv/open.php
- > /wp-content/plugins/live-tv/live.php
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined index: url in wp-content/plugins/live-tv/play.php on line 82
- > PHP Notice
Undefined variable: app in wp-content/plugins/live-tv/play.php on line 132
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/live-tv/index.php:25
- > PHP Warning
Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-tv/play.php on line 132
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/live-tv/remotelist.php on line 75
- > PHP Notice
Undefined index: url in wp-content/plugins/live-tv/open.php on line 86
- > PHP Notice
Undefined index: HTTP_REFERER in wp-content/plugins/live-tv/wwidgetopen.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/live-tv/widget.php:11
- > PHP Notice
Undefined index: sawir in wp-content/plugins/live-tv/open.php on line 83
- > PHP Notice
Undefined index: sawir in wp-content/plugins/live-tv/open.php on line 83
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 30 tag instead of maximum 10
live-tv/index.php 92% from 13 tests
The principal PHP file in "LIVE TV" v. 1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("live-tv.php" instead of "index.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
No dangerous file extensions were detected803 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 138 | 58 | 742 |
JavaScript | 3 | 11 | 5 | 46 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu.png | 97.38KB | 34.20KB | ▼ 64.88% |
images/tvbg.png | 14.82KB | 0.15KB | ▼ 98.97% |
images/share.png | 24.91KB | 9.94KB | ▼ 60.08% |
images/play.png | 32.09KB | 11.97KB | ▼ 62.71% |
images/widgetadding.png | 55.01KB | 20.70KB | ▼ 62.38% |