Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.08ms] Passed 4 tests
Analyzing server-side resources used by ShortUrl Tracker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.32 | 60.52 ▲18.72 |
Dashboard /wp-admin | 3.89 ▲0.26 | 69.68 ▲2.22 |
Posts /wp-admin/edit.php | 3.94 ▲0.26 | 56.16 ▲4.91 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.27 | 92.74 ▼19.54 |
Media Library /wp-admin/upload.php | 3.75 ▲0.26 | 45.10 ▲8.10 |
Dashboard /wp-admin/admin.php?page=sut-home | 3.82 | 45.72 |
Settings /wp-admin/admin.php?page=sut-settings | 3.78 | 44.91 |
All Campaigns /wp-admin/admin.php?page=sut-get-campaign | 3.82 | 35.72 |
Create Shortlink /wp-admin/admin.php?page=sut-create-link | 3.78 | 44.71 |
All Shortlinks /wp-admin/admin.php?page=sut-historic | 3.83 | 42.59 |
Create Campaign /wp-admin/admin.php?page=sut-create-campaign | 3.76 | 39.21 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_shorturl_tracker |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for ShortUrl Tracker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.30 ▼0.08 | 1.98 ▲0.22 | 45.75 ▲6.95 |
Dashboard /wp-admin | 2,234 ▲54 | 5.61 ▼0.09 | 93.63 ▲5.56 | 41.90 ▼1.72 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 2.01 ▲0.03 | 36.23 ▼8.66 | 33.55 ▼7.43 |
Add New Post /wp-admin/post-new.php | 1,581 ▲35 | 23.26 ▲0.08 | 671.26 ▲43.36 | 58.00 ▲5.90 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.17 ▲0.02 | 97.66 ▼4.08 | 47.15 ▼0.05 |
Dashboard /wp-admin/admin.php?page=sut-home | 836 | 2.01 | 26.61 | 44.33 |
Settings /wp-admin/admin.php?page=sut-settings | 891 | 2.02 | 23.08 | 32.66 |
All Campaigns /wp-admin/admin.php?page=sut-get-campaign | 724 | 1.14 | 6.58 | 16.87 |
Create Shortlink /wp-admin/admin.php?page=sut-create-link | 833 | 2.04 | 24.73 | 29.30 |
All Shortlinks /wp-admin/admin.php?page=sut-historic | 847 | 2.01 | 23.81 | 29.50 |
Create Campaign /wp-admin/admin.php?page=sut-create-campaign | 724 | 1.53 | 6.85 | 17.22 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sut-create-campaign
- > Parse error in wp-content/plugins/shorturl-tracker/class/Sut_Byw_Campaign.php+22
syntax error, unexpected '|', expecting ';' or '{'
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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/shorturl-tracker/class/Sut_Byw_Campaign.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/shorturl-tracker/create_campaign.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/shorturl-tracker/link-admin.php:2
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/shorturl-tracker/class/Sut_Byw_Campaign.php on line 22
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were found
shorturl-tracker/shorturl-tracker.php 92% from 13 tests
"ShortUrl Tracker" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 186 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
No dangerous file extensions were detected4,977 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 123 | 185 | 2,071 |
CSS | 2 | 15 | 2 | 1,883 |
JavaScript | 8 | 28 | 19 | 575 |
PO File | 2 | 185 | 216 | 448 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo-shorturl-tracker.png | 16.08KB | 7.24KB | ▼ 54.99% |
img/unlock.png | 0.27KB | 0.20KB | ▼ 27.14% |
img/search-icon-black.png | 1.74KB | 2.35KB | 0.00% |
img/search-icon.png | 4.90KB | 2.35KB | ▼ 51.99% |
img/trash.png | 0.27KB | 0.20KB | ▼ 24.28% |