Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.51ms] Passed 4 tests
Server-side resources used by GDPR Framework Add-on for Formidable Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.22 ▼6.13 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.65 ▼14.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.49 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.98 ▼13.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.48 ▼7.32 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Framework Add-on for Formidable Forms
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.42 ▲0.04 | 1.91 ▼0.18 | 43.40 ▼5.30 |
Dashboard /wp-admin | 2,209 ▲18 | 5.89 ▼0.07 | 94.62 ▼10.04 | 42.34 ▲2.82 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.04 | 32.94 ▼3.64 | 31.70 ▼6.03 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.71 ▲1.23 | 610.92 ▼21.60 | 51.45 ▲0.75 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.04 | 97.04 ▼8.23 | 45.19 ▼1.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 __() in wp-content/plugins/gdpr-for-formidable-forms/views/admin/settings-tab.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gdpr-for-formidable-forms/formidable-gdpr.php on line 16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpr-for-formidable-forms/formidable-gdpr.php on line 16
- > 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-formidable-forms/formidable-gdpr.php on line 16
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gdpr, compliance, security, formidable forms, privacy
gdpr-for-formidable-forms/formidable-gdpr.php 69% from 13 tests
The principal PHP file in "GDPR Framework Add-on for Formidable Forms" v. 2.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires PHP: Required version must match the one declared in readme.txt ("7.3" instead of "5.6")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gdpr-for-formidable-forms.php" instead of "formidable-gdpr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin405 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 85 | 18 | 405 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin