Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.29ms] Passed 4 tests
A check of server-side resources used by NS GDPR Helper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.51 ▼0.82 |
Dashboard /wp-admin | 3.42 ▲0.11 | 51.53 ▼1.54 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.47 ▲2.74 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.20 ▼5.53 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.77 ▲5.07 |
NS GDPR /wp-admin/admin.php?page=ns-gdpr/ns-admin-options/ns_admin_option_dashboard.php | 3.33 | 35.96 |
/wp-admin/admin.php?page=plugineye207 | 3.31 | 33.74 |
Join the NS CLUB /wp-admin/admin.php?page=join-the-club | 3.13 | 24.23 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NS GDPR Helper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.72 ▼0.90 | 8.61 ▲6.89 | 42.40 ▼1.86 |
Dashboard /wp-admin | 2,220 ▲43 | 5.66 ▲0.09 | 79.13 ▼18.07 | 77.15 ▲33.09 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.01 ▼0.01 | 37.14 ▼3.02 | 34.27 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,705 ▲167 | 22.45 ▼0.92 | 716.66 ▲27.34 | 51.92 ▼6.68 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.17 ▼0.03 | 95.79 ▼10.02 | 73.53 ▲21.39 |
NS GDPR /wp-admin/admin.php?page=ns-gdpr/ns-admin-options/ns_admin_option_dashboard.php | 968 | 2.00 | 22.56 | 36.64 |
/wp-admin/admin.php?page=plugineye207 | 916 | 2.00 | 23.65 | 23.80 |
Join the NS CLUB /wp-admin/admin.php?page=join-the-club | 3,375 | 11.25 | 388.23 | 169.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-gdpr/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-gdpr/comments/ns-gdpr-comments.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-gdpr/contact-form-7/ns-gdpr-contact-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-gdpr/woocommerce/ns-wc-gdpr-checkout.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=join-the-club
- > Deprecation (warning) in unknown
https://www.nsthemes.com/wp-content/themes/flatsome/assets/js/flatsome.js?ver=295a0d1d1e8168b25a51f884bffa7b33 0 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Settings NS GDPR for WordPress and WooCommerce.), #2 (View GDPR checkbox.)
ns-gdpr/ns-gdpr.php Passed 13 tests
This is the main PHP file of "NS GDPR Helper" version 1.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
91 characters long description:
This plugin helps you to comply with the European General Data Protection Regulation (GDPR)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,669 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 122 | 29 | 794 |
PHP | 15 | 141 | 209 | 783 |
PO File | 1 | 19 | 23 | 54 |
JavaScript | 2 | 6 | 0 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 26.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 73.68% |
Functions | 23 | |
▷ Named functions | 12 | 52.17% |
▷ Anonymous functions | 11 | 47.83% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ns-admin-options/img/ns_banner_membership-500.png | 24.95KB | 26.27KB | 0.00% |
screenshot-1.png | 87.51KB | 23.52KB | ▼ 73.12% |
ns-admin-options/img/backend-sidebar-icon.png | 1.48KB | 0.54KB | ▼ 63.47% |