Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼5.29ms] Passed 4 tests
A check of server-side resources used by GdprAccept Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 44.47 ▲2.75 |
Dashboard /wp-admin | 3.65 ▲0.30 | 60.66 ▼9.58 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 55.75 ▲1.72 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 86.04 ▼14.77 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.51 ▲1.48 |
Edit Preamble /wp-admin/admin.php?page=gdpraccept_companypreamble_form | 3.69 | 44.25 |
Edit mail body /wp-admin/admin.php?page=gdpraccept_mailbody_form | 3.61 | 44.39 |
Settings /wp-admin/admin.php?page=gdpraccept_settings | 3.65 | 39.14 |
Consent Fields /wp-admin/admin.php?page=gdpraccept_companyfield | 3.58 | 36.46 |
Dashboard /wp-admin/admin.php?page=gdpraccept | 3.66 | 39.86 |
Shortcode /wp-admin/admin.php?page=gdpraccept_tokenacceptance_shortcode | 3.47 | 32.76 |
Add New Field /wp-admin/admin.php?page=gdpraccept_companyfield_form | 3.60 | 35.54 |
Add New Token /wp-admin/admin.php?page=gdpraccept_token_form | 3.65 | 36.21 |
Server storage [IO: ▲0.16MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_gdpraccept_consentformfield |
wp_gdpraccept_company |
wp_gdpraccept_import |
wp_gdpraccept_token |
wp_gdpraccept_emailtpl |
wp_gdpraccept_consentform |
New WordPress options |
---|
widget_recent-posts |
gdpraccept_db_version |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
GdprAccept Lite: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲102 | 14.25 ▼0.34 | 2.28 ▲0.28 | 46.32 ▼1.43 |
Dashboard /wp-admin | 2,247 ▲67 | 5.60 ▼0.07 | 84.42 ▼9.13 | 42.37 ▼3.11 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 2.22 ▲0.21 | 32.63 ▼6.90 | 36.63 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,570 ▲25 | 17.48 ▼5.77 | 676.19 ▲7.48 | 57.77 ▼1.94 |
Media Library /wp-admin/upload.php | 1,458 ▲55 | 4.20 ▲0.05 | 99.01 ▼7.16 | 43.18 ▼2.77 |
Edit Preamble /wp-admin/admin.php?page=gdpraccept_companypreamble_form | 1,582 | 6.79 | 144.51 | 56.44 |
Edit mail body /wp-admin/admin.php?page=gdpraccept_mailbody_form | 1,717 | 6.83 | 144.67 | 52.29 |
Settings /wp-admin/admin.php?page=gdpraccept_settings | 868 | 1.93 | 25.00 | 29.66 |
Consent Fields /wp-admin/admin.php?page=gdpraccept_companyfield | 1,206 | 2.13 | 31.61 | 28.21 |
Dashboard /wp-admin/admin.php?page=gdpraccept | 1,117 | 1.95 | 26.33 | 26.51 |
Shortcode /wp-admin/admin.php?page=gdpraccept_tokenacceptance_shortcode | 855 | 1.93 | 24.71 | 32.98 |
Add New Field /wp-admin/admin.php?page=gdpraccept_companyfield_form | 941 | 2.05 | 25.86 | 25.80 |
Add New Token /wp-admin/admin.php?page=gdpraccept_token_form | 953 | 1.93 | 27.02 | 29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_gdpraccept_consentformfield
- wp_gdpraccept_consentform
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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)
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
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gdpraccept-lite/templates/tokenacceptance-preamble.php
- > /wp-content/plugins/gdpraccept-lite/gdpraccept.php
- > /wp-content/plugins/gdpraccept-lite/templates/html/styles.php
- > /wp-content/plugins/gdpraccept-lite/templates/html/table_consent.php
- > /wp-content/plugins/gdpraccept-lite/templates/tokenacceptance.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpraccept-lite/inc/Base/Activate.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'GdprAccept\\Api\\VirtualPages\\TemplateLoaderInterface' not found in wp-content/plugins/gdpraccept-lite/inc/Api/VirtualPages/TemplateLoader.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GdprAccept\\Api\\VirtualPages\\VirtualPageControllerInterface' not found in wp-content/plugins/gdpraccept-lite/inc/Api/VirtualPages/VirtualPageController.php:8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpraccept-lite/inc/Base/Activate.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'GdprAccept\\Base\\BaseController' not found in wp-content/plugins/gdpraccept-lite/inc/Api/Callbacks/ManagerCallbacks.php:9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpraccept-lite/inc/Base/TokenListTable.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'GdprAccept\\Base\\BaseController' not found in wp-content/plugins/gdpraccept-lite/inc/Pages/Dashboard.php:21
- > PHP Fatal error
Uncaught Error: Class 'GdprAccept\\Api\\Models\\BaseModel' not found in wp-content/plugins/gdpraccept-lite/inc/Api/Models/EmailTplModel.php:7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpraccept-lite/inc/Base/TokenListTable.php on line 14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gdpraccept-lite/templates/html/table_consent.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
gdpraccept-lite/gdpraccept.php 85% from 13 tests
The main PHP script in "GdprAccept Lite" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("gdpraccept-lite.php" instead of "gdpraccept.php")
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
Good job! No executable or dangerous file extensions detected2,720 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 477 | 690 | 2,716 |
JavaScript | 2 | 0 | 2 | 2 |
CSS | 1 | 1 | 1 | 1 |
JSON | 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.28 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 1 | 3.12% |
Methods | 197 | |
▷ Static methods | 25 | 12.69% |
▷ Public methods | 181 | 91.88% |
▷ Protected methods | 11 | 5.58% |
▷ Private methods | 5 | 2.54% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 images were found in this plugin