Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.36ms] Passed 4 tests
An overview of server-side resources used by url Shortener 4eq
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.68 ▼0.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.37 ▼2.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.51 ▼2.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.85 ▼3.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.26 ▲5.70 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
url Shortener 4eq: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲45 | 13.21 ▼1.05 | 2.16 ▲0.27 | 41.30 ▼1.67 |
Dashboard /wp-admin | 2,237 ▲34 | 5.84 ▼0.03 | 114.03 ▼0.04 | 38.44 ▼5.42 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▲0.00 | 36.78 ▼0.90 | 38.74 ▲2.67 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 18.20 ▼5.39 | 621.54 ▼32.25 | 56.53 ▲10.67 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.14 ▼0.09 | 112.28 ▼4.07 | 47.75 ▼1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/url-shortener-4eq/urlshortener.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: link shortener, social media, url shortener
url-shortener-4eq/urlshortener.php 85% from 13 tests
The entry point to "url Shortener 4eq" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("url-shortener-4eq.php" instead of "urlshortener.php")
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin219 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 19 | 2 | 134 |
PHP | 1 | 29 | 13 | 85 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/octo-error.png | 5.51KB | 1.60KB | ▼ 70.89% |
image/octo.png | 5.78KB | 1.70KB | ▼ 70.54% |
image/golf.png | 3.40KB | 0.44KB | ▼ 87.19% |
image/fish.png | 6.79KB | 3.23KB | ▼ 52.44% |
screenshot-1.png | 21.17KB | 11.71KB | ▼ 44.70% |