Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.05MB] [CPU: ▼7.27ms] Passed 4 tests
A check of server-side resources used by Youtube Random Videos
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 31.97 ▼15.47 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.07 ▼4.23 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.55 ▲2.96 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 79.40 ▼9.35 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.91 ▼0.01 |
Youtube Settings /wp-admin/options-general.php?page=override_settings | 3.25 | 29.61 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Youtube Random Videos: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.23 ▼1.13 | 1.59 ▼0.58 | 41.35 ▼4.51 |
Dashboard /wp-admin | 2,212 ▲21 | 4.84 ▼1.07 | 109.53 ▼11.00 | 37.81 ▼7.35 |
Posts /wp-admin/edit.php | 2,098 ▲12 | 2.05 ▼0.01 | 40.23 ▲6.11 | 36.14 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6,513 ▲4,999 | 20.22 ▲2.61 | 887.51 ▲201.85 | 55.03 ▼0.35 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▼0.01 | 93.88 ▼18.09 | 42.51 ▼3.56 |
Youtube Settings /wp-admin/options-general.php?page=override_settings | 868 | 2.07 | 23.29 | 27.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+161
Undefined property: wpYoutubeKeyword::$tname
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+179
Undefined variable: yt_override_settings
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+188
Undefined variable: yt_override_keyword
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+194
Undefined variable: yt_override_n_keyword
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+200
Undefined variable: yt_override_random_placement
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+215
Undefined variable: yt_override_size
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+229
Undefined variable: yt_override_location
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=override_settings
- > Notice in wp-content/plugins/youtube-random-videos/youtube-random-videos.php+243
Undefined variable: yt_override_align
SRP Passed 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
The SRP test was a success
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
youtube-random-videos/youtube-random-videos.php Passed 13 tests
The main PHP script in "Youtube Random Videos" version 1.1 is automatically included on every request by WordPress
62 characters long description:
Automatically Embed Videos Into Your Website Based on Keyword.
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
No dangerous file extensions were detected410 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 86 | 53 | 376 |
CSS | 1 | 3 | 0 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 6.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin