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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.99ms] Passed 4 tests
Analyzing server-side resources used by Velocity - Video Lazy Loading for YouTube, Twitch and Vimeo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.09 ▼1.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.77 ▼1.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.23 ▲4.76 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 96.11 ▼1.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.12 ▲0.44 |
Velocity /wp-admin/options-general.php?page=velocity | 3.29 | 34.74 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Velocity - Video Lazy Loading for YouTube, Twitch and Vimeo: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 13.63 ▼0.74 | 5.80 ▲4.05 | 44.03 ▼2.94 |
Dashboard /wp-admin | 2,215 ▲26 | 5.80 ▼0.11 | 116.25 ▼0.39 | 38.61 ▼12.60 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.01 ▲0.01 | 41.26 ▲6.77 | 31.25 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,524 ▼18 | 17.77 ▼0.60 | 648.43 ▲10.84 | 52.18 ▲1.23 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▼0.01 | 95.67 ▼16.05 | 36.56 ▼12.23 |
Velocity /wp-admin/options-general.php?page=velocity | 1,170 | 3.03 | 41.85 | 94.35 |
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 detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/velocity/admin/builder/elements.php:5
- > PHP Warning
Use of undefined constant VELOCITY_TAGLINE - assumed 'VELOCITY_TAGLINE' (this will throw an Error in a future version of PHP) in wp-content/plugins/velocity/admin/views/settings.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/velocity/admin/builder/builder.php:2
- > PHP Warning
Use of undefined constant VELOCITY_NAME - assumed 'VELOCITY_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/velocity/admin/views/settings.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/velocity/admin/builder/popup.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/velocity/admin/views/settings.php:21
- > PHP Warning
Use of undefined constant VELOCITY_VERSION - assumed 'VELOCITY_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/velocity/admin/views/settings.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
velocity/velocity.php Passed 13 tests
Analyzing the main PHP file in "Velocity - Video Lazy Loading for YouTube, Twitch and Vimeo" version 1.2.1
56 characters long description:
Speed up your website by lazy loading your media embeds.
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
There were no executable files found in this plugin1,951 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 53 | 10 | 815 |
PHP | 7 | 207 | 162 | 696 |
JavaScript | 4 | 141 | 116 | 440 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 4 | 26.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/plugins/alm-logo-48x48.png | 2.34KB | 1.24KB | ▼ 46.99% |
admin/img/plugins/eq-logo-48x48.png | 2.48KB | 1.33KB | ▼ 46.34% |
admin/img/plugins/usp-logo-48x48.png | 2.18KB | 1.06KB | ▼ 51.10% |
admin/img/bkg-chkbox_on.png | 1.02KB | 0.11KB | ▼ 89.63% |
admin/img/bkg-chkbox_selected.png | 1.26KB | 0.32KB | ▼ 74.55% |