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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.31ms] Passed 4 tests
This is a short check of server-side resources used by Cookiebar by Beard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.68 ▼2.96 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.03 ▼2.36 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.69 ▲2.89 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.91 ▼4.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.90 ▲0.10 |
Add New /wp-admin/post-new.php?post_type=cbbb_cookie | 5.97 | 89.52 |
Cookie Scripts /wp-admin/edit.php?post_type=cbbb_cookie | 3.30 | 33.04 |
Cookiebar by Beard /wp-admin/options-general.php?page=cookiebar-by-beard | 3.25 | 31.49 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Cookiebar by Beard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲227 | 13.99 ▼0.69 | 5.77 ▲3.83 | 58.18 ▲10.33 |
Dashboard /wp-admin | 2,234 ▲49 | 5.98 ▲0.13 | 98.01 ▼10.35 | 38.75 ▼7.24 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.04 ▲0.06 | 39.00 ▼5.56 | 35.28 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 23.28 ▲4.98 | 615.98 ▼15.02 | 61.17 ▲6.82 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.21 ▼0.00 | 98.13 ▼1.86 | 42.25 ▼1.99 |
Add New /wp-admin/post-new.php?post_type=cbbb_cookie | 11,455 | 23.73 | 1,099.71 | 39.74 |
Cookie Scripts /wp-admin/edit.php?post_type=cbbb_cookie | 1,081 | 1.99 | 30.67 | 30.39 |
Cookiebar by Beard /wp-admin/options-general.php?page=cookiebar-by-beard | 892 | 2.02 | 25.25 | 31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=cookiebar-by-beard
- > Notice in wp-content/plugins/cookiebar-by-beard/cookiebar-by-beard.php+130
Trying to access array offset on value of type bool
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cookiebar-by-beard/includes/plugin-functions.php
- > /wp-content/plugins/cookiebar-by-beard/cookiebar-by-beard.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=cbbb_cookie
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=cbbb_cookie - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: gdpr, opt-in, cookiebar, cookies
cookiebar-by-beard/cookiebar-by-beard.php 85% from 13 tests
"Cookiebar by Beard" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected513 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 106 | 71 | 510 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.27 |
▷ 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 | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
No PNG images were found in this plugin