Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/shorturl-to-random-url/index.php+27
Undefined variable: charset_collate
Server metrics [RAM: ▼1.03MB] [CPU: ▼176.89ms] Passed 4 tests
An overview of server-side resources used by Shorturl to random url
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.58 ▼0.14 | 15.60 ▼7.26 |
Dashboard /wp-admin | 2.62 ▼0.43 | 16.27 ▼16.71 |
Posts /wp-admin/edit.php | 2.63 ▼0.48 | 16.83 ▼24.08 |
Add New Post /wp-admin/post-new.php | 2.62 ▼2.81 | 17.07 ▼643.59 |
Media Library /wp-admin/upload.php | 2.63 ▼0.38 | 17.11 ▼23.19 |
URL shorter /wp-admin/edit.php?post_type=url_shorter | 2.63 | 16.45 |
Add New /wp-admin/post-new.php?post_type=url_shorter | 2.63 | 16.64 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, no new options
New tables |
---|
wp_url_shorter |
Browser metrics Passed 4 tests
Checking browser requirements for Shorturl to random url
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲171 | 16.20 ▲0.72 | 8.19 ▲1.46 | 54.61 ▲10.46 |
Dashboard /wp-admin | 3,032 ▲98 | 5.91 ▼0.04 | 141.01 ▲0.52 | 89.60 ▼16.57 |
Posts /wp-admin/edit.php | 2,798 ▲59 | 2.71 ▲0.01 | 65.62 ▲0.21 | 73.47 ▼18.16 |
Add New Post /wp-admin/post-new.php | 1,712 ▲212 | 18.90 ▲0.31 | 354.08 ▼11.73 | 116.61 ▲5.15 |
Media Library /wp-admin/upload.php | 1,866 ▲56 | 5.05 ▲0.07 | 154.65 ▲9.50 | 123.53 ▲5.90 |
URL shorter /wp-admin/edit.php?post_type=url_shorter | 1,455 | 2.63 | 65.21 | 70.62 |
Add New /wp-admin/post-new.php?post_type=url_shorter | 1,949 | 3.15 | 102.77 | 70.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/shorturl-to-random-url/index.php+192
Undefined index: REDIRECT_URL
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_url_shorter
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=url_shorter
- > Notice in wp-content/plugins/shorturl-to-random-url/index.php+192
Undefined index: REDIRECT_URL
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=url_shorter
- > Notice in wp-content/plugins/shorturl-to-random-url/index.php+192
Only variables should be passed by reference
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 fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shorturl-to-random-url/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== shorturl-to-random-url ===
)
shorturl-to-random-url/index.php 92% from 13 tests
"Shorturl to random url" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shorturl-to-random-url.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected209 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 15 | 208 |
CSS | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin