Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.06MB] [CPU: ▼150.43ms] Passed 4 tests
Analyzing server-side resources used by LezWatch.TV News and Information
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 33.68 ▼0.70 |
Dashboard /wp-admin | 3.11 ▲0.05 | 37.42 ▼8.41 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 43.34 ▲2.16 |
Add New Post /wp-admin/post-new.php | 5.01 ▼0.42 | 61.30 ▼594.76 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 35.60 ▲7.26 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 5 new options
New WordPress options |
---|
widget_byq-dead-char |
widget_lwtv-of-the-day |
widget_byq-in-this-year |
widget_byq-statistics |
widget_byq-on-this-day |
Browser metrics Passed 4 tests
LezWatch.TV News and Information: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲119 | 15.76 ▲0.14 | 8.13 ▼0.74 | 50.05 ▼0.18 |
Dashboard /wp-admin | 2,973 ▲39 | 5.91 ▼0.14 | 146.17 ▼8.68 | 106.99 ▲0.86 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 66.24 ▼1.08 | 86.89 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,689 ▲6 | 18.73 ▼0.07 | 390.00 ▼25.81 | 104.80 ▼1.79 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.04 | 168.16 ▼0.69 | 115.18 ▼7.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 5 options
- widget_lwtv-of-the-day
- widget_byq-in-this-year
- widget_byq-statistics
- widget_byq-on-this-day
- widget_byq-dead-char
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lezwatchtv/widgets/of-the-day.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lezwatchtv/widgets/last-death.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lezwatchtv/widgets/statistics.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lezwatchtv/widgets/this-year.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lezwatchtv/widgets/last-death.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lezwatchtv/lezwatchtv-main.php:46
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lezwatchtv/widgets/on-this-day.php:8
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: television, queer, lesbian, block, tv
lezwatchtv/lezwatchtv-main.php 92% from 13 tests
This is the main PHP file of "LezWatch.TV News and Information" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lezwatchtv.php" instead of "lezwatchtv-main.php")
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 plugin9,233 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,278 |
CSS | 3 | 43 | 53 | 1,224 |
PHP | 10 | 171 | 310 | 599 |
JavaScript | 5 | 16 | 45 | 93 |
Sass | 4 | 2 | 1 | 31 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 5 | 13.89% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 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 |
assets/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
assets/css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |