Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.85ms] Passed 4 tests
This is a short check of server-side resources used by Shortener Simple
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.97 ▲1.04 |
Dashboard /wp-admin | 3.40 ▲0.10 | 55.09 ▲8.42 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 56.87 ▲11.21 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.91 ▼1.51 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 40.27 ▲3.46 |
Añadir enlace /wp-admin/post-new.php?post_type=buzz_shortener | 3.35 | 49.11 |
Todos los enlaces /wp-admin/edit.php?post_type=buzz_shortener | 3.35 | 42.63 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 429 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shortener Simple
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.53 ▼0.86 | 1.68 ▲0.05 | 40.36 ▼4.34 |
Dashboard /wp-admin | 2,236 ▲45 | 5.85 ▲0.95 | 100.14 ▼7.01 | 39.42 ▼7.58 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.00 ▼0.06 | 35.64 ▼1.77 | 33.31 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.31 ▲5.50 | 644.27 ▼6.98 | 56.09 ▲5.90 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.17 ▼0.03 | 96.65 ▼2.27 | 43.36 ▼1.63 |
Añadir enlace /wp-admin/post-new.php?post_type=buzz_shortener | 1,680 | 3.67 | 61.40 | 31.01 |
Todos los enlaces /wp-admin/edit.php?post_type=buzz_shortener | 1,089 | 1.99 | 31.08 | 29.51 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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/post-new.php?post_type=buzz_shortener
- > Notice in wp-content/plugins/shortener-simple/shortener-simple.php+147
Undefined index: default
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=buzz_shortener
- > Notice in wp-content/plugins/shortener-simple/shortener-simple.php+157
Undefined index: disable
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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shortener-simple/lib/phpqrcode/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: redirect, shortener, social media, url
shortener-simple/shortener-simple.php 85% from 13 tests
The primary PHP file in "Shortener Simple" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/shortener-simple/lib/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,554 | 2,063 | 6,312 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 31.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 373 | |
▷ Static methods | 122 | 32.71% |
▷ Public methods | 273 | 73.19% |
▷ Protected methods | 96 | 25.74% |
▷ Private methods | 4 | 1.07% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 99 | |
▷ Global constants | 99 | 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
40 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/phpqrcode/cache/frame_30.png | 0.25KB | 0.24KB | ▼ 4.71% |
lib/phpqrcode/cache/frame_6.png | 0.15KB | 0.14KB | ▼ 1.99% |
lib/phpqrcode/cache/frame_20.png | 0.22KB | 0.20KB | ▼ 8.00% |
lib/phpqrcode/cache/frame_29.png | 0.23KB | 0.21KB | ▼ 7.76% |
lib/phpqrcode/cache/frame_37.png | 0.27KB | 0.25KB | ▼ 7.89% |