Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.72ms] Passed 4 tests
A check of server-side resources used by Del-Post-Rev
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.96 ▼4.97 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.03 ▲0.89 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.73 ▼2.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 93.12 ▲2.48 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.88 ▼0.42 |
Del-Post-Rev /wp-admin/options-general.php?page=dpr_settings | 3.08 | 25.23 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
dpr |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Del-Post-Rev
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.64 ▲0.06 | 1.74 ▲0.04 | 44.39 ▲0.66 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼0.26 | 106.36 ▼1.46 | 42.47 ▼0.11 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▼0.02 | 33.74 ▼4.64 | 32.82 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 18.27 ▼4.96 | 649.40 ▲41.46 | 59.62 ▲11.78 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.06 | 101.88 ▼3.15 | 46.72 ▲4.19 |
Del-Post-Rev /wp-admin/options-general.php?page=dpr_settings | 903 | 2.04 | 25.11 | 26.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=dpr_settings
- > Warning in wp-content/plugins/del-post-rev/del-post-rev.php+69
Use of undefined constant jquery - assumed 'jquery' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=dpr_settings
- > Notice in wp-content/plugins/del-post-rev/del-post-rev.php+106
Undefined index: dpr_submit
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Admin settings page)
del-post-rev/del-post-rev.php Passed 13 tests
"Del-Post-Rev" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
43 characters long description:
Delete post revisions and disable revisions
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
Good job! No executable or dangerous file extensions detected526 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 7 | 32 | 352 |
PHP | 1 | 20 | 14 | 150 |
JavaScript | 1 | 3 | 0 | 12 |
Markdown | 1 | 9 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin