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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼144.58ms] Passed 4 tests
An overview of server-side resources used by wp Short URL - Best Wordpress URL shortener
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 39.98 ▲14.06 |
Dashboard /wp-admin | 3.21 ▲0.16 | 39.77 ▼8.10 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 47.02 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.13 | 93.74 ▼565.15 |
Media Library /wp-admin/upload.php | 3.15 ▲0.15 | 33.95 ▼0.92 |
Categories /wp-admin/admin.php?page=wp-short-url-categories | 3.13 | 44.03 |
Short URL /wp-admin/admin.php?page=wp-short-url | 3.18 | 36.12 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: 3 new tables, no new options
New tables |
---|
wp_wsu_categories |
wp_wsu_items_history |
wp_wsu_items |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wp Short URL - Best Wordpress URL shortener
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,722 ▲150 | 16.63 ▲0.80 | 12.86 ▲3.08 | 51.62 ▼4.09 |
Dashboard /wp-admin | 3,001 ▲67 | 7.05 ▲1.11 | 150.56 ▼9.56 | 137.87 ▲17.01 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 3.10 ▲0.41 | 79.72 ▲8.90 | 119.24 ▲30.39 |
Add New Post /wp-admin/post-new.php | 1,612 ▼71 | 15.44 ▼2.97 | 415.80 ▲24.86 | 117.06 ▼2.42 |
Media Library /wp-admin/upload.php | 1,802 ▼8 | 5.73 ▲0.72 | 179.11 ▲31.66 | 164.58 ▲45.31 |
Categories /wp-admin/admin.php?page=wp-short-url-categories | 1,153 | 2.99 | 75.34 | 75.58 |
Short URL /wp-admin/admin.php?page=wp-short-url | 1,662 | 3.02 | 66.37 | 90.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_wsu_items
- wp_wsu_items_history
- wp_wsu_categories
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
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wp-short-url-categories
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpshorturl/includes/ajax-handler.php+229
Undefined index: rowid
- > GET request to /wp-admin/admin.php?page=wp-short-url-categories
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpshorturl/includes/ajax-handler.php+230
Undefined index: type
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-short-url
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpshorturl/includes/ajax-handler.php+240
Trying to get property 'post_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-short-url
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpshorturl/includes/ajax-handler.php+240
Trying to get property 'custom_url' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-short-url
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpshorturl/includes/ajax-handler.php+242
Trying to get property 'short_slug' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-short-url
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpshorturl/includes/ajax-handler.php+243
Trying to get property 'title' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-short-url
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpshorturl/includes/ajax-handler.php+244
Trying to get property 'ID' of non-object
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
The following issues need your attention
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpshorturl/admin/category-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpshorturl/includes/ajax-handler.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpshorturl/wpShortUrl.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpshorturl/admin/index.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpshorturl/includes/db-operations.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpshorturl/includes/handle-uri-requests.php:36
- > PHP Fatal error
require_once(): Failed opening required 'WSURL_PATHincludes/helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpshorturl/includes/index.php on line 3
- > PHP Warning
require_once(WSURL_PATHincludes/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/wpshorturl/includes/index.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wsu_get_categories_list() in wp-content/plugins/wpshorturl/admin/admin-list.php:10
- > PHP Warning
Use of undefined constant WSURL_PATH - assumed 'WSURL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpshorturl/includes/index.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots require images: #1 (Dashboard), #2 (Create custom url), #3 (Create post/page url), #4 (Manage categories)
wpshorturl/wpShortUrl.php 92% from 13 tests
The main PHP script in "wp Short URL - Best Wordpress URL shortener" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpshorturl.php" instead of "wpShortUrl.php")
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 plugin2,014 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 192 | 75 | 961 |
CSS | 1 | 45 | 3 | 498 |
JavaScript | 3 | 62 | 40 | 474 |
Markdown | 1 | 38 | 0 | 81 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.51MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/Screenshot-2.png | 98.81KB | 0.00KB | ▼ 100.00% |
assets/img/admin-menu.png | 18.41KB | 0.90KB | ▼ 95.10% |
(invalid) assets/Screenshot-1.png | 180.40KB | 0.00KB | ▼ 100.00% |
assets/img/click.png | 0.80KB | 0.30KB | ▼ 63.23% |
(invalid) assets/Screenshot-4.png | 75.88KB | 0.00KB | ▼ 100.00% |