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.01MB] [CPU: ▲1.77ms] Passed 4 tests
A check of server-side resources used by Delete Post Revision
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 57.49 ▲18.82 |
Dashboard /wp-admin | 3.32 ▲0.01 | 57.56 ▲5.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 56.57 ▲3.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.67 ▼20.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 59.29 ▲24.16 |
Delete Post Revision /wp-admin/tools.php?page=delete-post-revision-main | 3.21 | 39.50 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
delete_post_revision_getPosts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
delete_post_revision_no |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Delete Post Revision
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.07 | 2.58 ▲1.03 | 42.94 ▼2.13 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.02 | 85.95 ▼9.61 | 43.07 ▼3.97 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.10 ▲0.08 | 37.11 ▼4.20 | 36.40 ▼13.08 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.33 ▲0.38 | 697.54 ▲64.44 | 57.81 ▲2.45 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.09 ▼0.04 | 111.32 ▲7.07 | 47.65 ▼0.64 |
Delete Post Revision /wp-admin/tools.php?page=delete-post-revision-main | 784 | 2.00 | 26.45 | 29.27 |
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
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- delete_post_revision_getPosts
- theysaidso_admin_options
- db_upgraded
- delete_post_revision_no
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/delete-post-revision/delete-post-revision.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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: revision, clean up, database, post
delete-post-revision/delete-post-revision.php Passed 13 tests
"Delete Post Revision" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Help you clean out redundant & repetitive post revisions and thin out the database.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin166 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 25 | 100 |
PO File | 2 | 28 | 46 | 66 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 7 | |
▷ Named functions | 7 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin