Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼266.49ms] Passed 4 tests
An overview of server-side resources used by Related YouTube Videos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.34 | 33.64 ▲13.08 |
Dashboard /wp-admin | 3.29 ▲0.24 | 48.88 ▲5.38 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 42.92 ▼4.06 |
Add New Post /wp-admin/post-new.php | 5.65 ▲0.22 | 94.56 ▼1,064.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.22 | 35.21 ▼2.96 |
Settings /wp-admin/admin.php?page=relatedyoutubevideos_settings | 3.24 | 32.45 |
Related YouTube Videos /wp-admin/admin.php?page=relatedyoutubevideos_index | 3.23 | 30.29 |
Clear Cache Manually /wp-admin/admin.php?page=relatedyoutubevideos_clearcache | 3.21 | 27.86 |
Server storage [IO: ▲5.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 153 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_relatedyoutubevideos |
Browser metrics Passed 4 tests
An overview of browser requirements for Related YouTube Videos
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲127 | 16.06 ▲0.38 | 9.18 ▲1.61 | 48.77 ▼0.14 |
Dashboard /wp-admin | 2,967 ▲114 | 5.94 ▲0.08 | 136.84 ▲5.99 | 105.95 ▲3.21 |
Posts /wp-admin/edit.php | 2,740 ▲34 | 2.69 ▼0.01 | 68.40 ▲3.51 | 85.32 ▼13.37 |
Add New Post /wp-admin/post-new.php | 2,060 ▲393 | 19.23 ▲0.39 | 363.47 ▼20.08 | 103.77 ▼4.45 |
Media Library /wp-admin/upload.php | 1,809 ▲37 | 5.03 ▲0.04 | 145.21 ▼14.14 | 122.73 ▲9.39 |
Settings /wp-admin/admin.php?page=relatedyoutubevideos_settings | 1,186 | 2.08 | 55.83 | 83.59 |
Related YouTube Videos /wp-admin/admin.php?page=relatedyoutubevideos_index | 2,215 | 2.09 | 58.00 | 134.31 |
Clear Cache Manually /wp-admin/admin.php?page=relatedyoutubevideos_clearcache | 1,004 | 2.06 | 52.46 | 40.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_relatedyoutubevideos
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 87× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/Calendar.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/TagManager.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/Cloudlatencytest.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/Books.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/Tasks.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/PlusDomains.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/Prediction.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/Deploymentmanager.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/MapsEngine.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/related-youtube-videos/lib/Google/Service/Logging.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (The widget backend for customizing the video request.)
related-youtube-videos/index.php 92% from 13 tests
Analyzing the main PHP file in "Related YouTube Videos" version 1.9.9
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("related-youtube-videos.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin170,857 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 12,036 | 32,611 | 170,038 |
HTML | 2 | 34 | 0 | 421 |
PO File | 3 | 80 | 82 | 212 |
CSS | 3 | 12 | 19 | 186 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 1.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3,083 | |
▷ Abstract classes | 6 | 0.19% |
▷ Concrete classes | 3,077 | 99.81% |
▷ Final classes | 0 | 0.00% |
Methods | 24,088 | |
▷ Static methods | 13 | 0.05% |
▷ Public methods | 24,019 | 99.71% |
▷ Protected methods | 32 | 0.13% |
▷ Private methods | 37 | 0.15% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 249 | |
▷ Global constants | 3 | 1.20% |
▷ Class constants | 246 | 98.80% |
▷ Public constants | 246 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.89KB | 13.86KB | ▼ 36.66% |
images/checkmark.png | 0.67KB | 0.60KB | ▼ 9.66% |
images/xmark.png | 0.58KB | 0.44KB | ▼ 24.54% |