Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.07ms] Passed 4 tests
Server-side resources used by GDPR Simple Notification
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.92 ▲5.09 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.83 ▲1.23 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 44.73 ▼2.70 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 81.24 ▼13.10 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.38 ▼9.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Simple Notification
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲228 | 13.67 ▼0.98 | 5.85 ▲3.98 | 43.38 ▲3.40 |
Dashboard /wp-admin | 2,226 ▲41 | 5.84 ▲0.77 | 97.92 ▼6.06 | 39.16 ▼10.71 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▲0.00 | 37.67 ▲0.72 | 33.36 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,538 ▲14 | 23.33 ▲0.15 | 590.71 ▼99.33 | 54.59 ▼0.51 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.30 ▲0.11 | 93.17 ▼8.40 | 39.54 ▼5.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-cookie-notification/libs/ba_cookies_functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-cookie-notification/libs/ba_cookies_functions.php:10
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: gdpr, cookies, privacy, privacy policy, cookie law
simple-cookie-notification/simple-cookie-notification.php 92% from 13 tests
The main PHP script in "GDPR Simple Notification" version 1.3.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
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
Good job! No executable or dangerous file extensions detected1,005 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 270 | 353 | 793 |
LESS | 2 | 13 | 2 | 98 |
JavaScript | 2 | 40 | 12 | 45 |
SVG | 1 | 0 | 1 | 45 |
JSON | 2 | 0 | 0 | 22 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 5 | 9.43% |
▷ Public methods | 51 | 96.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.77% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG files were detected