Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼39.43ms] Passed 4 tests
This is a short check of server-side resources used by AutoShortLink
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.01 | 38.29 ▼10.83 |
Dashboard /wp-admin | 3.33 ▼0.30 | 25.80 ▼41.40 |
Posts /wp-admin/edit.php | 3.33 ▼0.35 | 29.70 ▼24.48 |
Add New Post /wp-admin/post-new.php | 3.33 ▼2.82 | 28.52 ▼76.38 |
Media Library /wp-admin/upload.php | 3.33 ▼0.16 | 23.09 ▼15.46 |
AutoShortLink /wp-admin/options-general.php?page=autoshortlink | 3.33 | 29.66 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
asl_api_key |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by AutoShortLink
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.39 ▲0.09 | 1.87 ▲0.09 | 42.77 ▼5.35 |
Dashboard /wp-admin | 2,204 ▲24 | 5.61 ▼0.06 | 92.38 ▲2.90 | 38.75 ▼6.18 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.01 ▼0.04 | 40.70 ▼0.41 | 36.02 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,562 ▲17 | 23.33 ▲0.07 | 657.13 ▼70.56 | 53.31 ▼16.14 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.21 ▼0.17 | 96.96 ▼8.25 | 45.89 ▼1.61 |
AutoShortLink /wp-admin/options-general.php?page=autoshortlink | 805 | 2.07 | 25.26 | 29.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- asl_api_key
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=autoshortlink
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/autoshortlink/admin/options.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/autoshortlink/admin/options.php:4
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Donate link: Please fix this invalid url: "-"
- Screenshots: These screenshots require images: #1 (Settings Window), #2 (Before activation), #3 (After activation)
autoshortlink/autoshortlink.php Passed 13 tests
The primary PHP file in "AutoShortLink" version 1.1 is used by WordPress to initiate all plugin functionality
89 characters long description:
Forget the hassle of creating shorte.st shortlinks manually. This Plugin do that for you.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin96 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 29 | 13 | 96 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin