Benchmarks
Plugin footprint 65% 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: ▲1.60MB] [CPU: ▼289.00ms] Passed 4 tests
This is a short check of server-side resources used by Torro Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.94 ▲1.43 | 69.15 ▲10.08 |
Dashboard /wp-admin | 5.04 ▲1.64 | 48.23 ▲5.75 |
Posts /wp-admin/edit.php | 5.27 ▲1.63 | 50.10 ▲8.78 |
Add New Post /wp-admin/post-new.php | 9.16 ▲2.19 | 114.84 ▼1,180.45 |
Media Library /wp-admin/upload.php | 5.00 ▲1.71 | 33.69 ▲9.92 |
Categories /wp-admin/edit-tags.php?taxonomy=attachment_category&post_type=attachment | 5.06 | 45.42 |
Submissions /wp-admin/edit.php?post_type=torro_form&page=torro_list_submissions | 5.19 | 39.91 |
Settings /wp-admin/edit.php?post_type=torro_form&page=torro_form_settings | 5.04 | 35.42 |
Add New /wp-admin/admin.php?page=torro_edit_submission | 5.02 | 33.82 |
Add New /wp-admin/post-new.php?post_type=torro_form | 6.12 | 71.71 |
Categories /wp-admin/edit-tags.php?taxonomy=torro_form_category&post_type=torro_form | 4.99 | 41.42 |
All Forms /wp-admin/edit.php?post_type=torro_form | 5.05 | 35.05 |
Server storage [IO: ▲10.85MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,695 new files
Database: 7 new tables, 4 new options
New tables |
---|
wp_torro_elements |
wp_torro_submissions |
wp_torro_submission_values |
wp_torro_containers |
wp_torro_submissionmeta |
wp_torro_element_choices |
wp_torro_element_settings |
New WordPress options |
---|
torro_rewrite_rules |
torro_general_settings |
attachment_category_children |
torro_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Torro Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,959 ▲237 | 16.04 ▲0.40 | 5.79 ▲0.18 | 2.55 ▲0.41 |
Dashboard /wp-admin | 3,084 ▲230 | 6.16 ▼0.04 | 116.87 ▼15.32 | 166.20 ▲4.50 |
Posts /wp-admin/edit.php | 2,878 ▲187 | 3.28 ▲0.05 | 61.35 ▼3.32 | 140.64 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,823 ▲162 | 19.37 ▲3.04 | 394.76 ▼11.78 | 154.51 ▼8.65 |
Media Library /wp-admin/upload.php | 1,890 ▲189 | 5.57 ▲0.08 | 141.16 ▲5.91 | 184.59 ▲0.74 |
Categories /wp-admin/edit-tags.php?taxonomy=attachment_category&post_type=attachment | 1,939 | 2.79 | 58.48 | 133.40 |
Submissions /wp-admin/edit.php?post_type=torro_form&page=torro_list_submissions | 1,533 | 2.72 | 54.91 | 108.72 |
Settings /wp-admin/edit.php?post_type=torro_form&page=torro_form_settings | 1,673 | 3.43 | 69.26 | 190.12 |
Add New /wp-admin/admin.php?page=torro_edit_submission | 1,682 | 3.18 | 67.04 | 142.08 |
Add New /wp-admin/post-new.php?post_type=torro_form | 8,011 | 9.97 | 209.92 | 174.30 |
Categories /wp-admin/edit-tags.php?taxonomy=torro_form_category&post_type=torro_form | 1,817 | 2.79 | 60.95 | 122.41 |
All Forms /wp-admin/edit.php?post_type=torro_form | 1,592 | 3.21 | 60.46 | 111.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_torro_submission_values
- wp_torro_element_choices
- wp_torro_element_settings
- wp_torro_submissions
- wp_torro_submissionmeta
- wp_torro_containers
- wp_torro_elements
- Zombie WordPress options were found after uninstall: 2 options
- attachment_category_children
- torro_general_settings
Smoke tests 50% 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 0% 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
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/tests/phpunit/data/sample-plugin/templates/base-suffixed.php
- > /wp-content/plugins/torro-forms/vendor/mk-j/php_xlsxwriter/examples/ex09-autofilter.php
- > /wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/tests/phpunit/data/templates/require-this-once.php
- > /wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/tests/phpunit/data/sample-plugin/templates/data.php
- > /wp-content/plugins/torro-forms/vendor/mk-j/php_xlsxwriter/examples/ex05-numbers-250k-rows.php
- > /wp-content/plugins/torro-forms/vendor/mk-j/php_xlsxwriter/examples/ex10-freeze-rows-columns.php
- > /wp-content/plugins/torro-forms/vendor/mk-j/php_xlsxwriter/examples/ex06-strings-250k-rows.php
- > /wp-content/plugins/torro-forms/vendor/mk-j/php_xlsxwriter/example.php
- > /wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/tests/phpunit/data/templates/base.php
- > /wp-content/plugins/torro-forms/vendor/mk-j/php_xlsxwriter/examples/ex02-formats.php
- 452× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Leaves_And_Love\\Plugin_Lib\\DB_Objects\\Queries\\Core_Query' not found in wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/src/db-objects/queries/site-query.php:23
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/torro-forms/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/torro-forms/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Leaves_And_Love\\Plugin_Lib\\Translations\\Translations' not found in wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/src/translations/translations-error-handler.php:18
- > PHP Fatal error
Uncaught Error: Class 'Leaves_And_Love\\Plugin_Lib\\DB_Objects\\Collection' not found in wp-content/plugins/torro-forms/src/db-objects/element-settings/element-setting-collection.php:18
- > PHP Fatal error
Uncaught Error: Class 'Leaves_And_Love\\Plugin_Lib\\Fields\\Textarea' not found in wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/src/fields/wysiwyg.php:20
- > PHP Fatal error
Trait 'Leaves_And_Love\\Plugin_Lib\\Traits\\Container_Service_Trait' not found in wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/tests/phpunit/data/test-container-service-trait-class.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Leaves_And_Love\\Plugin_Lib\\Tests\\Unit_Test_Case' not found in wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/tests/phpunit/tests/traits/container-service-trait.php:17
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/torro-forms/vendor/api-api/core/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/torro-forms/vendor/api-api/core/tests/bootstrap.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Leaves_And_Love\\Plugin_Lib\\Translations\\Translations_Manager' not found in wp-content/plugins/torro-forms/src/translations/translations-element-setting-manager.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
7 plugin tags: polls, votes, forms, form builder, api...
torro-forms/torro-forms.php 92% from 13 tests
Analyzing the main PHP file in "Torro Forms" version 1.0.16
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin177,495 lines of code in 1,611 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 796 | 19,103 | 17,023 | 112,819 |
PHP | 560 | 11,244 | 29,201 | 39,219 |
JSON | 35 | 2 | 0 | 12,101 |
HTML | 100 | 596 | 61 | 6,408 |
Markdown | 32 | 817 | 0 | 2,233 |
CSS | 35 | 352 | 194 | 2,229 |
Sass | 40 | 409 | 13 | 1,877 |
SVG | 2 | 1 | 1 | 241 |
YAML | 6 | 34 | 6 | 146 |
CoffeeScript | 1 | 8 | 0 | 106 |
Bourne Shell | 2 | 3 | 1 | 43 |
Python | 1 | 5 | 0 | 42 |
XML | 1 | 1 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 56 | |
Interfaces | 19 | |
Traits | 29 | |
Classes | 465 | |
▷ Abstract classes | 54 | 11.61% |
▷ Concrete classes | 411 | 88.39% |
▷ Final classes | 5 | 1.22% |
Methods | 2,767 | |
▷ Static methods | 180 | 6.51% |
▷ Public methods | 1,769 | 63.93% |
▷ Protected methods | 939 | 33.94% |
▷ Private methods | 59 | 2.13% |
Functions | 73 | |
▷ Named functions | 12 | 16.44% |
▷ Anonymous functions | 61 | 83.56% |
Constants | 24 | |
▷ Global constants | 4 | 16.67% |
▷ Class constants | 20 | 83.33% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.49MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/felixarntz/plugin-lib/node_modules/wp-media-picker/screenshot.png | 272.84KB | 79.33KB | ▼ 70.92% |
vendor/felixarntz/plugin-lib/node_modules/jquery-datetimepicker/screen/3.1.png | 4.31KB | 2.63KB | ▼ 38.92% |
vendor/felixarntz/plugin-lib/node_modules/jquery-datetimepicker/screen/3.png | 2.44KB | 1.51KB | ▼ 38.12% |
node_modules/c3/htdocs/jasmine/lib/jasmine-2.0.2/jasmine_favicon.png | 1.45KB | 1.48KB | 0.00% |
vendor/felixarntz/plugin-lib/node_modules/jquery-datetimepicker/screen/4.png | 12.29KB | 5.50KB | ▼ 55.26% |