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.92MB] [CPU: ▼31.72ms] Passed 4 tests
Server-side resources used by Fast Link Shorten Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.58 ▲3.46 |
Dashboard /wp-admin | 3.03 ▼0.31 | 30.68 ▼27.94 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 26.31 ▼16.83 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 22.69 ▼71.96 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 20.48 ▼10.16 |
Fast Link Shorten /wp-admin/options-general.php?page=fastlinkshorten | 3.03 | 22.81 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Fast Link Shorten Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▼0.21 | 1.76 ▼0.10 | 45.42 ▲4.08 |
Dashboard /wp-admin | 2,202 ▲21 | 5.60 ▼0.15 | 97.49 ▼2.90 | 42.84 ▲1.50 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.95 ▼0.06 | 35.61 ▲0.95 | 33.10 ▼4.12 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,719 | 26.03 ▲2.90 | 837.37 ▲193.99 | 59.79 ▲12.48 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.18 | 94.12 ▼3.33 | 41.39 ▼2.62 |
Fast Link Shorten /wp-admin/options-general.php?page=fastlinkshorten | 1,426 | 9.92 | 266.73 | 32.57 |
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+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.
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fastlinkshorten
- > 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 | 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 load_plugin_textdomain() in wp-content/plugins/fast-link-shorten/index.php:13
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: bcvc shorten, fast link, link shorten, shorten
fast-link-shorten/index.php 92% from 13 tests
The main PHP script in "Fast Link Shorten Plugin" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("fast-link-shorten.php" instead of "index.php")
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
There were no executable files found in this plugin116 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 20 | 116 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.35MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Screenshot_3.png | 17.76KB | 9.49KB | ▼ 46.57% |
img/fast-link-shorten-app-icon.png | 26.66KB | 4.83KB | ▼ 81.88% |
Screenshot/Screenshot_4.png | 57.34KB | 29.75KB | ▼ 48.11% |
Screenshot/Screenshot_2.png | 51.07KB | 25.44KB | ▼ 50.19% |
img/author_logo.png | 28.24KB | 3.09KB | ▼ 89.04% |