Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼291.91ms] Passed 4 tests
Server-side resources used by Advanced Database Cleaner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.34 | 61.89 ▲9.96 |
Dashboard /wp-admin | 3.69 ▲0.29 | 35.77 ▲2.54 |
Posts /wp-admin/edit.php | 3.92 ▲0.28 | 40.94 ▲3.41 |
Add New Post /wp-admin/post-new.php | 7.16 ▲0.19 | 94.91 ▼1,177.98 |
Media Library /wp-admin/upload.php | 3.57 ▲0.28 | 26.77 ▲4.41 |
WP DB Cleaner /wp-admin/tools.php?page=advanced_db_cleaner | 3.67 | 32.54 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Database Cleaner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲62 | 16.01 ▲0.21 | 5.63 ▼0.20 | 2.32 ▼0.42 |
Dashboard /wp-admin | 2,921 ▲60 | 6.13 ▼0.04 | 118.77 ▼15.30 | 153.98 ▼6.95 |
Posts /wp-admin/edit.php | 2,721 ▲27 | 3.37 ▲0.14 | 61.35 ▼3.00 | 140.92 ▼2.56 |
Add New Post /wp-admin/post-new.php | 1,674 ▲13 | 16.11 ▼0.35 | 418.28 ▲6.60 | 150.13 ▼8.06 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.54 ▲0.00 | 146.53 ▲9.70 | 191.33 ▲3.46 |
WP DB Cleaner /wp-admin/tools.php?page=advanced_db_cleaner | 2,484 | 3.17 | 59.75 | 182.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-database-cleaner/includes/premium_page.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/class_clean_tables.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/custom-clean-view/class_clean_transient.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/class_general_cleanup.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/class_clean_tables.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/class_clean_options.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-database-cleaner/includes/custom-clean-view/page_custom_clean.php:4
- > PHP Warning
Use of undefined constant ADBC_PLUGIN_DIR_PATH - assumed 'ADBC_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-database-cleaner/includes/custom-clean-view/header_page_custom_clean.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/custom-clean-view/class_clean_comment.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/custom-clean-view/class_clean_revision_draft_trash.php:3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
advanced-database-cleaner/advanced-db-cleaner.php 92% from 13 tests
The entry point to "Advanced Database Cleaner" version 3.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-database-cleaner.php" instead of "advanced-db-cleaner.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,874 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,297 | 985 | 5,736 |
CSS | 2 | 40 | 116 | 776 |
SVG | 22 | 0 | 4 | 256 |
JavaScript | 2 | 36 | 28 | 106 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 49.53 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 1 | 0.60% |
▷ Public methods | 164 | 98.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.80% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/help.png | 3.96KB | 2.63KB | ▼ 33.51% |
images/icon-128x128.png | 9.76KB | 4.10KB | ▼ 58.00% |
images/premium_ok.png | 4.54KB | 3.56KB | ▼ 21.67% |
images/menu-icon.png | 0.49KB | 0.71KB | 0.00% |
images/order_now.png | 14.00KB | 6.45KB | ▼ 53.91% |