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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.64ms] Passed 4 tests
An overview of server-side resources used by Simple GDPR Cookies
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 32.44 ▼8.58 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.15 ▲0.06 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.06 ▼10.33 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 100.36 ▼2.16 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.01 ▼1.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
simple_gdpr_cookies_cookie_settings |
simple_gdpr_cookies_content_settings |
simple_gdpr_cookies_modal_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple GDPR Cookies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.45 ▼1.11 | 9.67 ▲7.97 | 45.48 ▲6.29 |
Dashboard /wp-admin | 2,211 ▲34 | 5.63 ▼0.04 | 94.64 ▼3.33 | 42.75 ▲2.68 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.07 | 35.63 ▼6.53 | 29.57 ▼8.71 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.50 ▼0.06 | 598.52 ▼98.12 | 48.48 ▼13.62 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.18 ▼0.08 | 98.01 ▼11.55 | 44.90 ▼3.99 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- simple_gdpr_cookies_content_settings
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- simple_gdpr_cookies_modal_settings
- simple_gdpr_cookies_cookie_settings
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: eu cookie law, privacy, consent, cookies law, compliance...
simple-gdpr-cookies/simple-gdpr-cookies.php 85% from 13 tests
Analyzing the main PHP file in "Simple GDPR Cookies" version 1.0.0
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,078 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 126 | 169 | 759 |
JavaScript | 6 | 33 | 32 | 190 |
Sass | 4 | 10 | 2 | 54 |
CSS | 3 | 6 | 2 | 42 |
JSON | 1 | 0 | 0 | 30 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.12% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There were not PNG files found in your plugin