Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.94ms] Passed 4 tests
This is a short check of server-side resources used by Visual Link Preview
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.24 ▼1.97 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.68 ▼0.18 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.19 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.49 ▼6.75 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.87 ▲3.10 |
Visual Link Preview /wp-admin/options-general.php?page=bv_settings_vlp | 3.30 | 31.42 |
Template Editor /wp-admin/admin.php?page=vlp_template_editor | 3.27 | 37.72 |
Server storage [IO: ▲3.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 189 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Visual Link Preview: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 13.82 ▼0.91 | 1.66 ▼0.31 | 41.77 ▼20.51 |
Dashboard /wp-admin | 2,205 ▲25 | 5.55 ▼0.13 | 108.67 ▲8.79 | 43.62 ▲0.31 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.62 ▲0.61 | 43.77 ▲4.95 | 32.48 ▼1.90 |
Add New Post /wp-admin/post-new.php | 6,215 ▲4,684 | 19.48 ▼3.15 | 947.76 ▲306.18 | 37.17 ▼18.67 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 5.17 ▲1.01 | 107.87 ▲2.94 | 46.01 ▼0.09 |
Visual Link Preview /wp-admin/options-general.php?page=bv_settings_vlp | 1,122 | 8.92 | 148.12 | 55.14 |
Template Editor /wp-admin/admin.php?page=vlp_template_editor | 920 | 3.85 | 131.55 | 27.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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 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
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-link-preview/includes/class-vlp-i18n.php:31
- > PHP Fatal error
Uncaught Error: Class 'VLP_Dynamic_Template_Block' not found in wp-content/plugins/visual-link-preview/includes/public/dynamic-template/blocks/class-vlp-block-button.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-link-preview/includes/public/class-vlp-shortcode.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/visual-link-preview/vendor/bv-settings/bv-settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'VLP_Dynamic_Template_Block' not found in wp-content/plugins/visual-link-preview/includes/public/dynamic-template/blocks/class-vlp-block-title.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-link-preview/includes/admin/class-vlp-assets.php:28
- > PHP Warning
require_once(VLP_DIRtemplates/settings/settings.php): failed to open stream: No such file or directory in wp-content/plugins/visual-link-preview/includes/public/class-vlp-settings.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'VLP_Settings' not found in wp-content/plugins/visual-link-preview/templates/settings/template-style.php:2
- > PHP Fatal error
Uncaught Error: Class 'VLP_Dynamic_Template_Block' not found in wp-content/plugins/visual-link-preview/includes/public/dynamic-template/blocks/class-vlp-block-image.php:20
- > PHP Fatal error
Uncaught Error: Class 'VLP_Dynamic_Template_Layout' not found in wp-content/plugins/visual-link-preview/includes/public/dynamic-template/layouts/class-vlp-layout-2-columns.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: snippet, link preview, visual link, summary
visual-link-preview/visual-link-preview.php Passed 13 tests
The principal PHP file in "Visual Link Preview" v. 2.2.6 is loaded by WordPress automatically on each request
83 characters long description:
Display a fully customizable visual link preview for any internal or external link.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin47,060 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 86 | 7,159 | 6,883 | 42,027 |
PHP | 41 | 465 | 1,372 | 2,189 |
CSS | 6 | 108 | 29 | 1,617 |
Sass | 19 | 205 | 5 | 1,200 |
SVG | 27 | 0 | 0 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 2 | 6.67% |
▷ Concrete classes | 28 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 65 | 45.45% |
▷ Public methods | 128 | 89.51% |
▷ Protected methods | 6 | 4.20% |
▷ Private methods | 9 | 6.29% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.57MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-20x20.png | 0.33KB | 0.34KB | 0.00% |
assets/images/logo.png | 109.74KB | 45.18KB | ▼ 58.83% |
assets/images/banner.png | 470.22KB | 202.00KB | ▼ 57.04% |
assets/images/icon-128x128.png | 1.00KB | 0.99KB | 0.49% |
assets/images/icon-256x256.png | 2.01KB | 2.00KB | ▼ 0.53% |