Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/tiny-url/tiny-url.php+121
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.32MB] [CPU: ▼16.41ms] Passed 4 tests
Analyzing server-side resources used by Tiny URL
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 29.32 ▼13.21 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.29 ▼1.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.51 ▼2.15 |
Add New Post /wp-admin/post-new.php | 4.61 ▼1.28 | 42.75 ▼49.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.75 ▲4.01 |
Tiny URL /wp-admin/options-general.php?page=tiny-url/tiny-url.php | 3.18 | 29.03 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
tinyurl_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Tiny URL: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲59 | 13.31 ▼1.05 | 1.72 ▼0.21 | 36.99 ▼10.84 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼0.01 | 106.84 ▼4.28 | 40.44 ▼1.92 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 1.98 ▼0.08 | 41.26 ▲1.10 | 34.09 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,539 ▼2 | 23.08 ▼0.10 | 640.20 ▲45.19 | 58.68 ▲6.52 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.32 ▲0.06 | 99.29 ▼0.18 | 40.95 ▼2.34 |
Tiny URL /wp-admin/options-general.php?page=tiny-url/tiny-url.php | 958 | 2.03 | 22.31 | 33.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=tiny-url/tiny-url.php
- > Notice in wp-content/plugins/tiny-url/tiny-url.php+42
Undefined variable: post
- > GET request to /wp-admin/options-general.php?page=tiny-url/tiny-url.php
- > Notice in wp-content/plugins/tiny-url/tiny-url.php+42
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/options-general.php?page=tiny-url/tiny-url.php
- > Warning in wp-content/plugins/tiny-url/tiny-url.php+35
file_get_contents(http://tinyurl.com/api-create.php?url=): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
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/tiny-url/tiny-url.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: shorturl, shortlink, short url, post, tinyurl...
tiny-url/tiny-url.php Passed 13 tests
The primary PHP file in "Tiny URL" version 1.3.4 is used by WordPress to initiate all plugin functionality
131 characters long description:
This plugin automatically adds a tiny URL for all blog posts after post content. Uses http://tinyurl.com/ service to get Tiny URLs.
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
No dangerous file extensions were detected215 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 41 | 33 | 199 |
JavaScript | 2 | 2 | 13 | 16 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 8.83KB | 3.34KB | ▼ 62.15% |
screenshot-1.png | 63.95KB | 21.02KB | ▼ 67.13% |
screenshot-3.png | 62.33KB | 22.68KB | ▼ 63.62% |