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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼3.21ms] Passed 4 tests
This is a short check of server-side resources used by Simple GDPR Cookie Compliance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 39.53 ▲0.79 |
Dashboard /wp-admin | 3.64 ▲0.29 | 48.26 ▼8.05 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 49.92 ▲5.75 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 84.23 ▼5.33 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 35.06 ▼0.24 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
udp_installed_agents |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple GDPR Cookie Compliance: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲127 | 14.34 ▼0.28 | 2.69 ▲1.04 | 45.83 ▲3.49 |
Dashboard /wp-admin | 2,226 ▲45 | 5.56 ▼0.31 | 87.88 ▼15.52 | 39.53 ▼2.57 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.00 ▲0.02 | 35.40 ▼0.95 | 33.64 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.27 ▲0.08 | 676.41 ▼0.60 | 55.29 ▲3.02 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.26 ▲0.03 | 96.58 ▼11.35 | 45.31 ▲1.23 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- udp_installed_agents
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: args in wp-content/plugins/simple-gdpr-cookie-compliance/public/partials/simple-gdpr-cookie-compliance-public-display.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-gdpr-cookie-compliance/admin/partials/simple-gdpr-cookie-compliance-admin-page.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-gdpr-cookie-compliance/includes/udp/init.php:26
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
simple-gdpr-cookie-compliance/simple-gdpr-cookie-compliance.php Passed 13 tests
The principal PHP file in "Simple GDPR Cookie Compliance" v. 1.1.7 is loaded by WordPress automatically on each request
111 characters long description:
Simple GDPR Cookie Compliance is a simple plugin that helps to display cookie notice on your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,488 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 467 | 870 | 1,712 |
JavaScript | 3 | 100 | 226 | 478 |
CSS | 3 | 110 | 12 | 264 |
SVG | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 5.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 1 | 1.89% |
▷ Public methods | 41 | 77.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 22.64% |
Functions | 13 | |
▷ Named functions | 4 | 30.77% |
▷ Anonymous functions | 9 | 69.23% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin