Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.99ms] Passed 4 tests
Server-side resources used by DoYouWantCookies
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.11 ▲1.68 |
Dashboard /wp-admin | 3.31 ▼0.03 | 42.59 ▼15.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.93 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.34 ▼8.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.87 ▼2.55 |
DoYouWantCookies /wp-admin/options-general.php?page=dywc_settings | 3.28 | 33.99 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
dywc_json |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for DoYouWantCookies
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.57 ▼0.11 | 1.66 ▼0.22 | 42.89 ▼0.59 |
Dashboard /wp-admin | 2,231 ▲39 | 6.42 ▲1.47 | 123.90 ▲18.74 | 41.25 ▲3.30 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 3.22 ▲1.22 | 45.88 ▲10.48 | 36.47 ▲4.90 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 18.54 ▼4.48 | 659.57 ▼17.64 | 35.60 ▼16.53 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 5.64 ▲1.46 | 99.63 ▼1.24 | 42.64 ▼3.10 |
DoYouWantCookies /wp-admin/options-general.php?page=dywc_settings | 2,705 | 4.06 | 90.30 | 73.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- dywc_json
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/do-you-want-cookies/wp_dywc.php:37
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dywc_settings
- > Console-api (warning) in wp-content/plugins/do-you-want-cookies//lib/jsoneditor.min.js?ver=6.3.1+16:36373
Could not find popper jQuery plugin of Bootstrap.
- > GET request to /wp-admin/options-general.php?page=dywc_settings
- > Console-api (severe) in wp-content/plugins/do-you-want-cookies//lib/ace.min.js?ver=6.3.1+6:63545
Unable to infer path to ace from script src," "use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes" "or with webpack use ace/webpack-resolver
- > GET request to /wp-admin/options-general.php?page=dywc_settings
- > Network (severe)
wp-admin/mode-javascript.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
do-you-want-cookies/wp_dywc.php 92% from 13 tests
"DoYouWantCookies" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("do-you-want-cookies.php" instead of "wp_dywc.php")
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
No dangerous file extensions were detected742 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 162 | 45 | 446 |
CSS | 1 | 4 | 1 | 219 |
Sass | 1 | 4 | 0 | 74 |
JavaScript | 3 | 0 | 23 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 5 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.58KB | 18.66KB | ▼ 38.99% |
screenshot-2.png | 75.47KB | 30.60KB | ▼ 59.46% |
screenshot-4.png | 60.06KB | 28.72KB | ▼ 52.19% |
screenshot-3.png | 73.68KB | 30.54KB | ▼ 58.55% |