Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.21MB] [CPU: ▼21.10ms] Passed 4 tests
This is a short check of server-side resources used by Beautiful Link Preview
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.18 ▼0.28 |
Dashboard /wp-admin | 3.10 ▼0.25 | 37.22 ▼31.34 |
Posts /wp-admin/edit.php | 3.23 ▼0.12 | 36.30 ▼22.37 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.40 | 81.33 ▼22.55 |
Media Library /wp-admin/upload.php | 3.18 ▼0.05 | 33.71 ▼8.14 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_zwt_wp_link_previewer |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
zwt_wp_link_previewer_db_version |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Beautiful Link Preview: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲141 | 13.49 ▼0.48 | 8.30 ▲5.98 | 48.30 ▲1.79 |
Dashboard /wp-admin | 2,210 ▲33 | 5.62 ▼0.01 | 92.70 ▼6.28 | 38.17 ▼1.41 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.03 ▲0.08 | 38.35 ▼5.92 | 34.25 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.11 ▲0.06 | 644.79 ▼43.37 | 54.48 ▲2.80 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.15 ▼0.16 | 141.50 ▲26.62 | 47.59 ▼2.18 |
Beautiful Link Preview /wp-admin/beautiful_link_preview-settings.php | 26 | 0.42 | 0.45 | 15.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_zwt_wp_link_previewer
- Zombie WordPress options detected upon uninstall: 7 options
- zwt_wp_link_previewer_db_version
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% 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 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/beautiful-link-preview/admin/partials/zwt_wp_linkpreviewer-admin-display.php
- > /wp-content/plugins/beautiful-link-preview/public/partials/zwt_wp_linkpreviewer-public-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/beautiful-link-preview/admin/class-zwt_wp_linkpreviewer-linktable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/beautiful-link-preview/includes/class-zwt_wp_linkpreviewer-rest-controller.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/beautiful-link-preview/admin/class-zwt_wp_linkpreviewer-linktable.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/beautiful-link-preview/admin/class-zwt_wp_linkpreviewer-linktable.php on line 4
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/beautiful_link_preview-settings.php
- > Network (severe)
wp-admin/beautiful_link_preview-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: facebook open graph, preview, twitter cards, link
beautiful-link-preview/zwt_wp_linkpreview.php 77% from 13 tests
The main PHP script in "Beautiful Link Preview" version 1.4.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 177 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("beautiful-link-preview.php" instead of "zwt_wp_linkpreview.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin20,682 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 18,463 |
PHP | 22 | 297 | 559 | 1,431 |
JavaScript | 9 | 43 | 147 | 389 |
Sass | 2 | 3 | 0 | 226 |
HTML | 1 | 13 | 0 | 99 |
CSS | 4 | 9 | 12 | 74 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 14 | 10.14% |
▷ Public methods | 80 | 57.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 58 | 42.03% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 1 | 3.12% |
▷ Class constants | 31 | 96.88% |
▷ Public constants | 31 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/layout_compact.png | 0.83KB | 0.37KB | ▼ 55.39% |
admin/img/layout_full.png | 1.21KB | 0.56KB | ▼ 54.14% |
admin/img/banner-772x250.png | 40.22KB | 15.11KB | ▼ 62.42% |