Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.70MB] [CPU: ▲4.21ms] Passed 4 tests
A check of server-side resources used by File Renaming on Upload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 45.39 ▲3.80 |
Dashboard /wp-admin | 4.08 ▲0.78 | 56.67 ▲8.55 |
Posts /wp-admin/edit.php | 4.19 ▲0.84 | 59.29 ▲11.31 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 90.25 ▼6.84 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 44.83 ▲11.90 |
File renaming /wp-admin/options-general.php?page=file-renaming-on-upload | 3.98 | 43.11 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
frou_filenaming_rules_opt |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
frou_advanced_opt |
widget_recent-posts |
theysaidso_admin_options |
frou_general_opt |
Browser metrics Passed 4 tests
An overview of browser requirements for File Renaming on Upload
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲223 | 15.33 ▲1.04 | 1.81 ▲0.11 | 42.62 ▼5.90 |
Dashboard /wp-admin | 2,367 ▲179 | 6.63 ▲0.74 | 135.82 ▲25.94 | 45.61 ▲2.42 |
Posts /wp-admin/edit.php | 2,267 ▲178 | 3.50 ▲1.44 | 56.74 ▲17.28 | 34.95 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,534 ▲2 | 23.17 ▼0.20 | 735.59 ▲109.64 | 40.23 ▼13.61 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.34 ▲0.03 | 80.81 ▼16.16 | 39.41 ▼2.77 |
File renaming /wp-admin/options-general.php?page=file-renaming-on-upload | 1,451 | 3.62 | 50.71 | 58.99 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- frou_advanced_opt
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- frou_filenaming_rules_opt
- frou_general_opt
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/file-renaming-on-upload/vendor/tareq1988/wordpress-settings-api-class/example/oop-example.php' (include_path='.:/usr/share/php') in wp-content/plugins/file-renaming-on-upload/vendor/tareq1988/wordpress-settings-api-class/plugin.php on line 12
- > PHP Warning
require_once(wp-content/plugins/file-renaming-on-upload/vendor/tareq1988/wordpress-settings-api-class/example/oop-example.php): failed to open stream: No such file or directory in wp-content/plugins/file-renaming-on-upload/vendor/tareq1988/wordpress-settings-api-class/plugin.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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: rename, characters, renaming, upload, file...
file-renaming-on-upload/file-renaming-on-upload.php Passed 13 tests
The main PHP file in "File Renaming on Upload" ver. 2.5.6 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
Fixes file uploads with accents and special characters by renaming them. It also improves your SEO.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,665 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 842 | 1,965 | 3,124 |
JSON | 5 | 0 | 0 | 263 |
PO File | 1 | 61 | 63 | 161 |
Markdown | 1 | 17 | 0 | 66 |
YAML | 1 | 7 | 6 | 23 |
XML | 2 | 9 | 3 | 21 |
Bourne Shell | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 202 | |
▷ Static methods | 23 | 11.39% |
▷ Public methods | 184 | 91.09% |
▷ Protected methods | 11 | 5.45% |
▷ Private methods | 7 | 3.47% |
Functions | 12 | |
▷ Named functions | 5 | 41.67% |
▷ Anonymous functions | 7 | 58.33% |
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
No PNG files were detected