Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▲0.66ms] 75% from 4 tests
An overview of server-side resources used by WP YouTube Lyte
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,530.55ms on /wp-admin/options-general.php?page=lyte_settings_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 40.05 ▲1.74 |
Dashboard /wp-admin | 3.59 ▲0.29 | 48.06 ▲0.86 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 49.87 ▲6.01 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 91.88 ▼5.36 |
Media Library /wp-admin/upload.php | 3.51 ▲0.29 | 39.12 ▲5.41 |
WP YouTube Lyte /wp-admin/options-general.php?page=lyte_settings_page | 5.34 | 1,530.55 |
Lyte partner /wp-admin/admin.php?page=lyte_partners | 4.60 | 449.98 |
Server storage [IO: ▲0.34MB] [DB: ▲0.17MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- There were 3 files (0.52KB) illegally modified outside of "wp-content/plugins/wp-youtube-lyte/" and "wp-content/uploads/"
- (new file) wp-content/cache/lyteCache/doubleCheckLyteThumbnailCache.txt
- (new file) wp-content/cache/lyteCache/index.html
- (new file) wp-content/cache/lyteCache/disableThumbFallback.txt
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_wylwidget |
can_compress_scripts |
lyte_version |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP YouTube Lyte
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.65 ▼0.62 | 1.62 ▼0.16 | 41.39 ▼4.87 |
Dashboard /wp-admin | 2,216 ▲25 | 5.91 ▲1.03 | 111.06 ▲5.43 | 38.40 ▼4.20 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.01 ▼0.16 | 40.54 ▼1.25 | 36.07 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.40 ▲5.63 | 681.82 ▲34.51 | 58.62 ▼9.27 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.12 | 97.01 ▼1.98 | 46.15 ▲0.70 |
WP YouTube Lyte /wp-admin/options-general.php?page=lyte_settings_page | 1,375 | 2.19 | 41.04 | 29.30 |
Lyte partner /wp-admin/admin.php?page=lyte_partners | 931 | 2.18 | 30.26 | 31.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.17MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_wylwidget
- lyte_version
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-youtube-lyte/lyteCache.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-youtube-lyte/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-youtube-lyte/player_sizes.inc.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: youtube, lazy load, video, gdpr, performance
wp-youtube-lyte/wp-youtube-lyte.php Passed 13 tests
The entry point to "WP YouTube Lyte" version 1.7.22 is a PHP file that has certain tags in its header comment area
54 characters long description:
Lite and accessible YouTube audio and video embedding.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,962 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 224 | 219 | 1,608 |
PO File | 8 | 426 | 563 | 1,087 |
JavaScript | 7 | 33 | 60 | 243 |
CSS | 2 | 0 | 13 | 21 |
HTML | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
external/do_not_donate_smallest.png | 9.36KB | 3.91KB | ▼ 58.24% |
lyte/lytesprite_claes.png | 9.84KB | 4.40KB | ▼ 55.22% |
lyte/lytesprite_2014.png | 3.78KB | 3.01KB | ▼ 20.53% |
lyte/lytesprite.png | 4.73KB | 3.55KB | ▼ 24.80% |
screenshot-1.png | 25.56KB | 22.67KB | ▼ 11.29% |