Benchmarks
Plugin footprint 58% 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
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/roasted-url-shortener/urlshortener.php+11
require_once(urlshortnerdb.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.29ms] Passed 4 tests
Server-side resources used by Roasted Url Shortener
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.49 ▲2.40 |
Dashboard /wp-admin | 3.31 ▼0.04 | 57.88 ▼8.82 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.36 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.30 ▼4.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.77 ▼1.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Roasted Url Shortener
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.41 ▼0.88 | 1.94 ▼0.00 | 44.61 ▲0.10 |
Dashboard /wp-admin | 2,218 ▲15 | 5.80 ▲0.94 | 97.56 ▼19.12 | 43.66 ▼1.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.09 | 40.64 ▲3.77 | 37.94 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,540 ▼3 | 22.98 ▼0.22 | 587.89 ▼94.02 | 62.74 ▲8.43 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▼0.10 | 98.90 ▼6.78 | 42.98 ▼4.16 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(urlshortnerdb.php): failed to open stream: No such file or directory in wp-content/plugins/roasted-url-shortener/urlshortener.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'urlshortnerdb.php' (include_path='.:/usr/share/php') in wp-content/plugins/roasted-url-shortener/urlshortener.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== roasted-url-shortener ===
)
roasted-url-shortener/urlshortener.php 92% from 13 tests
"Roasted Url Shortener" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("roasted-url-shortener.php" instead of "urlshortener.php")
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 plugin135 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 28 | 135 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin