Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.76MB] [CPU: ▼0.18ms] Passed 4 tests
Analyzing server-side resources used by GDPR CCPA Compliance Support
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.79 | 48.57 ▲2.65 |
Dashboard /wp-admin | 4.08 ▲0.73 | 55.38 ▼12.09 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 53.65 ▲4.18 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 101.71 ▲4.53 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 53.39 ▲17.82 |
Cookie Popup /wp-admin/admin.php?page=njt-gdpr | 3.98 | 40.62 |
Server storage [IO: ▲6.17MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/ninja-gdpr-compliance/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 159 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
njt_gdpr_privacy_settings_page |
widget_recent-posts |
widget_theysaidso_widget |
njt_notification_filebird_cross |
njt_popup_filebird_cross |
njt_gdpr_version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for GDPR CCPA Compliance Support
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,098 ▲337 | 13.92 ▼0.46 | 12.42 ▲10.51 | 18.17 ▼26.07 |
Dashboard /wp-admin | 2,359 ▲156 | 5.04 ▲0.14 | 109.56 ▼10.40 | 92.13 ▲46.70 |
Posts /wp-admin/edit.php | 2,185 ▲85 | 2.04 ▲0.03 | 38.01 ▼0.77 | 32.58 ▼6.80 |
Add New Post /wp-admin/post-new.php | 1,752 ▲207 | 24.52 ▲1.43 | 684.86 ▲44.81 | 51.56 ▼7.22 |
Media Library /wp-admin/upload.php | 1,490 ▲87 | 4.23 ▲0.01 | 111.93 ▲8.85 | 44.15 ▼4.86 |
Cookie Popup /wp-admin/admin.php?page=njt-gdpr | 1,625 | 4.52 | 109.55 | 96.64 |
Privacy Settings Page /wp-admin/admin.php?page=njt-gdpr#/privacy-settings-page | 1,127 | 3.99 | 84.41 | 30.96 |
Data Rectification /wp-admin/admin.php?page=njt-gdpr#/data-rectification | 1,182 | 3.93 | 46.63 | 28.40 |
Terms and Conditions /wp-admin/admin.php?page=njt-gdpr#/terms-and-conditions | 1,187 | 4.11 | 50.33 | 31.86 |
Integrations /wp-admin/admin.php?page=njt-gdpr#/integrations | 1,128 | 3.88 | 50.24 | 29.61 |
Data Breach /wp-admin/admin.php?page=njt-gdpr#/data-breach | 1,090 | 3.73 | 45.14 | 27.60 |
Unsubscribe /wp-admin/admin.php?page=njt-gdpr#/unsubscribe | 1,150 | 4.00 | 49.56 | 29.39 |
Data Access /wp-admin/admin.php?page=njt-gdpr#/data-access | 1,182 | 3.82 | 48.06 | 27.19 |
Privacy Policy /wp-admin/admin.php?page=njt-gdpr#/policy | 1,201 | 4.09 | 50.90 | 30.30 |
Forget Me /wp-admin/admin.php?page=njt-gdpr#/forget-me | 1,205 | 3.83 | 47.06 | 27.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-posts
- njt_popup_filebird_cross
- widget_theysaidso_widget
- njt_notification_filebird_cross
- can_compress_scripts
- njt_gdpr_version
- theysaidso_admin_options
- widget_recent-comments
- njt_gdpr_privacy_settings_page
- db_upgraded
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
Almost there! Just fix the following items
- 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/geoip2/geoip2/src/Record/Continent.php:24
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/geoip2/geoip2/src/Model/Country.php:32
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/geoip2/geoip2/src/Record/AbstractPlaceRecord.php:7
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/geoip2/geoip2/src/Record/MaxMind.php:15
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\HttpException' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/geoip2/geoip2/src/Exception/InvalidRequestException.php:11
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php:10
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php:10
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ninja-gdpr-compliance/views/cookie-popup.php:2
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/ninja-gdpr-compliance/vendor/geoip2/geoip2/src/Record/City.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 22 tag instead of maximum 10
ninja-gdpr-compliance/njt-gdpr.php 92% from 13 tests
The primary PHP file in "GDPR CCPA Compliance Support" version 2.6.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ninja-gdpr-compliance.php" instead of "njt-gdpr.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
Everything looks great! No dangerous files found in this plugin12,066 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 776 | 1,610 | 5,467 |
PO File | 11 | 1,652 | 1,728 | 3,757 |
Markdown | 7 | 390 | 0 | 932 |
C | 1 | 117 | 24 | 665 |
Perl | 6 | 246 | 385 | 428 |
JSON | 5 | 0 | 0 | 401 |
JavaScript | 10 | 4 | 11 | 143 |
XML | 2 | 4 | 0 | 98 |
CSS | 4 | 23 | 4 | 81 |
Bourne Shell | 1 | 20 | 0 | 40 |
m4 | 1 | 8 | 0 | 32 |
SVG | 2 | 0 | 0 | 14 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 3 | 4.69% |
▷ Concrete classes | 61 | 95.31% |
▷ Final classes | 0 | 0.00% |
Methods | 263 | |
▷ Static methods | 15 | 5.70% |
▷ Public methods | 209 | 79.47% |
▷ Protected methods | 1 | 0.38% |
▷ Private methods | 53 | 20.15% |
Functions | 15 | |
▷ Named functions | 10 | 66.67% |
▷ Anonymous functions | 5 | 33.33% |
Constants | 24 | |
▷ Global constants | 6 | 25.00% |
▷ Class constants | 18 | 75.00% |
▷ Public constants | 2 | 11.11% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/FB_Wireframe.png | 10.56KB | 4.88KB | ▼ 53.83% |
assets/admin/img/forma.png | 0.27KB | 0.34KB | 0.00% |