Benchmarks
Plugin footprint 83% from 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.07MB] [CPU: ▼8.37ms] Passed 4 tests
This is a short check of server-side resources used by QQWorld Short Url
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.07 | 48.94 ▲5.11 |
Dashboard /wp-admin | 3.70 ▲0.14 | 50.03 ▼9.63 |
Posts /wp-admin/edit.php | 3.75 ▲0.07 | 51.92 ▼3.23 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.07 | 88.84 ▼21.20 |
Media Library /wp-admin/upload.php | 3.56 ▲0.07 | 40.64 ▲0.59 |
QQWorld Short URL /wp-admin/options-general.php?page=qqworld-short-url | 3.53 | 36.80 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
QQWorld Short Url: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.75 ▲0.14 | 1.99 ▼0.17 | 47.34 ▲3.16 |
Dashboard /wp-admin | 2,199 ▲19 | 5.59 ▼0.10 | 91.82 ▼1.62 | 36.71 ▼5.78 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▼0.01 | 36.52 ▼2.79 | 32.82 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,549 ▲18 | 23.19 ▼0.11 | 644.92 ▼54.46 | 54.49 ▼5.27 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.38 ▲0.19 | 103.39 ▼4.53 | 42.02 ▼8.88 |
QQWorld Short URL /wp-admin/options-general.php?page=qqworld-short-url | 912 | 2.06 | 27.69 | 27.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qqworld-short-url/qqworld-short-url.php:13
- > PHP Fatal 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: short, url, link
qqworld-short-url/qqworld-short-url.php Passed 13 tests
"QQWorld Short Url" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
Automatically generate short link url when publishing post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected362 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 19 | 313 |
PO File | 1 | 36 | 69 | 49 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected