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.01MB] [CPU: ▲1.00ms] Passed 4 tests
A check of server-side resources used by SB Clean
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 48.30 ▲11.15 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.39 ▼1.20 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.12 ▲0.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.38 ▲2.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.44 ▲1.82 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
SB Clean: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.75 ▼0.88 | 5.33 ▲3.54 | 40.92 ▲2.45 |
Dashboard /wp-admin | 2,206 ▲18 | 5.84 ▼0.06 | 107.17 ▲1.99 | 41.96 ▲2.05 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.01 | 38.84 ▲2.58 | 36.29 ▲3.89 |
Add New Post /wp-admin/post-new.php | 1,539 ▲14 | 23.25 ▲0.11 | 609.67 ▼109.81 | 53.27 ▼10.48 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▲0.04 | 95.88 ▼5.02 | 42.55 ▼4.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant SB_CLEAN_INC_PATH - assumed 'SB_CLEAN_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-clean/inc/sb-plugin-load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function sb_clean_get_option() in wp-content/plugins/sb-clean/inc/sb-plugin-hook.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sb-clean/inc/sb-plugin-install.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/sb-clean/sb-clean.php:19
- > PHP Warning
require(SB_CLEAN_INC_PATH/sb-plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/sb-clean/inc/sb-plugin-load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sb-clean/inc/sb-plugin-functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-clean/inc/sb-plugin-ajax.php:8
- > PHP Fatal error
require(): Failed opening required 'SB_CLEAN_INC_PATH/sb-plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/sb-clean/inc/sb-plugin-load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-clean/inc/sb-plugin-admin.php:5
- > PHP Warning
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 on the user side
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
These attributes need your attention:
- Screenshots: Screenshot #1 (The option page for plugin SB Clean.) image required
sb-clean/sb-clean.php Passed 13 tests
The principal PHP file in "SB Clean" v. 1.0.8 is loaded by WordPress automatically on each request
65 characters long description:
SB Clean is a plugin that allows to clean up your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected257 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 34 | 11 | 208 |
PO File | 1 | 8 | 8 | 35 |
JavaScript | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 25.52KB | 11.91KB | ▼ 53.35% |