Benchmarks
Plugin footprint 65% 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.33MB] [CPU: ▼1.49ms] Passed 4 tests
Server-side resources used by Media Cleaner: Clean your WordPress!
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.16 ▼12.15 |
Dashboard /wp-admin | 3.78 ▲0.44 | 53.09 ▼6.70 |
Posts /wp-admin/edit.php | 3.83 ▲0.48 | 59.64 ▲13.71 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 101.66 ▲7.81 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 37.12 ▲5.10 |
Media Cleaner /wp-admin/admin.php?page=wpmc_settings | 3.61 | 35.20 |
Cleaner /wp-admin/upload.php?page=wpmc_dashboard | 3.62 | 63.09 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.82 | 50.96 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_mclean_refs |
wp_mclean_scan |
New WordPress options |
---|
wpmc_options |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Media Cleaner: Clean your WordPress!
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲85 | 14.48 ▲0.13 | 1.58 ▲0.05 | 38.92 ▲0.20 |
Dashboard /wp-admin | 2,252 ▲75 | 5.58 ▼0.07 | 91.88 ▼6.60 | 42.21 ▼1.79 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 1.95 ▼0.02 | 40.49 ▲0.61 | 36.79 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 22.83 ▼0.24 | 597.06 ▼60.60 | 54.97 ▼2.67 |
Media Library /wp-admin/upload.php | 1,460 ▲57 | 4.17 ▼0.08 | 96.78 ▼1.71 | 40.91 ▼1.12 |
Media Cleaner /wp-admin/admin.php?page=wpmc_settings | 1,155 | 4.09 | 108.47 | 45.91 |
Cleaner /wp-admin/upload.php?page=wpmc_dashboard | 1,311 | 5.73 | 162.08 | 42.35 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,670 | 4.65 | 107.95 | 73.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 2 tables
- wp_mclean_refs
- wp_mclean_scan
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- wpmc_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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 | 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
Please take a closer look at the following
- 10× 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/media-cleaner/classes/parsers/wpseo.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-cleaner/classes/parsers/metaslider.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-cleaner/classes/parsers/maxmegamenu.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/media-cleaner/classes/init.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-cleaner/classes/parsers/attachments.php:7
- > PHP Fatal error
Uncaught Error: Class 'MeowCommon_Admin' not found in wp-content/plugins/media-cleaner/classes/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/media-cleaner/media-cleaner.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-cleaner/classes/parsers/common.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-cleaner/classes/parsers/woocommerce.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-cleaner/classes/parsers/my-calendar.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3 in media-cleaner/assets to your readme.txt
media-cleaner/media-cleaner.php Passed 13 tests
The entry point to "Media Cleaner: Clean your WordPress!" version 6.6.8 is a PHP file that has certain tags in its header comment area
96 characters long description:
Clean your WordPress! Eliminate unused and broken media files. For a faster, and better website.
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
There were no executable files found in this plugin4,449 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 525 | 349 | 3,694 |
PO File | 1 | 177 | 202 | 725 |
JSON | 1 | 1 | 0 | 25 |
JavaScript | 2 | 0 | 24 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 44.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 269.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 16 | 9.04% |
▷ Public methods | 175 | 98.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.13% |
Functions | 25 | |
▷ Named functions | 16 | 64.00% |
▷ Anonymous functions | 9 | 36.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin