Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.72MB] [CPU: ▲4.81ms] Passed 4 tests
Server-side resources used by Beautiful Cookie Consent Banner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 46.63 ▲6.84 |
Dashboard /wp-admin | 4.09 ▲0.79 | 54.84 ▲5.87 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 54.61 ▲8.91 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 96.39 ▼2.40 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 45.93 ▲10.83 |
Cookie Consent Banner /wp-admin/options-general.php?page=nsc_bar-cookie-consent | 4.19 | 45.35 |
Server storage [IO: ▲0.42MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
nsc_bar_first_activation |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
nsc_bar_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
Beautiful Cookie Consent Banner: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.22 ▼0.48 | 1.91 ▲0.34 | 42.66 ▲6.64 |
Dashboard /wp-admin | 2,202 ▲21 | 5.63 ▲0.02 | 90.23 ▼18.14 | 44.63 ▲1.86 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.06 | 36.83 ▼2.12 | 34.76 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.35 ▲0.12 | 646.56 ▼4.89 | 54.55 ▲5.11 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.19 ▲0.00 | 97.60 ▼2.82 | 43.36 ▼2.30 |
Cookie Consent Banner /wp-admin/options-general.php?page=nsc_bar-cookie-consent | 1,155 | 1.82 | 31.60 | 52.43 |
Uninstaller [IO: ▲0.42MB] [DB: ▲0.31MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following itemsThe uninstall procedure has failed, leaving 9 options in the database
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/beautiful-and-responsive-cookie-consent/uninstall.php+12
Constant NSC_BAR_PLUGIN_DIR already defined
- The plugin did not uninstall successfully, leaving 38 files (0.42MB) in the plugin directory
- (new file) admin/js/admin.consentmode.min.js
- (new file) admin/img/banner3.png
- (new file) admin/img/banner1.png
- (new file) admin/img/banner2.png
- (new file) admin/img/rating-stars.png
- (new file) admin/tpl/admin.php
- (new file) admin/img/icon-96x96.png
- (new file) admin/js/cookietypes.v2.js
- (new file) admin/css/nsc_bar_admin.css
- (new file) admin/tpl/premium_addon_desc.html
- ...
- db_upgraded
- widget_recent-comments
- nsc_bar_first_activation
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- nsc_bar_db_version
- recovery_mode_email_last_sent
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Contributors: Contributors not specified
- Screenshots: These screenshots need descriptions #14, #15, #16, #17 in beautiful-and-responsive-cookie-consent/assets to your readme.txt
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
beautiful-and-responsive-cookie-consent/nsc_bar-cookie-consent.php 77% from 13 tests
The entry point to "Beautiful Cookie Consent Banner" version 3.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("beautiful-and-responsive-cookie-consent.php" instead of "nsc_bar-cookie-consent.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin3,619 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 318 | 53 | 1,875 |
JSON | 2 | 0 | 0 | 1,121 |
JavaScript | 4 | 70 | 23 | 403 |
CSS | 2 | 28 | 1 | 168 |
HTML | 6 | 0 | 0 | 52 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 48 | 40.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
5 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/rating-stars.png | 44.94KB | 19.13KB | ▼ 57.45% |
admin/img/banner2.png | 45.99KB | 19.52KB | ▼ 57.56% |
admin/img/banner3.png | 48.70KB | 19.75KB | ▼ 59.45% |
admin/img/icon-96x96.png | 9.35KB | 4.11KB | ▼ 56.08% |
admin/img/banner1.png | 28.96KB | 11.61KB | ▼ 59.89% |