Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲0.95ms] Passed 4 tests
An overview of server-side resources used by Simple Cookie Consent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 77.87 ▲32.09 |
Dashboard /wp-admin | 3.58 ▲0.27 | 52.52 ▲3.35 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 67.30 ▲13.10 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.93 ▼20.67 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 44.14 ▲8.03 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 112 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_simple_gdpr_settings |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Cookie Consent
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲225 | 13.67 ▼0.61 | 7.38 ▲5.56 | 55.67 ▲12.61 |
Dashboard /wp-admin | 2,222 ▲34 | 5.88 ▲0.00 | 110.32 ▲5.31 | 41.19 ▼0.47 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.06 ▲0.02 | 38.31 ▼3.70 | 32.66 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 21.14 ▼2.01 | 658.97 ▲25.38 | 58.61 ▲8.00 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.18 ▲0.01 | 100.80 ▲0.02 | 44.86 ▼2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_simple_gdpr_settings
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 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 0% 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
Please fix the following
- 97× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Sqlite/Item.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/lknlibrary/registery.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Devtrue/Driver.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Mongodb/Item.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Memcached/Item.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Zendshm/Item.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Memcache/Driver.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Devnull/Driver.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Devfalse/Item.php
- > /wp-content/plugins/simple-cookie-consents/lknlibrary/cache/src/phpFastCache/Drivers/Xcache/Driver.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-cookie-consents/simple_gdpr.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-cookie-consents/simple_vars.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: privacy, eu cookie law, ccpa, simple tools, gdpr
simple-cookie-consents/simple_gdpr.php 85% from 13 tests
The primary PHP file in "Simple Cookie Consent" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 265 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("simple-cookie-consents.php" instead of "simple_gdpr.php")
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
There were no executable files found in this plugin7,019 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 99 | 1,904 | 5,381 | 6,738 |
JavaScript | 2 | 60 | 5 | 120 |
CSS | 2 | 10 | 0 | 92 |
JSON | 1 | 0 | 0 | 52 |
HTML | 4 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 9 | |
Traits | 8 | |
Classes | 74 | |
▷ Abstract classes | 1 | 1.35% |
▷ Concrete classes | 73 | 98.65% |
▷ Final classes | 0 | 0.00% |
Methods | 634 | |
▷ Static methods | 39 | 6.15% |
▷ Public methods | 481 | 75.87% |
▷ Protected methods | 150 | 23.66% |
▷ Private methods | 3 | 0.47% |
Functions | 14 | |
▷ Named functions | 4 | 28.57% |
▷ Anonymous functions | 10 | 71.43% |
Constants | 23 | |
▷ Global constants | 9 | 39.13% |
▷ Class constants | 14 | 60.87% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin