Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼141.22ms] Passed 4 tests
Server-side resources used by WP URLs Shortener + Social icons [Official]
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▲0.06 | 2,628.21 ▲2,606.36 |
Dashboard /wp-admin | 3.12 ▲0.06 | 50.86 ▲6.93 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 45.61 ▼3.79 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 102.12 ▼570.37 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 39.54 ▲2.34 |
Settings /wp-admin/admin.php?page=eebme_short_link_settings_page2 | 3.04 | 33.56 |
WP URL SHORTEN /wp-admin/admin.php?page=eebme_short_link_settings_page | 3.04 | 36.69 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP URLs Shortener + Social icons [Official]: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,745 ▲149 | 16.04 ▲0.51 | 11.20 ▲2.00 | 51.00 ▼4.86 |
Dashboard /wp-admin | 3,003 ▲72 | 6.74 ▲0.87 | 132.61 ▼30.63 | 155.41 ▲39.66 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.76 ▲0.09 | 70.32 ▲7.66 | 106.88 ▲11.46 |
Add New Post /wp-admin/post-new.php | 1,559 ▼124 | 18.79 ▲0.23 | 391.46 ▼0.59 | 134.24 ▲21.91 |
Media Library /wp-admin/upload.php | 1,792 ▼18 | 5.49 ▲0.51 | 143.18 ▼37.11 | 166.04 ▲36.70 |
Settings /wp-admin/admin.php?page=eebme_short_link_settings_page2 | 1,617 | 2.58 | 59.13 | 100.55 |
WP URL SHORTEN /wp-admin/admin.php?page=eebme_short_link_settings_page | 1,215 | 2.89 | 70.83 | 86.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/wp-url-shorten/template/public.tpl.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-url-shorten/template/settings.tpl.php:3
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
wp-url-shorten/eebme_shorturl.php 85% from 13 tests
The main PHP script in "WP URLs Shortener + Social icons [Official]" version 8.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-url-shorten.php" instead of "eebme_shorturl.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected554 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 156 | 49 | 383 |
JavaScript | 1 | 3 | 11 | 170 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/digg-32.png | 0.75KB | 0.74KB | 0.26% |
icons/evernote-32.png | 0.87KB | 0.87KB | ▼ 0.56% |
(invalid) icon.png | 1.12KB | 0.00KB | ▼ 100.00% |
icons/twitter_letter-32.png | 0.70KB | 0.70KB | 0.00% |
icons/blogger-32.png | 0.79KB | 0.79KB | 0.25% |