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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.25ms] Passed 4 tests
Server-side resources used by WP URL Shortener
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.24 ▼1.46 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.08 ▼12.29 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 47.17 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.47 ▼12.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.84 ▼1.65 |
Url Shortener /wp-admin/options-general.php?page=url_shortener_settings | 3.20 | 32.57 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP URL Shortener
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.18 ▼1.19 | 1.73 ▼0.04 | 42.74 ▲3.54 |
Dashboard /wp-admin | 2,207 ▲15 | 5.83 ▼0.07 | 95.53 ▼20.71 | 40.01 ▼4.88 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.02 ▲0.01 | 41.00 ▲4.66 | 37.23 ▲3.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.83 ▲4.81 | 614.32 ▲11.08 | 50.74 ▲2.25 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.25 ▲0.03 | 91.91 ▼10.42 | 43.16 ▼2.26 |
Url Shortener /wp-admin/options-general.php?page=url_shortener_settings | 898 | 2.14 | 26.09 | 22.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=url_shortener_settings
- > Notice in wp-content/plugins/wp-url-shortener/index.php+75
Undefined variable: siteurl
- > GET request to /wp-admin/options-general.php?page=url_shortener_settings
- > Notice in wp-content/plugins/wp-url-shortener/index.php+80
Undefined variable: plugin_name
- > GET request to /wp-admin/options-general.php?page=url_shortener_settings
- > Notice in wp-content/plugins/wp-url-shortener/index.php+80
Undefined variable: plugin_version
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=url_shortener_settings
- > Notice in wp-content/plugins/wp-url-shortener/index.php+117
Trying to access array offset on value of type bool
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-url-shortener/index.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (WP URL Shortener), #2 (WP URL Shortener)
wp-url-shortener/index.php 92% from 13 tests
This is the main PHP file of "WP URL Shortener" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-url-shortener.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected187 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 13 | 125 |
PO File | 1 | 27 | 44 | 40 |
CSS | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot 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.14 |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/plug-and-play.png | 4.91KB | 1.75KB | ▼ 64.38% |
screenshot-1.png | 32.95KB | 14.50KB | ▼ 55.99% |
images/wp-live-support.png | 5.81KB | 2.25KB | ▼ 61.30% |
screenshot-2.png | 71.29KB | 34.19KB | ▼ 52.04% |
images/facebook-ogg-meta-tags.png | 5.17KB | 1.93KB | ▼ 62.60% |