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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.79MB] [CPU: ▼177.29ms] Passed 4 tests
An overview of server-side resources used by BAW AutoShortener
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.02 | 17.76 ▼14.86 |
Dashboard /wp-admin | 2.86 ▼0.19 | 18.98 ▼28.55 |
Posts /wp-admin/edit.php | 2.86 ▼0.25 | 19.44 ▼21.69 |
Add New Post /wp-admin/post-new.php | 2.86 ▼2.57 | 19.23 ▼640.44 |
Media Library /wp-admin/upload.php | 2.86 ▼0.14 | 14.21 ▼18.48 |
Auto Shortener /wp-admin/admin.php?page=baw_as_config | 2.86 | 17.95 |
BoiteAWeb /wp-admin/admin.php?page=baw_menu | 2.86 | 17.79 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 21 new options
New WordPress options |
---|
baw-as_autokeyword |
baw-as_uselast |
baw-as_fordibben_keywords |
baw-as_sortby |
baw-as_whichtab |
baw-as_usehelp |
baw-as_generated_name |
baw-as_keepqueryvars |
baw-as_replacepermalink |
baw-as_reflevel |
... |
Browser metrics Passed 4 tests
BAW AutoShortener: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,018 ▲422 | 16.24 ▲0.67 | 12.10 ▲1.79 | 43.62 ▼6.21 |
Dashboard /wp-admin | 3,301 ▲370 | 6.34 ▲0.09 | 147.94 ▲6.00 | 163.48 ▲48.14 |
Posts /wp-admin/edit.php | 2,837 ▲98 | 2.41 ▼0.30 | 73.14 ▼15.49 | 88.14 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,774 ▲276 | 21.55 ▲2.65 | 353.92 ▼42.78 | 119.37 ▲10.42 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.11 ▲0.10 | 138.53 ▼4.53 | 141.52 ▲23.36 |
Auto Shortener /wp-admin/admin.php?page=baw_as_config | 3,175 | 2.60 | 65.16 | 106.40 |
BoiteAWeb /wp-admin/admin.php?page=baw_menu | 1,529 | 2.41 | 62.86 | 129.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/baw-autoshortener/functions.inc.php+321
Undefined index: query
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=baw_menu
- > Notice in wp-content/plugins/baw-autoshortener/functions.inc.php+322
Undefined index: fragment
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=baw_menu
- > Notice in wp-content/plugins/baw-autoshortener/baw_auto_shortener.php+278
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=baw_menu
- > Notice in wp-content/plugins/baw-autoshortener/baw_auto_shortener.php+278
Trying to get property 'ID' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/baw-autoshortener/includes/general-settings.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/baw-autoshortener/defines.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/baw-autoshortener/functions.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/baw-autoshortener/includes/advanced-settings.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/baw-autoshortener/includes/help.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/baw-autoshortener/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/baw-autoshortener/includes/tools.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/baw-autoshortener/infos.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/baw-autoshortener/defines.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/baw-autoshortener/includes/special-redirections.inc.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
baw-autoshortener/baw_auto_shortener.php 92% from 13 tests
This is the main PHP file of "BAW AutoShortener" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("baw-autoshortener.php" instead of "baw_auto_shortener.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,762 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 77 | 27 | 1,528 |
PO File | 1 | 231 | 357 | 441 |
CSS | 5 | 78 | 0 | 435 |
JavaScript | 4 | 22 | 0 | 358 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 50 | |
▷ Named functions | 50 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notvalid.png | 0.87KB | 1.00KB | 0.00% |
images/help.png | 1.67KB | 1.39KB | ▼ 16.74% |
images/schain.png | 1.21KB | 0.35KB | ▼ 70.79% |
images/edit.png | 0.73KB | 0.75KB | 0.00% |
images/minidel.png | 0.20KB | 0.13KB | ▼ 32.18% |