84% gravity-forms-bootstrap-3-style

Code Review | Bootstrap Gravity Forms

WordPress plugin Bootstrap Gravity Forms scored 84% from 54 tests.

About plugin

  • Plugin page: gravity-forms-boo...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Apr 29, 2015
  • Number of updates: 20
  • Update frequency: every 11.2 days
  • Top authors: abrudtkuhl (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 8,855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.64ms] Passed 4 tests

Server-side resources used by Bootstrap Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.60 ▼10.86
Dashboard /wp-admin3.31 ▲0.0145.86 ▼0.95
Posts /wp-admin/edit.php3.36 ▲0.0046.25 ▼0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.97 ▼18.58
Media Library /wp-admin/upload.php3.23 ▲0.0046.96 ▲11.65

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bootstrap Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.13 ▼1.261.66 ▼0.6142.47 ▼1.41
Dashboard /wp-admin2,203 ▲185.83 ▲0.82102.45 ▼0.7541.88 ▼1.18
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0735.32 ▼7.6232.47 ▼2.69
Add New Post /wp-admin/post-new.php1,552 ▲3518.22 ▲0.35581.05 ▼70.4568.57 ▲14.97
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0395.59 ▼4.6442.28 ▼4.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gravity-forms-bootstrap-3-style/gravity-forms-bootstrap-style.php

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 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
2 plugin tags: bootstrap, gravity forms

gravity-forms-bootstrap-3-style/gravity-forms-bootstrap-style.php 92% from 13 tests

"Bootstrap Gravity Forms" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gravity-forms-bootstrap-3-style.php" instead of "gravity-forms-bootstrap-style.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS136455
Markdown15018
PHP1389

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin