84% infusionsoft-web-form-javascript

Code Review | Infusionsoft Web Form JavaScript

WordPress plugin Infusionsoft Web Form JavaScript scored84%from 54 tests.

About plugin

  • Plugin page: infusionsoft-web-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2013
  • Latest release: Dec 18, 2014
  • Number of updates: 12
  • Update frequency: every 38.5 days
  • Top authors: zulugrid (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Infusionsoft Web Form JavaScript
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.17 ▼7.80
Dashboard /wp-admin3.32 ▼0.0346.58 ▼12.95
Posts /wp-admin/edit.php3.37 ▲0.0149.31 ▲4.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.31 ▼4.72
Media Library /wp-admin/upload.php3.24 ▲0.0133.37 ▼1.69
Web Form JavaScript /wp-admin/options-general.php?page=novaksolutions-wf-settings3.2031.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Infusionsoft Web Form JavaScript: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.141.78 ▼0.2445.72 ▼10.88
Dashboard /wp-admin2,210 ▲195.86 ▲0.84105.42 ▼1.1241.22 ▼0.05
Posts /wp-admin/edit.php2,096 ▲72.03 ▼0.0039.22 ▲0.8337.05 ▲0.03
Add New Post /wp-admin/post-new.php1,517 ▼2617.44 ▼0.74676.54 ▲48.5157.96 ▲4.80
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.11100.10 ▼0.6544.86 ▲0.40
Web Form JavaScript /wp-admin/options-general.php?page=novaksolutions-wf-settings8292.0324.8532.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/infusionsoft-web-form-javascript/novaksolutions-infusionsoft-javascript.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: webforms, web forms, javascript, webform, infusionsoft

infusionsoft-web-form-javascript/novaksolutions-infusionsoft-javascript.php 92% from 13 tests

Analyzing the main PHP file in "Infusionsoft Web Form JavaScript" version 1.1.1
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("infusionsoft-web-form-javascript.php" instead of "novaksolutions-infusionsoft-javascript.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1311893

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected