Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.79ms] Passed 4 tests
An overview of server-side resources used by Cool YT Player
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.07 ▼4.57 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.49 ▼9.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.80 ▲7.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.18 ▼10.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.46 ▲4.85 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cool YT Player
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲167 | 14.18 ▼0.22 | 12.21 ▲10.25 | 40.85 ▼4.74 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▼0.08 | 96.20 ▼21.55 | 37.76 ▼2.90 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.02 | 42.26 ▲3.46 | 35.74 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.61 ▼0.38 | 649.78 ▼20.80 | 54.56 ▼9.50 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.03 | 96.78 ▼4.61 | 40.51 ▼1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cool-yt-player/includes/includes.php
- > /wp-content/plugins/cool-yt-player/settings.php
- > /wp-content/plugins/cool-yt-player/includes/youtube_video_wrapper.php
- > /wp-content/plugins/cool-yt-player/public/public.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cool-yt-player/mcytp.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
7 plugin tags: video player, youtube, insert, embed, shortcodes...
cool-yt-player/mcytp.php 92% from 13 tests
"Cool YT Player" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cool-yt-player.php" instead of "mcytp.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 plugin438 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 2 | 7 | 200 |
JavaScript | 1 | 32 | 82 | 147 |
PHP | 6 | 30 | 57 | 91 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
19 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/stop_24x24.png | 0.18KB | 0.13KB | ▼ 25.81% |
public/img/settings_64x64.png | 1.09KB | 0.69KB | ▼ 36.76% |
public/img/fullscreen_64x64.png | 0.53KB | 0.25KB | ▼ 53.25% |
public/img/restart_64x64.png | 1.41KB | 1.10KB | ▼ 21.57% |
public/img/stop_64x64.png | 0.28KB | 0.17KB | ▼ 40.42% |