Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-clean/condition/archives_pages.php+7
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼48.84ms] Passed 4 tests
A check of server-side resources used by WP Clean
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.89 ▼33.06 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.34 ▼37.58 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.54 ▼40.06 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.26 ▼84.65 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.68 ▼27.77 |
Постраничная навигация /wp-admin/admin.php?page=wpclean_dashboard_pagination | 2.05 | 5.93 |
Безопасность /wp-admin/admin.php?page=wpclean_dashboard_security | 2.05 | 5.68 |
RSS /wp-admin/admin.php?page=wpclean_dashboard_rss | 2.05 | 5.88 |
Обновления /wp-admin/admin.php?page=wpclean_dashboard_update | 2.05 | 6.18 |
Виджеты /wp-admin/admin.php?page=wpclean_dashboard_widget | 2.05 | 6.80 |
Архивные страницы /wp-admin/admin.php?page=wpclean_dashboard_archives_pages | 2.05 | 5.49 |
Интерфейс /wp-admin/admin.php?page=wpclean_dashboard_interface | 2.05 | 6.26 |
Профиль пользователя /wp-admin/admin.php?page=wpclean_dashboard_profile | 2.05 | 6.77 |
Вложения /wp-admin/admin.php?page=wpclean_dashboard_attachments | 2.05 | 6.74 |
Комментарии /wp-admin/admin.php?page=wpclean_dashboard_comments | 2.05 | 6.08 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WP Clean: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲142 | 13.24 ▼1.32 | 1.62 ▼0.18 | 42.73 ▲3.23 |
Dashboard /wp-admin | 2,283 ▲103 | 4.86 ▼1.05 | 105.89 ▼3.86 | 41.41 ▼2.80 |
Posts /wp-admin/edit.php | 2,166 ▲73 | 2.02 ▲0.03 | 39.42 ▼3.00 | 35.46 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,574 ▲31 | 17.63 ▼0.79 | 659.73 ▲7.33 | 48.30 ▼15.45 |
Media Library /wp-admin/upload.php | 1,468 ▲77 | 4.22 ▼0.08 | 94.74 ▼3.80 | 43.37 ▼2.18 |
Постраничная навигация /wp-admin/admin.php?page=wpclean_dashboard_pagination | 867 | 2.03 | 24.43 | 29.29 |
Безопасность /wp-admin/admin.php?page=wpclean_dashboard_security | 1,005 | 2.03 | 22.51 | 26.54 |
RSS /wp-admin/admin.php?page=wpclean_dashboard_rss | 912 | 2.03 | 21.06 | 23.40 |
Обновления /wp-admin/admin.php?page=wpclean_dashboard_update | 928 | 2.03 | 22.13 | 24.45 |
Виджеты /wp-admin/admin.php?page=wpclean_dashboard_widget | 1,023 | 2.03 | 23.75 | 28.19 |
Архивные страницы /wp-admin/admin.php?page=wpclean_dashboard_archives_pages | 914 | 2.06 | 25.34 | 23.66 |
Интерфейс /wp-admin/admin.php?page=wpclean_dashboard_interface | 933 | 2.02 | 24.64 | 26.17 |
Профиль пользователя /wp-admin/admin.php?page=wpclean_dashboard_profile | 867 | 2.07 | 25.62 | 29.12 |
Вложения /wp-admin/admin.php?page=wpclean_dashboard_attachments | 889 | 2.02 | 22.70 | 24.41 |
Комментарии /wp-admin/admin.php?page=wpclean_dashboard_comments | 909 | 2.02 | 23.87 | 27.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-clean/condition/archives_pages.php+7
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 1092 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpclean_dashboard_comments
- > Notice in wp-content/plugins/wp-clean/fields/comments.php+77
Trying to access array offset on value of type bool
SRP 0% 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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-clean/wp-clean.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/widgets.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/update.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/interface.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/search.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/security.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/posts.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/attachments.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/profile.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/archives_pages.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-clean/condition/pagination.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found
wp-clean/wp-clean.php 92% from 13 tests
The main PHP script in "WP Clean" version 2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,583 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,127 | 465 | 2,520 |
CSS | 1 | 4 | 0 | 63 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 255 | |
▷ Named functions | 191 | 74.90% |
▷ Anonymous functions | 64 | 25.10% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected