Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.89ms] Passed 4 tests
An overview of server-side resources used by Safe Attachment Names
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 32.74 ▼3.96 |
Dashboard /wp-admin | 3.34 ▲0.03 | 42.26 ▼7.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.81 ▲0.89 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.09 ▼17.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.92 ▲2.63 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Safe Attachment Names
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.22 | 2.09 ▲0.45 | 39.39 ▲1.59 |
Dashboard /wp-admin | 2,189 ▲9 | 5.56 ▼0.11 | 85.81 ▲0.91 | 40.74 ▼2.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.02 | 38.46 ▲1.81 | 38.02 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,529 ▼7 | 23.27 ▲5.02 | 623.72 ▲6.85 | 65.84 ▲6.62 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.18 ▲0.02 | 94.15 ▼0.59 | 45.19 ▲1.26 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/safe-attachment-names/safe-attachment-names.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: attachments, administration, special characters, admin, attachment...
safe-attachment-names/safe-attachment-names.php Passed 13 tests
The principal PHP file in "Safe Attachment Names" v. 1.0.0 is loaded by WordPress automatically on each request
111 characters long description:
Automatically detect and change the name of attachments containing special characters such as accented letters.
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
Success! There were no dangerous files found in this plugin348 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 276 | 913 | 178 |
PHP | 1 | 60 | 79 | 170 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 37.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin