Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/strings-sanitizer/init.php+45
Undefined variable: wp_version
Server metrics [RAM: ▼1.80MB] [CPU: ▼50.37ms] Passed 4 tests
This is a short check of server-side resources used by Strings Sanitizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 6.64 ▼34.71 |
Dashboard /wp-admin | 2.20 ▼1.10 | 7.96 ▼41.64 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 6.99 ▼40.07 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 8.89 ▼85.05 |
Media Library /wp-admin/upload.php | 2.20 ▼1.02 | 6.93 ▼28.39 |
Strings Sanitizer /wp-admin/admin.php?page=prospek-strings-sanitizer | 2.20 | 9.68 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
prospek_strings_sanitizer |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Strings Sanitizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲139 | 13.30 ▼0.99 | 1.47 ▼0.29 | 41.59 ▼3.74 |
Dashboard /wp-admin | 2,277 ▲91 | 4.95 ▼0.08 | 118.24 ▼31.02 | 81.38 ▲34.00 |
Posts /wp-admin/edit.php | 2,166 ▲77 | 2.34 ▲0.30 | 49.82 ▲14.39 | 42.17 ▲4.94 |
Add New Post /wp-admin/post-new.php | 1,550 ▲20 | 17.57 ▼0.73 | 718.15 ▲47.64 | 58.74 ▼2.24 |
Media Library /wp-admin/upload.php | 1,459 ▲71 | 4.33 ▲0.13 | 130.10 ▲33.54 | 50.57 ▲8.72 |
Strings Sanitizer /wp-admin/admin.php?page=prospek-strings-sanitizer | 917 | 1.89 | 43.41 | 51.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prospek-strings-sanitizer handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=prospek-strings-sanitizer
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prospek-strings-sanitizer handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=prospek-strings-sanitizer
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the bootstrap-buttons handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=prospek-strings-sanitizer
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fontawesome-webfonts handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=prospek-strings-sanitizer
- > Notice in wp-content/plugins/strings-sanitizer/classes/admin_pointers.php+137
Array to string conversion
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/strings-sanitizer/views/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/strings-sanitizer/core.php:127
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=prospek-strings-sanitizer
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpPointerL10n.dismiss is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Tested up to: The plugin version is formatted incorrectly
strings-sanitizer/init.php 85% from 13 tests
The main PHP file in "Strings Sanitizer" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("strings-sanitizer.php" instead of "init.php")
- Description: The description should be shorter than 140 characters (currently 231 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,558 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 40 | 18 | 791 |
PHP | 6 | 136 | 431 | 503 |
SVG | 1 | 0 | 0 | 175 |
PO File | 2 | 25 | 51 | 81 |
HTML | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 5 | 19.23% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pointer/pointer.png | 2.04KB | 0.72KB | ▼ 64.51% |
assets/images/wp-icon-x16.png | 1.23KB | 0.39KB | ▼ 68.39% |
assets/images/wp-icon-x32.png | 1.37KB | 0.54KB | ▼ 60.80% |
assets/images/pointer/icon.png | 1.57KB | 0.58KB | ▼ 63.26% |