Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/third-party-cookie-eraser/third-party-cookie-eraser.php+41
Methods with the same name as their class will not be constructors in a future version of PHP; AndreaThirdPartyCookieEraser has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.84ms] Passed 4 tests
This is a short check of server-side resources used by Third Party Cookie Eraser
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.19 ▼37.45 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.43 ▼45.16 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.91 ▼50.49 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.16 ▼86.26 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.05 ▼26.92 |
Third Party Cookie Eraser /wp-admin/options-general.php?page=third-party-cookie-eraser | 2.11 | 5.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Third Party Cookie Eraser: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.57 ▼0.79 | 1.68 ▼0.24 | 42.44 ▼0.14 |
Dashboard /wp-admin | 2,210 ▲18 | 4.85 ▼0.09 | 111.38 ▼11.80 | 41.05 ▼2.39 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.07 | 37.17 ▼0.58 | 30.90 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.48 ▼4.38 | 635.81 ▼58.18 | 49.62 ▼8.72 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.23 ▲0.03 | 92.02 ▼7.02 | 41.14 ▼2.03 |
Third Party Cookie Eraser /wp-admin/options-general.php?page=third-party-cookie-eraser | 834 | 2.03 | 25.16 | 28.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/third-party-cookie-eraser/third-party-cookie-eraser.php+41
Methods with the same name as their class will not be constructors in a future version of PHP; AndreaThirdPartyCookieEraser has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=third-party-cookie-eraser
- > Deprecated in wp-content/plugins/third-party-cookie-eraser/third-party-cookie-eraser.php+41
Methods with the same name as their class will not be constructors in a future version of PHP; AndreaThirdPartyCookieEraser has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=third-party-cookie-eraser
- > Notice in wp-content/plugins/third-party-cookie-eraser/third-party-cookie-eraser.php+60
Undefined offset: 0
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/third-party-cookie-eraser/third-party-cookie-eraser.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=third-party-cookie-eraser
- > Network (severe)
https://www.wemakefuture.it/images/kit-stampa/300x250.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (The Cookie Law is one of the most stupid law in the world.)
third-party-cookie-eraser/third-party-cookie-eraser.php 92% from 13 tests
"Third Party Cookie Eraser" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 432 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin134 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 49 | 134 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 7 | |
▷ Static methods | 5 | 71.43% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected