Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.73ms] Passed 4 tests
An overview of server-side resources used by Super Simple Cookie Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.00 ▼1.80 |
Dashboard /wp-admin | 3.40 ▲0.05 | 45.85 ▼14.80 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.25 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 80.90 ▼16.76 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.48 ▲4.67 |
Super Simple Cookie Bar /wp-admin/options-general.php?page=super-simple-cookie-bar | 3.26 | 27.80 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Super Simple Cookie 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,804 ▲58 | 13.59 ▼0.96 | 1.62 ▼0.19 | 37.10 ▼3.29 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.07 | 113.00 ▲14.15 | 43.39 ▼1.35 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.04 ▲0.00 | 35.89 ▲0.70 | 31.74 ▼8.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▼7 | 22.85 ▲4.58 | 695.31 ▲54.38 | 52.91 ▼7.46 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.20 ▼0.06 | 97.70 ▼4.88 | 46.20 ▼0.72 |
Super Simple Cookie Bar /wp-admin/options-general.php?page=super-simple-cookie-bar | 945 | 2.03 | 23.37 | 27.32 |
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
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=super-simple-cookie-bar
- > Notice in wp-content/plugins/super-simple-cookie-bar/includes/sscb-settings.php+271
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-simple-cookie-bar/includes/sscb-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-simple-cookie-bar/includes/sscb-settings.php:14
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: cookie notice, cookie bar, cookie consent, super simple cookie bar, simple cookie bar...
super-simple-cookie-bar/super-simple-cookie-bar.php Passed 13 tests
The principal PHP file in "Super Simple Cookie Bar" v. 1.0.1 is loaded by WordPress automatically on each request
69 characters long description:
A super simple plugin that provides a super simple cookie bar notice.
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
Good job! No executable or dangerous file extensions detected323 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 75 | 288 | 271 |
Markdown | 1 | 12 | 0 | 45 |
CSS | 1 | 0 | 0 | 6 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 23 | |
▷ Named functions | 23 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected