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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.35ms] Passed 4 tests
A check of server-side resources used by Cookie Law Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.96 ▼7.43 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.89 ▼3.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.56 ▼3.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 100.12 ▲5.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.86 ▲5.90 |
Cookie Law Bar /wp-admin/options-general.php?page=clb | 3.27 | 37.46 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 14 new options
New WordPress options |
---|
clb_version |
clb_bar_color |
clb_btn_color |
clb_btn_text_color |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
clb_bar_text_color |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Cookie Law Bar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲126 | 13.65 ▼1.11 | 6.26 ▲4.26 | 43.00 ▲4.15 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.01 | 116.69 ▲6.80 | 41.86 ▲0.92 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.05 ▲0.05 | 40.96 ▼2.11 | 34.77 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.82 ▼0.77 | 644.88 ▼4.17 | 54.05 ▲1.85 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.24 ▲0.02 | 101.33 ▼3.49 | 42.93 ▼3.53 |
Cookie Law Bar /wp-admin/options-general.php?page=clb | 928 | 2.02 | 23.38 | 29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-law-bar/cookie-law-bar.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/cookie-law-bar/cookie-law-bar-setting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
cookie-law-bar/cookie-law-bar.php 92% from 13 tests
"Cookie Law Bar" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin424 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 25 | 287 |
JavaScript | 1 | 8 | 0 | 72 |
CSS | 1 | 8 | 0 | 65 |
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.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin