89% torro-forms-bootstrap-markup

Code Review | Torro Forms Bootstrap Markup

WordPress plugin Torro Forms Bootstrap Markup scored 89% from 54 tests.

About plugin

  • Plugin page: torro-forms-boots...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.3
  • WordPress version: 5.8.1
  • First release: Jul 6, 2016
  • Latest release: Jul 11, 2016
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: flixos90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,215 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0139.63 ▲0.44
Dashboard /wp-admin3.07 ▲0.0148.30 ▼5.01
Posts /wp-admin/edit.php3.12 ▲0.0147.66 ▼4.07
Add New Post /wp-admin/post-new.php5.43 ▼0.0196.15 ▼565.63
Media Library /wp-admin/upload.php3.01 ▲0.0134.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.76 ▲0.238.47 ▼0.1154.98 ▲3.74
Dashboard /wp-admin2,983 ▲495.91 ▼0.18141.17 ▼16.04122.58 ▼4.64
Posts /wp-admin/edit.php2,751 ▲122.68 ▲0.0164.74 ▼10.1390.67 ▼5.69
Add New Post /wp-admin/post-new.php1,689 ▲618.36 ▲2.14391.07 ▼22.06122.20 ▲4.12
Media Library /wp-admin/upload.php1,817 ▲105.04 ▲0.02159.63 ▼9.93125.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1167121322

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 code0.30
Average class complexity6.50
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods531.25%
▷ Public methods1381.25%
▷ Protected methods212.50%
▷ Private methods16.25%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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