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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.87ms] Passed 4 tests
This is a short check of server-side resources used by short.io
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.04 ▼5.90 |
Dashboard /wp-admin | 3.34 ▼0.00 | 49.05 ▼16.36 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.60 ▼4.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.53 ▼12.78 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 43.84 ▲5.75 |
Short.io links /wp-admin/options-general.php?page=shortlist_io | 3.21 | 34.22 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for short.io
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲54 | 13.37 ▼0.74 | 4.45 ▲2.80 | 42.34 ▼3.24 |
Dashboard /wp-admin | 2,210 ▲36 | 4.95 ▼0.68 | 94.00 ▼0.44 | 38.41 ▼9.09 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.33 ▲0.32 | 46.54 ▲8.57 | 32.31 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.48 ▲0.57 | 700.29 ▼4.63 | 55.80 ▲8.87 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.41 ▲0.19 | 109.42 ▲5.88 | 45.65 ▼3.52 |
Short.io links /wp-admin/options-general.php?page=shortlist_io | 671 | 1.65 | 20.34 | 22.18 |
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_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-shortcm/includes/functions.php:231
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcm() in wp-content/plugins/wp-shortcm/includes/class.wp-shortcm-admin.php:54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-shortcm ===
)
wp-shortcm/wp-shortcm.php 92% from 13 tests
The primary PHP file in "short.io" version 2.4.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin841 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 284 | 323 | 655 |
JavaScript | 1 | 3 | 11 | 178 |
make | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shortlink_copy.png | 8.22KB | 3.76KB | ▼ 54.30% |