Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼2.57ms] Passed 4 tests
Analyzing server-side resources used by Advanced Database Cleaner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 45.62 ▲2.70 |
Dashboard /wp-admin | 3.62 ▲0.32 | 56.44 ▲1.47 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.87 ▼2.32 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 90.78 ▼12.13 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 43.90 ▲2.87 |
WP DB Cleaner /wp-admin/tools.php?page=advanced_db_cleaner | 3.64 | 43.11 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
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 / | 2,843 ▲82 | 14.27 ▼0.39 | 1.90 ▼0.13 | 43.40 ▼1.55 |
Dashboard /wp-admin | 2,221 ▲47 | 5.52 ▼0.06 | 91.47 ▼9.39 | 39.11 ▼6.26 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.04 ▲0.06 | 36.57 ▼0.41 | 32.35 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.15 ▼0.21 | 687.76 ▼3.96 | 67.23 ▲11.33 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.14 ▼0.07 | 102.99 ▼10.64 | 48.65 ▲0.04 |
WP DB Cleaner /wp-admin/tools.php?page=advanced_db_cleaner | 1,955 | 2.15 | 28.68 | 54.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/custom-schedule-view/class_edit_cleanup_schedule.php:5
- > 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: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/class_general_cleanup.php:5
- > PHP Warning
Use of undefined constant ADBC_PLUGIN_PLAN - assumed 'ADBC_PLUGIN_PLAN' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-database-cleaner/includes/header_page_filter.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/advanced-database-cleaner/includes/overview_settings.php:6
- > 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-schedule-view/class_add_cleanup_schedule.php:5
- > 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:5
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-database-cleaner/includes/custom-clean-view/class_clean_relationships.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
advanced-database-cleaner/advanced-db-cleaner.php 92% from 13 tests
The main PHP script in "Advanced Database Cleaner" version 3.1.3 is automatically included on every request by WordPress
The following require your attention:
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin8,057 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 2,377 | 1,089 | 6,330 |
CSS | 2 | 284 | 102 | 1,177 |
JavaScript | 2 | 108 | 92 | 317 |
SVG | 20 | 0 | 5 | 233 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 53.73 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 173 | |
▷ Static methods | 1 | 0.58% |
▷ Public methods | 164 | 94.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 5.20% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 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/order_now.png | 14.00KB | 6.45KB | ▼ 53.91% |
images/premium_ok.png | 4.54KB | 3.56KB | ▼ 21.67% |
images/help.png | 3.96KB | 2.63KB | ▼ 33.51% |
images/menu-icon.png | 0.49KB | 0.71KB | 0.00% |
images/icon-128x128.png | 9.76KB | 4.10KB | ▼ 58.00% |