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.02MB] [CPU: ▼5.39ms] Passed 4 tests
Server-side resources used by Simple cookies notice
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.26 ▼3.70 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.59 ▼6.38 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.31 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.74 ▼7.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.62 ▼3.65 |
Simple cookies notice /wp-admin/options-general.php?page=simple-cookies-notice | 3.28 | 35.89 |
Server storage [IO: ▲0.01MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple cookies notice
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 13.51 ▼0.89 | 6.27 ▲4.37 | 53.87 ▲10.83 |
Dashboard /wp-admin | 2,215 ▲24 | 4.80 ▼0.08 | 108.03 ▼8.66 | 37.87 ▼7.35 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.99 ▼0.01 | 38.01 ▲0.45 | 36.01 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 17.68 ▼5.25 | 600.48 ▼44.13 | 50.72 ▲1.03 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.21 ▼0.01 | 94.34 ▼8.83 | 40.54 ▼2.43 |
Simple cookies notice /wp-admin/options-general.php?page=simple-cookies-notice | 1,488 | 6.74 | 130.78 | 60.80 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simple-cookies-notice/simple-cookies-notice.php
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 97% 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
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
simple-cookies-notice/simple-cookies-notice.php Passed 13 tests
The principal PHP file in "Simple cookies notice" v. 1.0.0 is loaded by WordPress automatically on each request
90 characters long description:
Just a simple popup fixed at bottom of the screen. You can use it for your cookies notice.
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 detected134 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 30 | 80 |
CSS | 2 | 7 | 0 | 45 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/black-close-16.png | 0.21KB | 0.21KB | 0.00% |