Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.00ms] Passed 4 tests
A check of server-side resources used by WP GDPR Cookie Consent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.39 ▼1.10 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.09 ▼1.89 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.68 ▼0.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.45 ▼12.45 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.79 ▲4.15 |
WP GDRP Consent /wp-admin/tools.php?page=ninja-wp-gdpr | 3.23 | 30.98 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP GDPR Cookie Consent
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.25 ▼1.06 | 1.77 ▲0.10 | 44.39 ▼5.76 |
Dashboard /wp-admin | 2,213 ▲21 | 4.86 ▼0.09 | 97.09 ▼15.01 | 38.22 ▲0.93 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▲0.02 | 39.86 ▼0.47 | 37.13 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.41 ▼1.09 | 593.13 ▼30.72 | 59.40 ▲5.51 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.27 ▲0.02 | 99.85 ▼10.28 | 40.36 ▼1.89 |
WP GDRP Consent /wp-admin/tools.php?page=ninja-wp-gdpr | 1,372 | 6.50 | 151.63 | 49.68 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-gdpr-cookie-consent/views/admin_view.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-gdpr-cookie-consent/views/frontend_consent.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-gdpr-cookie-consent/views/frontend_consent.php on line 12
- > PHP Notice
Undefined variable: config in wp-content/plugins/wp-gdpr-cookie-consent/views/frontend_consent.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/wp-gdpr-cookie-consent/views/frontend_consent.php:16
- > PHP Notice
Undefined variable: config in wp-content/plugins/wp-gdpr-cookie-consent/views/frontend_consent.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-gdpr-cookie-consent/views/frontend_consent.php on line 4
- > PHP Notice
Undefined variable: template in wp-content/plugins/wp-gdpr-cookie-consent/views/frontend_consent.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Requires php: Invalid version format
wp-gdpr-cookie-consent/wp-gdpr-cookie-consent.php 85% from 13 tests
Analyzing the main PHP file in "WP GDPR Cookie Consent" version 1.0.0
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected506 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 103 | 111 | 498 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 21 | 84.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG files were detected