Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▼3.14ms] Passed 4 tests
Server-side resources used by Bright Link Previews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 38.71 ▲0.14 |
Dashboard /wp-admin | 3.80 ▲0.45 | 46.85 ▼12.29 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 48.51 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 91.12 ▼1.54 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 38.20 ▲2.89 |
Bright Links /wp-admin/options-general.php?page=blpwp-plugin | 3.60 | 36.08 |
Server storage [IO: ▲2.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_blpwp_links |
wp_blpwp_stats |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
blpwp_plugin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Bright Link Previews: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲124 | 13.40 ▼0.94 | 9.12 ▲7.25 | 37.15 ▼6.04 |
Dashboard /wp-admin | 2,199 ▲18 | 5.60 ▼0.08 | 92.82 ▼10.31 | 43.81 ▲1.51 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.00 | 40.16 ▲4.17 | 36.46 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.37 ▲0.09 | 657.77 ▼1.43 | 49.11 ▼3.69 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.17 ▲0.00 | 104.93 ▲5.30 | 45.45 ▲5.37 |
Bright Links /wp-admin/options-general.php?page=blpwp-plugin | 1,348 | 3.84 | 101.12 | 43.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_blpwp_links
- wp_blpwp_stats
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- blpwp_plugin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=blpwp-plugin
- > Warning in wp-content/plugins/bright-link-previews/settings-page.php+291
Division by zero
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/bright-link-previews/docs/index.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bright-link-previews/ajax.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bright-link-previews/paging.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bright-link-previews/index.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bright-link-previews/settings-page.php:9
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== bright-link-previews ===
)
bright-link-previews/index.php 92% from 13 tests
The primary PHP file in "Bright Link Previews" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bright-link-previews.php" instead of "index.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
There were no executable files found in this plugin19,359 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 16,797 |
PHP | 6 | 630 | 623 | 2,007 |
JavaScript | 4 | 75 | 50 | 363 |
CSS | 3 | 19 | 8 | 167 |
SVG | 2 | 0 | 0 | 24 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 293.00 |
▷ Minimum class complexity | 293.00 |
▷ Maximum class complexity | 293.00 |
Average method complexity | 6.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.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 | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 96.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.39% |
Functions | 41 | |
▷ Named functions | 41 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.84MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/images/image6.png | 177.63KB | 48.85KB | ▼ 72.50% |
docs/images/image2.png | 251.85KB | 73.67KB | ▼ 70.75% |
docs/images/image7.png | 86.16KB | 33.19KB | ▼ 61.48% |
docs/images/image5.png | 36.74KB | 14.56KB | ▼ 60.36% |
docs/images/image3.png | 39.01KB | 15.26KB | ▼ 60.88% |