Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/short-link/short-link.php+76
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.39ms] Passed 4 tests
This is a short check of server-side resources used by Short Link
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.31 ▲1.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.86 ▼7.60 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.19 ▼1.73 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.90 ▼11.25 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.68 ▼0.99 |
Short Link /wp-admin/options-general.php?page=short-link/short-link.php | 3.22 | 30.97 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
short_link_options |
Browser metrics Passed 4 tests
Short Link: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.22 ▼1.16 | 1.75 ▼0.67 | 43.64 ▼9.63 |
Dashboard /wp-admin | 2,213 ▲22 | 4.87 ▼0.17 | 101.12 ▼7.12 | 37.19 ▼9.15 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.05 | 33.10 ▼1.59 | 33.55 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.41 ▲5.75 | 595.84 ▼77.40 | 54.52 ▲4.64 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.05 | 98.05 ▼0.47 | 44.25 ▲2.37 |
Short Link /wp-admin/options-general.php?page=short-link/short-link.php | 916 | 2.05 | 26.14 | 29.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/short-link/short-link.php:44
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Short Link on a post as seen in firefox), #2 (Short Link as seen in Chromium Browser), #3 (Short Link selected in click), #4 (Short Link plugin options page)
short-link/short-link.php 92% from 13 tests
The primary PHP file in "Short Link" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)
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
There were no executable files found in this plugin151 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 31 | 151 |
PHP code Passed 2 tests
A brief analysis 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.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 72.08KB | 24.70KB | ▼ 65.73% |
screenshot-4.png | 40.15KB | 15.07KB | ▼ 62.46% |
screenshot-2.png | 6.12KB | 2.30KB | ▼ 62.36% |
screenshot-3.png | 14.23KB | 5.32KB | ▼ 62.63% |