Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼143.82ms] Passed 4 tests
An overview of server-side resources used by Torro Forms Bootstrap Markup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 39.63 ▲0.44 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.30 ▼5.01 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.66 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 96.15 ▼565.63 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.25 ▼0.55 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Torro Forms Bootstrap Markup
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.76 ▲0.23 | 8.47 ▼0.11 | 54.98 ▲3.74 |
Dashboard /wp-admin | 2,983 ▲49 | 5.91 ▼0.18 | 141.17 ▼16.04 | 122.58 ▼4.64 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.68 ▲0.01 | 64.74 ▼10.13 | 90.67 ▼5.69 |
Add New Post /wp-admin/post-new.php | 1,689 ▲6 | 18.36 ▲2.14 | 391.07 ▼22.06 | 122.20 ▲4.12 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.04 ▲0.02 | 159.63 ▼9.93 | 125.94 ▼1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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
Even though everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/torro-forms-bootstrap-markup/templates/recaptcha.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: size in wp-content/plugins/torro-forms-bootstrap-markup/templates/recaptcha.php on line 14
- > PHP Notice
Undefined variable: form_id in wp-content/plugins/torro-forms-bootstrap-markup/templates/recaptcha.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/torro-forms-bootstrap-markup/templates/element-type-multiplechoice.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function torro() in wp-content/plugins/torro-forms-bootstrap-markup/templates/element-onechoice.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function torro() in wp-content/plugins/torro-forms-bootstrap-markup/templates/element-multiplechoice.php:15
- > PHP Notice
Undefined variable: type in wp-content/plugins/torro-forms-bootstrap-markup/templates/recaptcha.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function torro() in wp-content/plugins/torro-forms-bootstrap-markup/templates/element.php:15
- > PHP Notice
Undefined variable: id in wp-content/plugins/torro-forms-bootstrap-markup/templates/recaptcha.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function torro() in wp-content/plugins/torro-forms-bootstrap-markup/templates/form.php:14
- > PHP Notice
Undefined variable: theme in wp-content/plugins/torro-forms-bootstrap-markup/templates/recaptcha.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: form builder, extension, torro forms, bootstrap
torro-forms-bootstrap-markup/torro-forms-bootstrap-markup.php Passed 13 tests
The entry point to "Torro Forms Bootstrap Markup" version 1.0.1 is a PHP file that has certain tags in its header comment area
133 characters long description:
This Torro Forms extension modifies the output of your forms to be styled in compliance with themes using the Boostrap CSS Framework.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected322 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 67 | 121 | 322 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
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 | 5 | 31.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 1 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
No PNG files were detected