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
Installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼294.14ms] Passed 4 tests
A check of server-side resources used by Optimize Database after Deleting Revisions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.46 | 56.43 ▼15.26 |
Dashboard /wp-admin | 3.81 ▲0.41 | 36.19 ▲0.12 |
Posts /wp-admin/edit.php | 4.04 ▲0.40 | 42.42 ▲2.09 |
Add New Post /wp-admin/post-new.php | 7.34 ▲0.37 | 99.73 ▼1,163.52 |
Media Library /wp-admin/upload.php | 3.75 ▲0.46 | 27.06 ▲3.07 |
Optimize Database /wp-admin/tools.php?page=rvg-optimize-database | 3.67 | 42.50 |
Optimize Database /wp-admin/options-general.php?page=odb_settings_page | 3.80 | 26.38 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 42 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_odb_logs |
New WordPress options |
---|
odb_rvg_excluded_tabs |
odb_rvg_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Optimize Database after Deleting Revisions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲51 | 16.01 ▲0.71 | 9.09 ▲2.07 | 2.59 ▲0.15 |
Dashboard /wp-admin | 2,902 ▲41 | 6.09 ▼0.14 | 137.41 ▼4.62 | 168.03 ▼0.24 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.24 ▲0.01 | 67.68 ▲4.45 | 154.88 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,779 ▲111 | 20.98 ▲2.23 | 475.64 ▲49.96 | 185.03 ▼29.76 |
Media Library /wp-admin/upload.php | 1,702 ▲7 | 5.54 ▲0.05 | 189.02 ▲47.18 | 190.02 ▼76.57 |
Optimize Database /wp-admin/tools.php?page=rvg-optimize-database | 1,287 | 2.40 | 58.07 | 159.99 |
Optimize Database /wp-admin/options-general.php?page=odb_settings_page | 2,065 | 2.45 | 56.55 | 175.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method OptimizeDatabase::odb_uninstallation_handler() should not be called statically
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rvg-optimize-database/rvg-optimize-database.php:99
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rvg-optimize-database/includes/settings-page.php:155
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
rvg-optimize-database/rvg-optimize-database.php Passed 13 tests
"Optimize Database after Deleting Revisions" version 5.0.110's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Optimizes the Wordpress Database after Cleaning it out
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,420 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 2,246 | 2,987 | 4,421 |
PHP | 8 | 577 | 710 | 2,843 |
CSS | 2 | 0 | 14 | 156 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 127)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 267.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 127.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 1 | 1.30% |
▷ Public methods | 75 | 97.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.60% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/question.png | 1.29KB | 0.30KB | ▼ 76.56% |
images/icon.png | 1.46KB | 0.61KB | ▼ 57.81% |