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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.49MB] [CPU: ▼24.70ms] Passed 4 tests
This is a short check of server-side resources used by Custom Cookie Message
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 35.51 ▼7.48 |
Dashboard /wp-admin | 3.50 ▲0.20 | 45.80 ▼1.32 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 43.41 ▼8.07 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.50 | 37.18 ▼81.92 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.53 ▲1.50 |
Custom Cookie Message /wp-admin/options-general.php?page=custom_cookie_message_options | 3.65 | 34.24 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
custom_cookie_message |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Cookie Message
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,226 ▲491 | 13.75 ▼0.28 | 14.60 ▲12.88 | 43.80 ▼6.20 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.96 | 99.63 ▼3.04 | 40.00 ▼2.56 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▲0.04 | 34.47 ▼1.77 | 32.82 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.16 ▲4.65 | 599.73 ▼25.63 | 48.35 ▼16.80 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.15 ▼0.17 | 93.27 ▼8.51 | 40.56 ▼1.93 |
Custom Cookie Message /wp-admin/options-general.php?page=custom_cookie_message_options | 1,085 | 2.49 | 67.01 | 29.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- custom_cookie_message
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/custom-cookie-message/tests/bootstrap.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/custom-cookie-message/templates/cookie-notice.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'CustomCookieMessage\\Forms\\AdminBase' not found in wp-content/plugins/custom-cookie-message/src/Forms/class-admincookiesettings.php:15
- > PHP Fatal error
Uncaught Error: Class 'CustomCookieMessage\\Forms\\AdminBase' not found in wp-content/plugins/custom-cookie-message/src/Forms/class-admincontentoptions.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-cookie-message/templates/cookie-notice.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/custom-cookie-message/tests/test-custom-cookie-message.php:11
- > PHP Fatal error
Uncaught Error: Class 'CustomCookieMessage\\Forms\\AdminBase' not found in wp-content/plugins/custom-cookie-message/src/Forms/class-adminstylingoptions.php:15
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-cookie-message/templates/cookie-notice.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'CustomCookieMessage\\Forms\\AdminBase' not found in wp-content/plugins/custom-cookie-message/src/Forms/class-admingeneraloptions.php:15
- > PHP Fatal error
Uncaught Error: Class 'CustomCookieMessage\\Forms\\AdminBase' not found in wp-content/plugins/custom-cookie-message/src/Forms/class-adminexportsettings.php:15
- > PHP Fatal error
Uncaught Error: Class 'CustomCookieMessage\\Forms\\AdminBase' not found in wp-content/plugins/custom-cookie-message/src/Forms/class-adminform.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires php: Invalid plugin version format
custom-cookie-message/custom-cookie-message.php Passed 13 tests
Analyzing the main PHP file in "Custom Cookie Message" version 2.4.10
63 characters long description:
A customizable cookie message, compatible with GDPR compliance.
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
Good job! No executable or dangerous file extensions detected10,811 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,485 |
PHP | 19 | 463 | 842 | 1,570 |
JavaScript | 8 | 140 | 32 | 654 |
Sass | 3 | 53 | 0 | 348 |
CSS | 3 | 55 | 6 | 289 |
PO File | 1 | 110 | 122 | 283 |
Bourne Shell | 2 | 26 | 14 | 130 |
XML | 3 | 3 | 9 | 44 |
Markdown | 1 | 4 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 20 | 16.26% |
▷ Public methods | 119 | 96.75% |
▷ Protected methods | 4 | 3.25% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build-icons/warning.png | 2.41KB | 0.44KB | ▼ 81.81% |
build-icons/failure.png | 2.36KB | 0.44KB | ▼ 81.37% |
build-icons/success.png | 2.23KB | 0.28KB | ▼ 87.34% |
build-icons/logo.png | 18.39KB | 12.12KB | ▼ 34.11% |