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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.32ms] Passed 4 tests
This is a short check of server-side resources used by Enable Turnstile (Cloudflare) for Gravity Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.55 ▼1.06 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.77 ▼26.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.52 ▼5.83 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.49 ▼14.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.31 ▼2.32 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Enable Turnstile (Cloudflare) for Gravity Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.12 | 1.82 ▲0.15 | 43.21 ▲0.12 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼1.05 | 116.30 ▲14.59 | 42.70 ▲3.03 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.00 | 37.61 ▼6.45 | 33.27 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.17 ▲4.74 | 674.15 ▲35.61 | 56.10 ▲5.12 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.15 ▼0.11 | 93.12 ▼10.69 | 44.51 ▼1.40 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enable-turnstile-cloudflare-for-gravity-forms/ss88-gravity-forms-turnstile.php:13
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/enable-turnstile-cloudflare-for-gravity-forms/class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: spam, cloudflare, protection, turnstile, gravity forms...
enable-turnstile-cloudflare-for-gravity-forms/ss88-gravity-forms-turnstile.php 92% from 13 tests
The entry point to "Enable Turnstile (Cloudflare) for Gravity Forms" version 1.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("enable-turnstile-cloudflare-for-gravity-forms.php" instead of "ss88-gravity-forms-turnstile.php")
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
There were no executable files found in this plugin324 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 112 | 8 | 272 |
CSS | 1 | 4 | 0 | 31 |
JavaScript | 1 | 16 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin