Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.55ms] Passed 4 tests
An overview of server-side resources used by Database Cleaner: Clean, Optimize & Repair
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 48.92 ▲4.40 |
Dashboard /wp-admin | 3.43 ▲0.09 | 51.48 ▼10.13 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.40 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 89.74 ▼18.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 39.51 ▲5.03 |
Database Cleaner /wp-admin/admin.php?page=dbclnr_settings | 3.82 | 72.51 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 4.02 | 84.71 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Database Cleaner: Clean, Optimize & Repair
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲106 | 14.25 ▼0.09 | 2.19 ▲0.40 | 41.54 ▼1.88 |
Dashboard /wp-admin | 2,245 ▲71 | 5.63 ▼0.06 | 92.63 ▼8.99 | 42.44 ▼7.09 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 1.95 ▼0.07 | 40.05 ▲1.52 | 36.86 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,582 ▲46 | 25.09 ▲1.92 | 613.46 ▼35.72 | 66.11 ▲20.99 |
Media Library /wp-admin/upload.php | 1,453 ▲59 | 4.19 ▼0.07 | 95.33 ▼9.24 | 39.75 ▼2.15 |
Database Cleaner /wp-admin/admin.php?page=dbclnr_settings | 1,767 | 8.77 | 362.66 | 59.97 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,658 | 5.02 | 137.77 | 74.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 25× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/comments_unapproved_comments.php:3
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/posts_metadata_orphaned_post_meta.php:3
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/users_duplicated_user_meta.php:3
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/users_orphaned_user_meta.php:3
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/posts_metadata_unused_terms.php:3
- > PHP Warning
require_once(DBCLNR_PATH/common/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/database-cleaner/classes/init.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/posts_metadata_duplicated_term_meta.php:3
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/comments_duplicated_comments_meta.php:3
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/comments_deleted_comments.php:3
- > PHP Fatal error
Uncaught Error: Class 'Meow_DBCLNR_Queries_Core' not found in wp-content/plugins/database-cleaner/classes/queries/comments_orphaned_comments_meta.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #2, #3, #4 in database-cleaner/assets to your readme.txt
database-cleaner/database-cleaner.php 92% from 13 tests
The main file in "Database Cleaner: Clean, Optimize & Repair" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,592 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 628 | 240 | 5,382 |
JavaScript | 3 | 21 | 35 | 210 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 336 | |
▷ Static methods | 23 | 6.85% |
▷ Public methods | 325 | 96.73% |
▷ Protected methods | 9 | 2.68% |
▷ Private methods | 2 | 0.60% |
Functions | 23 | |
▷ Named functions | 1 | 4.35% |
▷ Anonymous functions | 22 | 95.65% |
Constants | 6 | |
▷ Global constants | 6 | 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