Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.62ms] Passed 4 tests
Server-side resources used by Super Link Preview
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.84 ▼6.65 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.94 ▼5.19 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.87 ▲1.49 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 75.63 ▼23.60 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.39 ▲0.98 |
Super Link Preview /wp-admin/options-general.php?page=super-link-preview | 3.22 | 29.17 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Super Link Preview
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲139 | 13.79 ▼0.59 | 7.85 ▲5.72 | 40.48 ▼2.86 |
Dashboard /wp-admin | 2,210 ▲22 | 5.02 ▲0.12 | 115.19 ▼0.35 | 41.74 ▼3.92 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.06 | 39.55 ▲3.96 | 34.38 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,517 ▼29 | 17.68 ▼0.49 | 595.56 ▼42.80 | 52.92 ▼0.25 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▼0.05 | 100.87 ▼4.35 | 42.17 ▼0.64 |
Super Link Preview /wp-admin/options-general.php?page=super-link-preview | 873 | 2.06 | 28.00 | 46.08 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/super-link-preview/super-link-preview.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 26 tag instead of maximum 10
super-link-preview/super-link-preview.php Passed 13 tests
"Super Link Preview" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
109 characters long description:
Generate a preview (aka thumbnail) of any external link in the page, similar to Facebook or Google+ snippets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin382 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 141 | 76 | 331 |
JavaScript | 2 | 4 | 1 | 51 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 76.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 23.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon@2x.png | 0.61KB | 0.39KB | ▼ 35.47% |
images/icon.png | 0.38KB | 0.27KB | ▼ 26.82% |