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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by WP DB Cleaner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.57 ▼1.98 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.56 ▼3.52 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.98 ▼1.59 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 83.63 ▼16.97 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 35.29 ▼0.55 |
WP DB Clean /wp-admin/tools.php?page=db-clean | 3.29 | 34.16 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP DB Cleaner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.36 ▼1.38 | 1.90 ▼0.16 | 41.33 ▼1.79 |
Dashboard /wp-admin | 2,214 ▲31 | 5.86 ▲0.93 | 101.09 ▼14.35 | 39.33 ▼7.13 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.03 | 36.64 ▼2.16 | 34.68 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.29 ▼0.08 | 665.43 ▼12.20 | 52.95 ▼12.12 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.19 ▼0.05 | 96.59 ▼17.88 | 39.34 ▼7.76 |
WP DB Clean /wp-admin/tools.php?page=db-clean | 790 | 1.53 | 6.61 | 18.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=db-clean
- > Notice in wp-admin/includes/class-wp-list-table.php+1626
Trying to access array offset on value of type null
- > GET request to /wp-admin/tools.php?page=db-clean
- > Error in wp-admin/includes/class-wp-list-table.php+1572
Uncaught Error: Call to a member function render_screen_reader_content() on null in wp-admin/includes/class-wp-list-table.php:1572
Stack trace:
#0 wp-content/plugins/wp-db-cleaner/admin/classes/class-wp-orphan-data.php(277): WP_List_Table->display()
#1 wp-content/plugins/wp-db-cleaner/admin/template/db-cleaner-page.php(33): lm_dbc_orphan_ui()
#2 wp-content/plugins/wp-db-cleaner/admin/class-wp-db-cleaner-admin.php(53): require_once('/var/www/wordpr...')
#3 wp-includes/class-wp-hook.php(310): Db_Cleaner_Admin->get_clean_ui()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/tools.php(40): require_once('/var/www/wordpr...')
#8 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-db-cleaner/admin/classes/class-wp-db-cleaner-list.php on line 12
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-db-cleaner/admin/classes/class-wp-db-cleaner-list.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-db-cleaner/admin/wp-cli/class-wp-cleaner-cli.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-db-cleaner/admin/template/db-cleaner-page.php:20
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-db-cleaner/admin/classes/class-wp-db-cleaner-list.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-db-cleaner ===
)
wp-db-cleaner/wp-db-cleaner.php Passed 13 tests
The primary PHP file in "WP DB Cleaner" version 2.0.1 is used by WordPress to initiate all plugin functionality
55 characters long description:
Clean WordPress orphan and duplicate data from 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
Success! There were no dangerous files found in this plugin754 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 225 | 540 | 686 |
Markdown | 1 | 22 | 0 | 40 |
CSS | 1 | 9 | 7 | 25 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 4 | 7.41% |
▷ Public methods | 46 | 85.19% |
▷ Protected methods | 3 | 5.56% |
▷ Private methods | 5 | 9.26% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin