Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼11.17ms] Passed 4 tests
This is a short check of server-side resources used by Broken Link Checker for YouTube
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.09 | 44.97 ▼2.63 |
Dashboard /wp-admin | 3.72 ▲0.08 | 54.49 ▼10.65 |
Posts /wp-admin/edit.php | 3.77 ▲0.09 | 49.06 ▼5.02 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.09 | 87.36 ▼26.38 |
Media Library /wp-admin/upload.php | 3.58 ▲0.09 | 44.35 ▼0.04 |
YouTube Checker /wp-admin/tools.php?page=youtube_link_checker | 3.54 | 36.56 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
ytlc_logfile |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Broken Link Checker for YouTube
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.38 ▼0.00 | 1.70 ▼0.46 | 43.31 ▼0.39 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▲0.03 | 88.38 ▼6.36 | 37.77 ▼4.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.03 | 36.08 ▲0.12 | 32.49 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,535 ▲4 | 23.31 ▲0.18 | 686.83 ▲4.73 | 65.96 ▲4.01 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.14 ▲0.01 | 109.96 ▼14.73 | 43.98 ▼4.66 |
YouTube Checker /wp-admin/tools.php?page=youtube_link_checker | 825 | 2.01 | 25.18 | 28.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- ytlc_logfile
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/broken-link-checker-for-youtube/youtube-link-checker.php
- > /wp-content/plugins/broken-link-checker-for-youtube/youtube-link-functions.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/broken-link-checker-for-youtube/templates/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: youtube, link checker, broken links, embed video, video...
broken-link-checker-for-youtube/youtube-link-checker.php 92% from 13 tests
This is the main PHP file of "Broken Link Checker for YouTube" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("broken-link-checker-for-youtube.php" instead of "youtube-link-checker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin521 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 120 | 133 | 521 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 43.48% |
▷ Protected methods | 2 | 8.70% |
▷ Private methods | 11 | 47.83% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/yt_logo_rgb_light.png | 19.98KB | 8.66KB | ▼ 56.67% |