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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.11ms] Passed 4 tests
An overview of server-side resources used by Auto Rename Media On Upload
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.59 ▼0.04 |
Dashboard /wp-admin | 3.39 ▲0.09 | 53.49 ▲2.46 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.11 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.35 ▼14.88 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.81 ▲2.70 |
Auto Rename Media On Upload /wp-admin/options-general.php?page=auto-rename-media-on-upload | 3.27 | 33.78 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
armoup_options |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Auto Rename Media On Upload
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.35 ▼0.18 | 1.86 ▼0.09 | 43.40 ▲2.62 |
Dashboard /wp-admin | 2,196 ▲19 | 5.66 ▲0.06 | 93.20 ▲7.55 | 42.21 ▼2.47 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.05 | 33.85 ▼3.84 | 34.32 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.62 ▲0.39 | 656.91 ▼38.57 | 56.30 ▲3.02 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▲0.07 | 92.14 ▼8.44 | 40.69 ▼2.92 |
Auto Rename Media On Upload /wp-admin/options-general.php?page=auto-rename-media-on-upload | 1,093 | 1.96 | 26.24 | 32.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- armoup_options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/auto-rename-media-on-upload/auto-rename-media-on-upload.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
auto-rename-media-on-upload/auto-rename-media-on-upload.php Passed 13 tests
The entry point to "Auto Rename Media On Upload" version 1.1.0 is a PHP file that has certain tags in its header comment area
123 characters long description:
Automatically renames any media files you upload by adding a prefix to the beginning of the filename based on the filetype.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected601 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 155 | 23 | 601 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dbut-small.png | 5.33KB | 2.67KB | ▼ 49.92% |
stars-small.png | 1.50KB | 1.51KB | 0.00% |
dbut.png | 13.46KB | 6.06KB | ▼ 55.01% |