Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼17.45ms] Passed 4 tests
An overview of server-side resources used by Uploaded file name sanitizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.03 | 34.66 ▼26.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.51 ▼11.19 |
Posts /wp-admin/edit.php | 3.36 ▼0.49 | 48.25 ▼7.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.85 ▼24.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.68 ▼5.70 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Uploaded file name sanitizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.56 ▼0.80 | 1.73 ▼0.27 | 37.69 ▼8.78 |
Dashboard /wp-admin | 2,203 ▲15 | 5.77 ▼0.14 | 93.39 ▼14.81 | 37.26 ▼7.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.96 ▼0.05 | 38.58 ▲2.64 | 35.38 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.83 ▼3.62 | 653.09 ▼37.58 | 54.23 ▼0.16 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▲0.01 | 96.50 ▼29.46 | 42.51 ▼63.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 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/uploaded-file-name-sanitizer/uploaded-file-name-sanitizer.php:19
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: upload, file name, sanitizer, filename
uploaded-file-name-sanitizer/uploaded-file-name-sanitizer.php Passed 13 tests
This is the main PHP file of "Uploaded file name sanitizer" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Replaces chars which are not in 'a-z', '0-9' and ' '(space) range.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin9 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 1 | 9 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin