Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.26ms] Passed 4 tests
Analyzing server-side resources used by Youtube Playlist Thumbs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.64 ▼8.91 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.09 ▼14.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 42.46 ▼4.63 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 90.91 ▼8.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.01 ▼3.89 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Youtube Playlist Thumbs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.29 ▼1.10 | 1.67 ▼0.74 | 43.22 ▲4.69 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼1.00 | 106.29 ▼2.64 | 39.83 ▼7.48 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 38.63 ▲5.23 | 33.11 ▼7.40 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 23.31 ▲5.25 | 595.17 ▼43.95 | 58.26 ▼6.61 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.04 | 94.60 ▼13.67 | 41.22 ▼1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: shortcode, playlist, video, thumbnails, youtube...
youtube-playlist-thumbs/youtube-playlist-thumbs.php Passed 13 tests
"Youtube Playlist Thumbs" version 0.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
Use the [ypt] shortcode to show a Youtube playlist. Videos within playlist can be triggered by links in page content.
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 plugin207 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 16 | 11 | 101 |
CSS | 1 | 0 | 4 | 77 |
PHP | 1 | 12 | 9 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
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 | 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
4 PNG files occupy 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 28.24KB | 7.99KB | ▼ 71.70% |
assets/screenshot-2.png | 24.43KB | 6.27KB | ▼ 74.33% |
assets/screenshot-4.png | 26.70KB | 7.72KB | ▼ 71.10% |
assets/screenshot-1.png | 240.62KB | 80.60KB | ▼ 66.50% |