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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.76ms] Passed 4 tests
Server-side resources used by Sticky Youtube Video Onscroll
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.04 ▼5.51 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.38 ▼14.75 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.64 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.32 ▲6.73 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.75 ▲1.54 |
Sticky Youtube Video on Scroll /wp-admin/options-general.php?page=syvos | 3.29 | 33.88 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Sticky Youtube Video Onscroll: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲84 | 13.95 ▼0.27 | 10.47 ▲8.69 | 41.14 ▼3.43 |
Dashboard /wp-admin | 2,202 ▲24 | 5.59 ▼0.12 | 91.99 ▼13.74 | 42.91 ▲1.46 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.09 | 38.99 ▼1.66 | 35.87 ▲0.27 |
Add New Post /wp-admin/post-new.php | 6,249 ▲4,719 | 20.91 ▼2.18 | 828.26 ▲236.48 | 78.14 ▲17.51 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.28 ▲0.08 | 96.66 ▼5.57 | 44.77 ▼1.50 |
Sticky Youtube Video on Scroll /wp-admin/options-general.php?page=syvos | 870 | 2.01 | 24.60 | 29.89 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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 following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sticky-youtube-video-onscroll/includes/plugin-functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sticky-youtube-video-onscroll/admin/single-page-post-options.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-youtube-video-onscroll/admin/admin-options.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Banner of the plugin.), #2 (Icon of the plugin.)
sticky-youtube-video-onscroll/sticky-youtube-video-onscroll.php 92% from 13 tests
Analyzing the main PHP file in "Sticky Youtube Video Onscroll" version 1.0.2
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 292 characters long)
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
Good job! No executable or dangerous file extensions detected640 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 95 | 84 | 486 |
CSS | 1 | 9 | 1 | 154 |
JavaScript | 1 | 2 | 3 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 69.41KB | 33.24KB | ▼ 52.10% |
assets/icon-256x256.png | 41.85KB | 19.42KB | ▼ 53.61% |