Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.28MB] [CPU: ▼4.92ms] Passed 4 tests
Server-side resources used by TubEntertain
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 36.87 ▼4.13 |
Dashboard /wp-admin | 3.58 ▲0.28 | 45.11 ▼6.46 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 45.04 ▲0.05 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 91.16 ▼9.15 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 45.05 ▲11.35 |
Server storage [IO: ▲10.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 54 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp__tubconfig |
wp__tubtwitterApi |
wp__tubuser |
wp__tubprovideo |
wp__tubfavorite |
New WordPress options |
---|
TubentertainVersion |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by TubEntertain
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,010 ▲275 | 15.11 ▲0.80 | 35.21 ▲33.60 | 36.79 ▼2.97 |
Dashboard /wp-admin | 2,220 ▲35 | 4.90 ▲0.02 | 94.68 ▼12.77 | 65.31 ▲23.47 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 1.98 ▼0.07 | 34.72 ▼4.32 | 32.11 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,677 ▲144 | 22.30 ▼0.89 | 732.22 ▲48.01 | 51.08 ▼3.67 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.12 ▼0.05 | 109.11 ▲11.07 | 92.85 ▲45.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp__tubtwitterApi
- wp__tubconfig
- wp__tubprovideo
- wp__tubfavorite
- wp__tubuser
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- TubentertainVersion
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tubentertain/tubentertain.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Tags: There are too many tags (92 tag instead of maximum 10)
tubentertain/tubentertain.php 85% from 13 tests
This is the main PHP file of "TubEntertain" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 312 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected7,472 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 74 | 44 | 5,209 |
PHP | 1 | 2,042 | 319 | 1,626 |
SVG | 1 | 0 | 0 | 565 |
JavaScript | 1 | 4 | 10 | 72 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 24 | |
▷ Static methods | 10 | 41.67% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.46MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/border.png | 0.07KB | 0.10KB | 0.00% |
css/images/YouTube-icon.png | 1.58KB | 1.49KB | ▼ 5.99% |
css/images/tv.png | 29.26KB | 1.31KB | ▼ 95.52% |
css/images/inError.png | 303.32KB | 52.63KB | ▼ 82.65% |
css/images/overlay.png | 0.11KB | 0.15KB | 0.00% |