Benchmarks
Plugin footprint 23% 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 validation failed for this plugin
- > Notice in wp-content/plugins/wp-hr-gdpr/includes/class-wp-hr-gdrp.php+315
Trying to access array offset on value of type bool
Server metrics [RAM: ▲4.53MB] [CPU: ▼4.76ms] Passed 4 tests
A check of server-side resources used by WP-HR GDPR: GDPR Tools for Human Resources on WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.51 ▲5.05 | 48.59 ▲9.84 |
Dashboard /wp-admin | 8.53 ▲5.23 | 57.28 ▲6.76 |
Posts /wp-admin/edit.php | 8.53 ▲5.18 | 58.06 ▲8.34 |
Add New Post /wp-admin/post-new.php | 8.53 ▲2.65 | 50.14 ▼43.98 |
Media Library /wp-admin/upload.php | 8.53 ▲5.30 | 54.67 ▲20.30 |
Create Consent form /wp-admin/admin.php?page=wphrgdpr_consent | 8.53 | 52.37 |
Privacy Notice /wp-admin/edit.php?post_type=wp_hr_privacy_policy | 8.53 | 53.32 |
View Consents /wp-admin/admin.php?page=wphrgdpr_consent_rec | 8.53 | 48.51 |
Support /wp-admin/admin.php?page=wphr-gdpr | 8.53 | 49.69 |
Create Notice /wp-admin/post-new.php?post_type=wp_hr_privacy_policy | 8.53 | 47.98 |
Email Templates /wp-admin/admin.php?page=wphrgdpr_email_template | 8.53 | 60.42 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.53 | 50.71 |
Server storage [IO: ▲3.25MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 202 new files
Database: 1 new table, 19 new options
New tables |
---|
wp_wphrgdprlite_consent_records |
New WordPress options |
---|
wphrgdpr_email_templates_label |
widget_theysaidso_widget |
theysaidso_admin_options |
wphrgdpr_email_templates_data |
fs_gdpr |
fs_accounts |
wphrgdpr_consent_quetions |
widget_recent-posts |
wphr_email_settings_data-protection-form |
wphrgdpr_last_update_post |
... |
Browser metrics Passed 4 tests
WP-HR GDPR: GDPR Tools for Human Resources on WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,014 ▲268 | 13.81 ▼0.43 | 8.55 ▲6.72 | 29.73 ▼12.76 |
Dashboard /wp-admin | 2,276 ▲88 | 5.15 ▲0.26 | 115.05 ▼2.50 | 51.18 ▲5.14 |
Posts /wp-admin/edit.php | 2,179 ▲90 | 2.32 ▲0.28 | 45.31 ▲4.44 | 40.55 ▲4.24 |
Add New Post /wp-admin/post-new.php | 1,574 ▲40 | 23.10 ▼0.13 | 650.61 ▼2.90 | 65.69 ▼0.48 |
Media Library /wp-admin/upload.php | 1,468 ▲83 | 4.35 ▲0.11 | 104.74 ▼0.43 | 43.09 ▲0.18 |
Create Consent form /wp-admin/admin.php?page=wphrgdpr_consent | 1,894 | 8.13 | 180.08 | 74.07 |
Privacy Notice /wp-admin/edit.php?post_type=wp_hr_privacy_policy | 3,002 | 2.43 | 48.39 | 37.37 |
View Consents /wp-admin/admin.php?page=wphrgdpr_consent_rec | 1,038 | 1.94 | 31.40 | 30.03 |
Support /wp-admin/admin.php?page=wphr-gdpr | 1,064 | 1.93 | 28.02 | 49.56 |
Create Notice /wp-admin/post-new.php?post_type=wp_hr_privacy_policy | 2,642 | 9.43 | 210.60 | 68.67 |
Email Templates /wp-admin/admin.php?page=wphrgdpr_email_template | 1,716 | 6.90 | 140.18 | 49.55 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,135 | 1.95 | 29.30 | 28.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wphrgdprlite_consent_records
- This plugin did not uninstall successfully, leaving 19 options in the database
- wphrgdpr_consent_quetions
- wphrgdpr_last_update_post
- wphrgdpr_consent_contents
- widget_recent-posts
- db_upgraded
- wphrgdpr_created_posts
- widget_recent-comments
- fs_active_plugins
- wphrgdpr_email_templates_data
- wphr_email_settings_data-protection-form
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% 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
Please fix the following
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/wp-hr-gdpr/includes/frontend/shortcode-template/privacy-form-template.php:5
- > 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/wp-hr-gdpr/includes/admin/custom_tables/wp-hr-training.php on line 3
- > PHP Notice
Undefined variable: display_consent_form in wp-content/plugins/wp-hr-gdpr/includes/admin/templates/edit_recruitment.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-hr-gdpr/includes/admin/templates/wp-hr-meta-box-field.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-hr-gdpr/includes/admin/custom_tables/wp-hr-request.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-hr-gdpr/includes/admin/templates/wp-hr-consent-form.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-hr-gdpr/includes/admin/custom_tables/wp-hr-training.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-hr-gdpr/includes/admin/templates/dependency_error.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wphr_html_form_input() in wp-content/plugins/wp-hr-gdpr/includes/admin/templates/training-add.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-hr-gdpr/includes/admin/templates/wp-hr-support-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 21 tag instead of maximum 10
- Requires at least: Invalid version format
- Screenshots: Please add descriptions for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in wp-hr-gdpr/assets to your readme.txt
wp-hr-gdpr/wp-hr-gdpr.php Passed 13 tests
This is the main PHP file of "WP-HR GDPR: GDPR Tools for Human Resources on WordPress" version 0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
Create a GDPR data protection policy (called the ‘Data Privacy Notice’) and record consents to this from employees.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin35,864 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 7,645 | 16,594 | 33,964 |
JavaScript | 6 | 142 | 177 | 1,015 |
CSS | 13 | 110 | 8 | 885 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 70.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 1 | 1.69% |
Methods | 1,265 | |
▷ Static methods | 183 | 14.47% |
▷ Public methods | 923 | 72.96% |
▷ Protected methods | 15 | 1.19% |
▷ Private methods | 327 | 25.85% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 100.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
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/Barbara-Podium-600px-Trans.png | 11.81KB | 10.73KB | ▼ 9.17% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/wp-hr-gdpr.png | 29.07KB | 10.30KB | ▼ 64.59% |