Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.08ms] Passed 4 tests
Server-side resources used by Prevent XSS Vulnerability
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.51 ▼3.81 |
Dashboard /wp-admin | 3.33 ▲0.02 | 58.08 ▲3.66 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 53.92 ▼0.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.33 ▲1.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.12 ▲2.04 |
Reflected XSS /wp-admin/admin.php?page=prevent-xss-vulnerability-reflected-settings | 3.31 | 37.81 |
About /wp-admin/admin.php?page=prevent-xss-vulnerability-about | 3.31 | 43.50 |
Self-XSS /wp-admin/admin.php?page=prevent-xss-vulnerability-self-settings | 3.26 | 38.56 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Prevent XSS Vulnerability: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲42 | 13.21 ▲0.03 | 1.68 ▼0.12 | 49.18 ▲3.09 |
Dashboard /wp-admin | 2,240 ▲34 | 4.85 ▼0.99 | 105.84 ▼5.92 | 44.41 ▲0.90 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.05 ▲0.01 | 37.87 ▲2.14 | 32.68 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,437 ▼83 | 17.86 ▼3.12 | 644.90 ▼90.48 | 50.86 ▼1.03 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.14 ▼0.05 | 112.73 ▲0.21 | 49.49 ▲1.82 |
Reflected XSS /wp-admin/admin.php?page=prevent-xss-vulnerability-reflected-settings | 1,198 | 2.06 | 29.04 | 50.61 |
About /wp-admin/admin.php?page=prevent-xss-vulnerability-about | 2,182 | 2.04 | 31.73 | 49.30 |
Self-XSS /wp-admin/admin.php?page=prevent-xss-vulnerability-self-settings | 857 | 2.05 | 26.38 | 25.00 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 97% 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
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in prevent-xss-vulnerability/assets to your readme.txt
prevent-xss-vulnerability/prevent-xss-vulnerability.php Passed 13 tests
This is the main PHP file of "Prevent XSS Vulnerability" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
Secure your site from the XSS Attack.
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
No dangerous file extensions were detected9,480 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 1 | 1 | 8,119 |
PHP | 9 | 145 | 363 | 1,258 |
PO File | 1 | 45 | 48 | 100 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 54.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 45.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/media-post-permalink.png | 24.03KB | 11.56KB | ▼ 51.92% |
assets/images/prevent-xss-vulnerability.png | 7.36KB | 7.25KB | ▼ 1.51% |