10% jotform-integration

Code Review | JotForm Integration

WordPress plugin JotForm Integration scored10%from 54 tests.

About plugin

  • Plugin page: jotform-integration
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Jun 20, 2012
  • Latest release: Sep 22, 2012
  • Number of updates: 23
  • Update frequency: every 4.4 days
  • Top authors: BFTrick (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /14,499 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/jotform-integration/jotform-integration.php+108
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼58.81ms] Passed 4 tests

Server-side resources used by JotForm Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.44 ▼33.34
Dashboard /wp-admin2.05 ▼1.307.63 ▼52.57
Posts /wp-admin/edit.php2.05 ▼1.315.28 ▼45.46
Add New Post /wp-admin/post-new.php2.05 ▼3.846.22 ▼103.85
Media Library /wp-admin/upload.php2.05 ▼1.185.10 ▼31.05
JotForm Integration /wp-admin/options-general.php?page=jotform2.055.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_jotformwidget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by JotForm Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.23 ▼1.164.72 ▲2.9640.20 ▼3.18
Dashboard /wp-admin2,210 ▲225.81 ▲0.9496.23 ▼6.8645.72 ▼2.12
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0039.12 ▼1.4433.80 ▼0.75
Add New Post /wp-admin/post-new.php1,517 ▼1117.42 ▼5.75637.78 ▼39.5760.64 ▼3.05
Media Library /wp-admin/upload.php1,395 ▲134.15 ▼0.0595.23 ▼14.9440.84 ▼4.64
JotForm Integration /wp-admin/options-general.php?page=jotform7782.0523.4425.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/jotform-integration/jotform-integration.php+108
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_jotformwidget
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=jotform
    • > Deprecated in wp-content/plugins/jotform-integration/jotform-integration.php+108
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=jotform
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in JotformWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=jotform
    • > Notice in wp-content/plugins/jotform-integration/jotform-integration.php+159
    Trying to access array offset on value of type bool

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jotform-integration/trunk/jotform-integration.php:49
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jotform-integration/jotform-integration.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === jotform-integration === )
Please take inspiration from this readme.txt

jotform-integration/jotform-integration.php Passed 13 tests

The primary PHP file in "JotForm Integration" version 1.1.2 is used by WordPress to initiate all plugin functionality
57 characters long description:
Integrate JotForm forms with your WordPress-powered site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1423792

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.62MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png24.07KB8.49KB▼ 64.72%
trunk/assets-wp-repo/screenshot-2.png13.81KB3.83KB▼ 72.28%
trunk/assets-wp-repo/screenshot-1.png24.07KB8.49KB▼ 64.72%
trunk/assets/banner-772x250.png94.29KB88.47KB▼ 6.17%
trunk/assets/screenshot-2.png13.81KB3.83KB▼ 72.28%