Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.91ms] Passed 4 tests
Analyzing server-side resources used by Gravity Forms: GDPR Framework Add-On
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.47 ▼0.86 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.29 ▼3.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.96 ▼5.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.37 ▼13.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.04 ▲0.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gravity Forms: GDPR Framework Add-On
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.45 ▲0.04 | 1.76 ▼0.08 | 40.50 ▲1.54 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼1.20 | 103.57 ▼8.49 | 39.73 ▼3.79 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 36.89 ▼4.89 | 33.64 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.31 ▲0.11 | 666.89 ▲11.17 | 54.81 ▲2.42 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▼0.03 | 95.59 ▼7.37 | 42.32 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gdpr-for-gravity-forms/src/GravityFormsGDPRAddOn.php:5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gdpr-for-gravity-forms/gravityforms-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-gravity-forms/gravityforms-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-gravity-forms/gravityforms-gdpr.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: gravity forms, privacy, security, ccpa, compliance...
gdpr-for-gravity-forms/gravityforms-gdpr.php 69% from 13 tests
"Gravity Forms: GDPR Framework Add-On" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gdpr-for-gravity-forms.php" instead of "gravityforms-gdpr.php")
- Domain Path: The domain path folder was not found ("/languages")
- Requires PHP: The required version number must match the one declared in readme.txt ("7.3" instead of "5.6")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected392 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 80 | 28 | 392 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 files were detected