Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/url-smasher/url-smasher.php+274
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.87MB] [CPU: ▼54.11ms] Passed 4 tests
An overview of server-side resources used by URL Smasher
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.34 | 5.29 ▼36.28 |
Dashboard /wp-admin | 2.18 ▼1.17 | 6.27 ▼42.35 |
Posts /wp-admin/edit.php | 2.18 ▼1.22 | 9.17 ▼39.20 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.75 | 7.12 ▼98.59 |
Media Library /wp-admin/upload.php | 2.18 ▼1.09 | 6.73 ▼33.94 |
URL Smasher /wp-admin/options-general.php?page=url-smasher-options | 2.18 | 7.46 |
Server storage [IO: ▲7.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for URL Smasher
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.28 ▲0.00 | 1.62 ▼0.65 | 41.56 ▲0.07 |
Dashboard /wp-admin | 2,204 ▲33 | 5.63 ▲0.06 | 85.27 ▼8.77 | 39.24 ▼8.13 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.04 | 36.93 ▲0.36 | 31.29 ▼8.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.32 ▲0.15 | 636.77 ▼48.69 | 51.88 ▼12.42 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.15 ▼0.03 | 96.02 ▼9.06 | 41.63 ▼3.54 |
URL Smasher /wp-admin/options-general.php?page=url-smasher-options | 1,098 | 2.00 | 25.84 | 48.78 |
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
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/url-smasher/url-smasher.php+274
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=url-smasher-options
- > Notice in wp-content/plugins/url-smasher/url-smasher.php+274
Trying to access array offset on value of type bool
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/url-smasher/url-smasher.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: url shortener automatic googl
url-smasher/url-smasher.php 92% from 13 tests
"URL Smasher" version 3.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin635 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 146 | 360 |
CSS | 2 | 50 | 8 | 266 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 3.65MB with 3.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/url_smasher_logo.png | 147.45KB | 17.34KB | ▼ 88.24% |
assets/url_smasher_icon_128x128.png | 79.30KB | 5.86KB | ▼ 92.61% |
assets/icon-128x128-old.png | 73.90KB | 4.86KB | ▼ 93.42% |
assets/banner-772x250.png | 740.43KB | 96.67KB | ▼ 86.94% |
assets/icon-256x256.png | 572.81KB | 36.31KB | ▼ 93.66% |