Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/customizable-gdpr-cookie-consent-banner/rcc_wp.php+176
Undefined property: stdClass::$options
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.10ms] Passed 4 tests
A check of server-side resources used by Customizable GDPR Cookie Consent Banner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.07 ▲4.76 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.38 ▼6.01 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 56.64 ▲2.05 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.20 ▼12.22 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.82 ▲3.77 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ac_rcc |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Customizable GDPR Cookie Consent Banner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.33 ▼1.26 | 2.15 ▲0.43 | 43.29 ▼0.18 |
Dashboard /wp-admin | 2,222 ▲37 | 4.87 ▼0.94 | 108.02 ▲6.14 | 42.60 ▼2.04 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.04 | 40.24 ▲3.10 | 34.88 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,527 ▼3 | 17.53 ▼0.60 | 674.89 ▲45.05 | 60.73 ▲4.10 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.23 ▲0.02 | 98.07 ▼13.03 | 45.54 ▲0.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/customizable-gdpr-cookie-consent-banner/rcc_wp.php+176
Undefined property: stdClass::$options
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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)
Good news, no errors were detected
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/customizable-gdpr-cookie-consent-banner/includes/rcc-controller.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizable-gdpr-cookie-consent-banner/includes/rcc-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/customizable-gdpr-cookie-consent-banner/rcc_wp.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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: cookies, banner, cookie consent, cookie, customizable
customizable-gdpr-cookie-consent-banner/rcc_wp.php 92% from 13 tests
The primary PHP file in "Customizable GDPR Cookie Consent Banner" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("customizable-gdpr-cookie-consent-banner.php" instead of "rcc_wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected323 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 70 | 54 | 323 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 37.50% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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 images were found in this plugin