Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.16ms] Passed 4 tests
This is a short check of server-side resources used by Fresh Cookie Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.36 ▲1.38 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.56 ▲2.17 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.78 ▼1.42 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 96.47 ▲0.75 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.61 ▼1.34 |
Cookie Bar /wp-admin/options-general.php?page=freshcookiebar | 3.35 | 33.54 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Fresh Cookie Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲50 | 13.23 ▼1.15 | 1.65 ▼0.47 | 42.50 ▼5.38 |
Dashboard /wp-admin | 2,213 ▲25 | 4.83 ▼0.01 | 108.29 ▼12.59 | 41.87 ▼1.77 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.06 ▲0.07 | 39.93 ▼0.20 | 33.01 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.28 ▲0.18 | 600.04 ▼120.52 | 52.91 ▼0.13 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.23 ▼0.02 | 97.44 ▼4.64 | 40.59 ▼3.42 |
Cookie Bar /wp-admin/options-general.php?page=freshcookiebar | 1,890 | 6.63 | 176.66 | 65.06 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/fresh-cookie-bar/fresh-cookie-bar.php
- > /wp-content/plugins/fresh-cookie-bar/autoload.php
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
- > GET request to /wp-admin/options-general.php?page=freshcookiebar
- > Javascript (severe) in unknown
/wp-content/plugins/fresh-cookie-bar/assets/js/settings.js?ver=0.1.1 2:30 Uncaught TypeError: $(...).cs_wpColorPicker is not a function
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=freshcookiebar
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=freshcookiebar
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=freshcookiebar
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: gdpr, privacy-bar, privacy, cookie-bar, gdpr-cookie...
fresh-cookie-bar/fresh-cookie-bar.php 92% from 13 tests
Analyzing the main PHP file in "Fresh Cookie Bar" version 0.1.1
Please make the necessary changes and 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin749 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 115 | 243 | 509 |
CSS | 2 | 29 | 3 | 129 |
JavaScript | 4 | 7 | 10 | 80 |
Markdown | 1 | 12 | 0 | 23 |
JSON | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 3 | 7.69% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.56% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 357.33KB | 81.80KB | ▼ 77.11% |
assets/images/banner-772x250.png | 20.37KB | 9.34KB | ▼ 54.17% |