Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.00ms] Passed 4 tests
A check of server-side resources used by Caldera Forms Translation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.17 ▼8.11 |
Dashboard /wp-admin | 3.33 ▼0.01 | 43.92 ▼20.84 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.59 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.54 ▼1.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.98 ▲2.20 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Caldera Forms Translation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.34 ▼1.04 | 1.81 ▼0.24 | 42.49 ▼0.12 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼0.08 | 107.49 ▼13.05 | 38.23 ▼6.52 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.02 | 39.58 ▲0.94 | 34.51 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.41 ▼4.74 | 631.26 ▼35.73 | 69.70 ▲13.85 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▼0.01 | 95.88 ▼4.04 | 41.38 ▼9.59 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/caldera-forms-translation/fields/picker/preview.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CF_Translate_Filter' not found in wp-content/plugins/caldera-forms-translation/classes/pickeroptions.php:12
- > PHP Fatal error
Uncaught Error: Class 'Caldera_Forms_Forms' not found in wp-content/plugins/caldera-forms-translation/views/main-page.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/caldera-forms-translation/fields/picker/field.php:10
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/caldera-forms-translation/classes/factories.php on line 134
- > PHP Fatal error
Uncaught Error: Class 'CF_Translate_Filter' not found in wp-content/plugins/caldera-forms-translation/classes/success.php:3
- > PHP Notice
Undefined variable: field_label in wp-content/plugins/caldera-forms-translation/fields/picker/field.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/caldera-forms-translation/fields/picker/config_template.php:3
- > PHP Notice
Undefined variable: field_before in wp-content/plugins/caldera-forms-translation/fields/picker/field.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'Caldera_Forms_API_Route' not found in wp-content/plugins/caldera-forms-translation/classes/api.php:11
- > PHP Fatal error
Uncaught Error: Class 'Caldera_Forms_Object' not found in wp-content/plugins/caldera-forms-translation/classes/field.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (Translation Settings) image not found
caldera-forms-translation/cf-translate.php 85% from 13 tests
The entry point to "Caldera Forms Translation" version 1.2.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("caldera-forms-translation.php" instead of "cf-translate.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin16,622 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 12,621 |
PHP | 30 | 398 | 1,082 | 1,814 |
JavaScript | 22 | 282 | 659 | 1,602 |
Vuejs Component | 10 | 78 | 0 | 572 |
Markdown | 1 | 8 | 0 | 13 |
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.44 |
Average class complexity | 11.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 12 | 11.76% |
▷ Public methods | 82 | 80.39% |
▷ Protected methods | 17 | 16.67% |
▷ Private methods | 3 | 2.94% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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