Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/urlyar/include/class.ss_options.php+193
Undefined index: urlserviceenable
Server metrics [RAM: ▼0.67MB] [CPU: ▼171.25ms] Passed 4 tests
Analyzing server-side resources used by URLYar URL Shortner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.12 | 30.97 ▼7.31 |
Dashboard /wp-admin | 2.98 ▼0.07 | 25.11 ▼20.38 |
Posts /wp-admin/edit.php | 2.98 ▼0.12 | 27.07 ▼20.77 |
Add New Post /wp-admin/post-new.php | 2.98 ▼2.45 | 25.43 ▼635.71 |
Media Library /wp-admin/upload.php | 2.98 ▼0.02 | 25.91 ▼8.13 |
URLYar /wp-admin/options-general.php?page=shorturl | 2.98 | 33.38 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
urlyar_urlfx |
Browser metrics Passed 4 tests
URLYar URL Shortner: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲115 | 16.14 ▲0.65 | 9.30 ▼3.19 | 45.25 ▼5.94 |
Dashboard /wp-admin | 2,978 ▲47 | 5.81 ▼0.17 | 140.26 ▼3.99 | 115.07 ▼7.56 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.71 ▼0.00 | 67.11 ▼8.56 | 95.76 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,610 ▼73 | 18.77 ▲0.02 | 392.06 ▲25.20 | 111.72 ▼1.82 |
Media Library /wp-admin/upload.php | 1,741 ▼66 | 4.97 ▼0.02 | 158.22 ▼1.89 | 124.41 ▲5.51 |
URLYar /wp-admin/options-general.php?page=shorturl | 1,749 | 2.11 | 66.08 | 130.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5211
add_contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab() instead.
- Zombie WordPress options were found after uninstall: 1 option
- urlyar_urlfx
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=shorturl
- > User deprecated in wp-includes/functions.php+5211
add_contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=shorturl
- > Notice in wp-content/plugins/urlyar/include/options_page.php+267
Undefined index: home
- > GET request to /wp-admin/options-general.php?page=shorturl
- > Notice in wp-content/plugins/urlyar/include/options_page.php+398
Undefined variable: rh
- > GET request to /wp-admin/options-general.php?page=shorturl
- > Notice in wp-content/plugins/urlyar/include/class.ss_options.php+193
Undefined index: apikey_urlyar
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: shorten, qr code, urlyar, qr, shortener...
urlyar/urlyar.php 92% from 13 tests
"URLYar URL Shortner" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,850 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 705 | 930 | 1,436 |
PO File | 1 | 65 | 66 | 211 |
CSS | 1 | 33 | 5 | 130 |
JavaScript | 2 | 19 | 21 | 73 |
PHP code Passed 2 tests
Analyzing 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.37 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 70 | 84.34% |
▷ Protected methods | 2 | 2.41% |
▷ Private methods | 11 | 13.25% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/cross.png | 0.64KB | 0.72KB | 0.00% |
assets/css/tick.png | 0.52KB | 0.52KB | 0.00% |