Benchmarks
Plugin footprint 65% 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.91MB] [CPU: ▼30.68ms] Passed 4 tests
Server-side resources used by Change Empty Trash Time
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.44 ▼2.65 |
Dashboard /wp-admin | 3.03 ▼0.27 | 25.30 ▼28.56 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 27.38 ▼26.29 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 30.47 ▼58.93 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 24.76 ▼8.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Change Empty Trash Time
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.26 ▼1.48 | 1.74 ▼0.52 | 41.61 ▲0.14 |
Dashboard /wp-admin | 2,209 ▼0 | 4.86 ▼0.99 | 108.13 ▲10.30 | 41.82 ▲2.29 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.96 ▼0.09 | 48.02 ▲8.00 | 39.18 ▲3.72 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.20 ▼0.05 | 694.85 ▲74.38 | 64.51 ▼4.30 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.04 | 96.31 ▼3.36 | 41.77 ▼3.01 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/change-wp-empty-trash-time/change-wp-empty-trash-time.php+28
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- 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
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 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/change-wp-empty-trash-time/change-wp-empty-trash-time.php:14
- > 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: trash, bin, empty, time
change-wp-empty-trash-time/change-wp-empty-trash-time.php Passed 13 tests
Analyzing the main PHP file in "Change Empty Trash Time" version 1.0.4
133 characters long description:
This plugin creates a new setting at the end of Settings > General that allows to select the time that WordPress take to empty trash.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected116 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 14 | 14 | 75 |
PHP | 2 | 0 | 23 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.PNG | 19.79KB | 10.71KB | ▼ 45.89% |
assets/screenshot-2.PNG | 7.75KB | 4.86KB | ▼ 37.25% |