Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.91ms] Passed 4 tests
An overview of server-side resources used by SEO File Renamer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.19 ▲1.40 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.00 ▼14.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.17 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.50 ▼21.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.96 ▲3.35 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for SEO File Renamer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲35 | 14.24 ▼0.12 | 2.05 ▲0.32 | 46.89 ▲4.88 |
Dashboard /wp-admin | 2,212 ▲38 | 5.57 ▼0.04 | 82.87 ▲0.23 | 81.48 ▲37.88 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.01 ▲0.03 | 36.83 ▲2.46 | 32.69 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.11 ▼0.20 | 729.11 ▲48.61 | 54.48 ▲3.66 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.14 ▼0.15 | 104.10 ▼2.57 | 83.37 ▲36.53 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-file-renamer/seo-file-renamer.php:111
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sanitization, renamer, google search, seo
seo-file-renamer/seo-file-renamer.php Passed 13 tests
The entry point to "SEO File Renamer" version 1.0.3 is a PHP file that has certain tags in its header comment area
58 characters long description:
A super simple plugin for uploaded file name sanitization.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected214 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 24 | 18 | 118 |
CSS | 1 | 0 | 0 | 77 |
SVG | 1 | 0 | 1 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/admin/images/seo-renamer-icon.png | 0.67KB | 0.67KB | 0.00% |