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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.12ms] Passed 4 tests
This is a short check of server-side resources used by RJ Quick Empty Trash
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.93 ▲0.99 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.61 ▼12.49 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 43.62 ▼7.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.38 ▲7.46 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.38 ▲2.38 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
RJQET_Plugin__installed |
widget_theysaidso_widget |
RJQET_Plugin__version |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for RJ Quick Empty Trash
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.18 ▼1.05 | 4.46 ▲2.77 | 43.89 ▲3.35 |
Dashboard /wp-admin | 2,209 ▲18 | 4.84 ▼0.19 | 102.83 ▲1.51 | 43.34 ▼0.24 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.02 ▼0.04 | 35.80 ▼3.93 | 34.20 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 23.20 ▲5.06 | 631.35 ▼6.20 | 49.72 ▼10.97 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.11 | 95.66 ▼2.06 | 43.71 ▲0.68 |
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
- This plugin did not uninstall successfully, leaving 8 options in the database
- RJQET_Plugin__installed
- can_compress_scripts
- widget_recent-comments
- RJQET_Plugin__version
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rj-quick-empty-trash/rj-quick-empty-trash.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: trash, rj, quick, randy jensen, empty
rj-quick-empty-trash/rj-quick-empty-trash.php Passed 13 tests
The primary PHP file in "RJ Quick Empty Trash" version 0.0.2 is used by WordPress to initiate all plugin functionality
62 characters long description:
Easier access to empty the trash for Posts, Pages and Comments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin562 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 144 | 438 | 562 |
PHP code Passed 2 tests
A short 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.33 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 63.16% |
▷ Protected methods | 28 | 36.84% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin