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: ▼1.58MB] [CPU: ▼48.05ms] Passed 4 tests
Server-side resources used by WP Cleanup and Basic Functions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.38 ▼1.08 | 9.37 ▼31.78 |
Dashboard /wp-admin | 2.43 ▼0.87 | 13.57 ▼41.58 |
Posts /wp-admin/edit.php | 2.43 ▼0.92 | 13.86 ▼34.20 |
Add New Post /wp-admin/post-new.php | 2.43 ▼3.46 | 12.18 ▼84.65 |
Media Library /wp-admin/upload.php | 2.43 ▼0.80 | 12.25 ▼25.15 |
WP Cleanup /wp-admin/options-general.php?page=wp-cbf | 2.43 | 11.78 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Cleanup and Basic Functions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.28 ▲0.00 | 1.80 ▼0.10 | 36.12 ▼4.56 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.01 | 94.28 ▲1.39 | 44.03 ▲2.06 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 1.99 ▲0.03 | 38.88 ▲1.56 | 36.47 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.07 ▼0.07 | 668.68 ▲31.47 | 62.86 ▲4.21 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▼0.08 | 95.50 ▼2.05 | 45.73 ▲1.83 |
WP Cleanup /wp-admin/options-general.php?page=wp-cbf | 2,151 | 4.00 | 76.98 | 25.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-cleanup-and-basic-functions/public/class-wp-cbf-public.php+379
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 43 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-cbf
- > Notice in wp-content/plugins/wp-cleanup-and-basic-functions/public/class-wp-cbf-public.php+392
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-cbf
- > Notice in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-images_settings.php+177
Undefined index: medium_large
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-cbf
- > Notice in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-images_settings.php+177
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-cleanup-and-basic-functions/public/partials/wp-cbf-public-display.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-privacy_settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-admin_settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-images_settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-smtp.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-cleanup-and-basic-functions/admin/partials/wp-cbf-cleanup_settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (No screenshots yet)
wp-cleanup-and-basic-functions/wp-cbf.php 77% from 13 tests
The principal PHP file in "WP Cleanup and Basic Functions" v. 2.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-cleanup-and-basic-functions.php" instead of "wp-cbf.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,310 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 352 | 753 | 1,319 |
PO File | 3 | 295 | 341 | 784 |
JavaScript | 2 | 34 | 47 | 130 |
CSS | 2 | 12 | 11 | 77 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 28.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 2 | 2.94% |
▷ Public methods | 57 | 83.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 16.18% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin