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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.56ms] Passed 4 tests
An overview of server-side resources used by Rename Featured Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.18 ▼1.53 |
Dashboard /wp-admin | 3.32 ▼0.02 | 46.95 ▼12.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.93 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.74 ▼5.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.80 ▲1.74 |
wpRFP Options /wp-admin/options-general.php?page=wpRFP-options | 3.21 | 31.16 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Rename Featured Image
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.26 ▼0.37 | 1.82 ▲0.28 | 38.71 ▲2.31 |
Dashboard /wp-admin | 2,196 ▲18 | 5.52 ▼0.14 | 83.54 ▼16.22 | 41.86 ▼1.34 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.08 | 35.45 ▲1.24 | 31.98 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.12 ▲4.52 | 666.36 ▲30.69 | 54.12 ▼26.91 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.13 ▼0.02 | 99.98 ▲4.82 | 43.01 ▼3.24 |
wpRFP Options /wp-admin/options-general.php?page=wpRFP-options | 924 | 2.02 | 23.30 | 27.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rename-featured-image/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/rename-featured-image/admin/wpRFP-options.php:256
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
5 plugin tags: rename thumbnail, rename image, featured image rename, rename post attachment, rename post thumbnail
rename-featured-image/index.php 85% from 13 tests
The main file in "Rename Featured Image" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 215 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rename-featured-image.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin230 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 104 | 230 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.50KB | 8.79KB | ▼ 59.11% |