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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.61ms] Passed 4 tests
A check of server-side resources used by GDPR Visitor Consent
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 26.53 ▼20.42 |
Dashboard /wp-admin | 3.38 ▲0.07 | 51.33 ▲0.05 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.66 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.75 ▼5.63 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.63 ▲1.85 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
GDPR Visitor Consent: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.32 ▼0.06 | 2.45 ▲0.69 | 43.02 ▼0.86 |
Dashboard /wp-admin | 2,204 ▲33 | 5.53 ▼0.04 | 88.96 ▼11.54 | 42.76 ▼1.81 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▼0.00 | 36.34 ▼2.61 | 35.29 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.17 ▲0.00 | 660.33 ▼24.11 | 58.45 ▲3.10 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▲0.02 | 101.07 ▼4.62 | 42.47 ▼0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gdpr-visitor-consent/gdpr-visitor-consent.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'GDPR_VISITOR_CONSENT_ABSTRACTSget-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpr-visitor-consent/lib/banner.php on line 7
- > PHP Warning
Use of undefined constant GDPR_VISITOR_CONSENT_ABSTRACTS - assumed 'GDPR_VISITOR_CONSENT_ABSTRACTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-visitor-consent/lib/banner.php on line 7
- > PHP Warning
require_once(GDPR_VISITOR_CONSENT_ABSTRACTSget-options.php): failed to open stream: No such file or directory in wp-content/plugins/gdpr-visitor-consent/lib/admin-screen.php on line 7
- > PHP Warning
require_once(GDPR_VISITOR_CONSENT_ABSTRACTSget-options.php): failed to open stream: No such file or directory in wp-content/plugins/gdpr-visitor-consent/lib/banner.php on line 7
- > PHP Warning
require_once(GDPR_VISITOR_CONSENT_ABSTRACTSget-options.php): failed to open stream: No such file or directory in wp-content/plugins/gdpr-visitor-consent/lib/options.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gdpr-visitor-consent/views/frontend-banner.php:3
- > PHP Fatal error
require_once(): Failed opening required 'GDPR_VISITOR_CONSENT_ABSTRACTSget-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpr-visitor-consent/lib/admin-screen.php on line 7
- > PHP Warning
Use of undefined constant GDPR_VISITOR_CONSENT_ABSTRACTS - assumed 'GDPR_VISITOR_CONSENT_ABSTRACTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-visitor-consent/lib/options.php on line 7
- > PHP Warning
Use of undefined constant GDPR_VISITOR_CONSENT_ABSTRACTS - assumed 'GDPR_VISITOR_CONSENT_ABSTRACTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-visitor-consent/lib/scripts.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'GDPR_VISITOR_CONSENT_ABSTRACTSget-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpr-visitor-consent/lib/scripts.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: scripts, privacy, gdpr
gdpr-visitor-consent/gdpr-visitor-consent.php 92% from 13 tests
The main PHP script in "GDPR Visitor Consent" version 1.1.4 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
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 detected12,965 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 10,845 |
Vuejs Component | 7 | 148 | 49 | 782 |
Sass | 9 | 126 | 12 | 538 |
PHP | 10 | 166 | 127 | 484 |
SVG | 3 | 0 | 1 | 168 |
JavaScript | 8 | 23 | 15 | 133 |
Markdown | 1 | 4 | 0 | 12 |
CSS | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 26 | 86.67% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin