Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.42ms] Passed 4 tests
Server-side resources used by ShrtFly - URL Shortener
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.87 ▼0.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.50 ▼0.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.36 ▲2.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.64 ▲10.14 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.09 ▲0.07 |
ShrtFly Settings /wp-admin/options-general.php?page=ShrtFly | 3.24 | 32.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for ShrtFly - URL Shortener
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲43 | 13.16 ▼0.01 | 1.98 ▲0.33 | 39.84 ▲1.74 |
Dashboard /wp-admin | 2,210 ▲4 | 5.83 ▼0.05 | 98.52 ▼0.66 | 37.67 ▼0.92 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▼0.02 | 40.96 ▲5.66 | 37.32 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.32 ▲4.80 | 648.73 ▲16.69 | 60.06 ▲10.05 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.17 ▼0.07 | 93.65 ▼25.65 | 43.57 ▼4.35 |
ShrtFly Settings /wp-admin/options-general.php?page=ShrtFly | 948 | 2.04 | 23.18 | 66.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shrtfly-url-shortener/template.php:9
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: shorten url, url shortener, link shortener, shortener, shrtfly
shrtfly-url-shortener/shrtfly.php 92% from 13 tests
"ShrtFly - URL Shortener" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shrtfly-url-shortener.php" instead of "shrtfly.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
No dangerous file extensions were detected204 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 30 | 24 | 204 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 1 | 12.50% |
▷ Private methods | 2 | 25.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
No PNG files were detected