Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.59ms] Passed 4 tests
Server-side resources used by Cookie Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.79 ▲0.14 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.78 ▼3.66 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.29 ▲5.84 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.52 ▲0.28 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.24 ▼3.12 |
Cookie Bar /wp-admin/options-general.php?page=cookie-bar-settings | 3.25 | 32.91 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Cookie Bar: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲215 | 13.55 ▼0.80 | 8.85 ▲6.91 | 47.31 ▲0.96 |
Dashboard /wp-admin | 2,218 ▲41 | 5.83 ▲0.24 | 87.18 ▼16.32 | 38.85 ▼3.89 |
Posts /wp-admin/edit.php | 2,128 ▲31 | 2.29 ▲0.31 | 40.80 ▲4.80 | 35.37 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,552 ▲23 | 24.91 ▲1.25 | 599.57 ▼68.61 | 50.56 ▼0.46 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.42 ▲0.27 | 98.53 ▼0.18 | 39.20 ▼7.18 |
Cookie Bar /wp-admin/options-general.php?page=cookie-bar-settings | 1,460 | 2.74 | 55.41 | 30.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Plugin Settings screenshot-1.png), #2 (Cookie Bar screenshot-2.png)
- Tags: There are too many tags (15 tag instead of maximum 10)
cookie-bar/cookie-bar.php Passed 13 tests
The primary PHP file in "Cookie Bar" version 2.1 is used by WordPress to initiate all plugin functionality
83 characters long description:
Cookie Bar allows you to discreetly inform visitors that your website uses cookies.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected378 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 22 | 269 |
SVG | 1 | 0 | 1 | 41 |
CSS | 1 | 0 | 0 | 31 |
JavaScript | 1 | 0 | 0 | 31 |
XML | 1 | 0 | 0 | 6 |
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.31 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
2 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 40.27KB | 38.15KB | ▼ 5.27% |
screenshot-1.png | 71.00KB | 28.59KB | ▼ 59.73% |