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.01MB] [CPU: ▼6.96ms] Passed 4 tests
Server-side resources used by Switch Video Quality
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.32 ▲0.96 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.67 ▼3.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.31 ▼1.88 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.60 ▼23.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.35 ▲6.67 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Switch Video Quality
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.16 ▼0.19 | 1.83 ▼0.12 | 46.78 ▲0.60 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.03 | 85.82 ▼2.46 | 38.93 ▼0.68 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▲0.04 | 39.80 ▼0.66 | 35.74 ▲1.94 |
Add New Post /wp-admin/post-new.php | 6,436 ▲4,910 | 26.26 ▲3.11 | 893.26 ▲257.14 | 64.58 ▲13.46 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.01 | 101.65 ▼6.27 | 45.12 ▼0.16 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/switch-video-quality/template/svq_embeds.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/switch-video-quality/switch_video_quality.php:16
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 23 tag instead of maximum 10
switch-video-quality/switch_video_quality.php 85% from 13 tests
Analyzing the main PHP file in "Switch Video Quality" version 1.5.7
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("switch-video-quality.php" instead of "switch_video_quality.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,342 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 7 | 22 | 930 |
JavaScript | 6 | 52 | 74 | 720 |
PHP | 2 | 52 | 66 | 549 |
PO File | 1 | 44 | 46 | 125 |
SVG | 3 | 0 | 1 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
11 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/svq_playlist_play.png | 0.96KB | 1.02KB | 0.00% |
img/svq_control.png | 0.41KB | 0.51KB | 0.00% |
img/svq_overlay_icons.png | 2.42KB | 0.92KB | ▼ 61.87% |
img/svq_controls.png | 1.32KB | 0.35KB | ▼ 73.59% |
img/svq_close.png | 0.47KB | 0.47KB | 0.00% |