Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.47ms] Passed 4 tests
A check of server-side resources used by Ninja Forms: GDPR Framework Add-On
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.73 ▲3.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.38 ▼3.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.30 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.77 ▼15.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.51 ▲0.90 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ninja Forms: GDPR Framework Add-On
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.42 ▼0.13 | 1.81 ▲0.08 | 44.68 ▲1.80 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.14 | 94.05 ▲0.39 | 41.53 ▼5.09 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.05 | 39.98 ▼3.45 | 36.46 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,679 ▲153 | 22.44 ▼0.65 | 664.14 ▲6.25 | 55.80 ▲3.59 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.19 ▼0.02 | 99.02 ▼2.54 | 47.74 ▼1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gdpr-for-ninja-forms/ninjaforms-gdpr.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpr-for-ninja-forms/ninjaforms-gdpr.php on line 15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-for-ninja-forms/ninjaforms-gdpr.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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
6 plugin tags: privacy, ninja forms, compliance, gdpr, security...
gdpr-for-ninja-forms/ninjaforms-gdpr.php 77% from 13 tests
The main PHP script in "Ninja Forms: GDPR Framework Add-On" version 2.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.3" instead of "5.6")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gdpr-for-ninja-forms.php" instead of "ninjaforms-gdpr.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected462 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 66 | 103 | 462 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 2 | 66.67% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 1 | 4.35% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin