Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.57ms] Passed 4 tests
This is a short check of server-side resources used by wp_head() cleaner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.24 ▼11.15 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.43 ▼9.94 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.23 ▼5.89 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.71 ▼11.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.81 ▼1.15 |
wp_head() cleaner /wp-admin/options-general.php?page=wp_head_cleaner | 3.23 | 31.09 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for wp_head() cleaner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.10 ▼0.04 | 1.68 ▼0.22 | 39.45 ▼6.75 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.07 | 87.94 ▼25.13 | 38.54 ▼2.54 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▲0.07 | 40.58 ▼2.13 | 35.35 ▼8.09 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.82 ▲0.68 | 639.04 ▼31.65 | 52.28 ▼10.53 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.27 ▲0.06 | 100.00 ▼2.76 | 43.48 ▼0.68 |
wp_head() cleaner /wp-admin/options-general.php?page=wp_head_cleaner | 971 | 2.03 | 27.79 | 30.19 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-head-cleaner/wp-head-cleaner.php
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: meta, generator, header, clean, remove...
wp-head-cleaner/wp-head-cleaner.php Passed 13 tests
"wp_head() cleaner" version 2.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Remove unused tags from wp_head() output.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin347 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 12 | 250 |
PO File | 1 | 39 | 40 | 97 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin