79% infugrator

Code Review | Infugrator - Infusionsoft + Wordpress

WordPress plugin Infugrator - Infusionsoft + Wordpress scored79%from 54 tests.

About plugin

  • Plugin page: infugrator
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Jul 9, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 24
  • Update frequency: every 7.2 days
  • Top authors: KomyOmy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /780 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.72MB] [CPU: ▲1.12ms] Passed 4 tests

This is a short check of server-side resources used by Infugrator - Infusionsoft + Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.7249.96 ▲6.79
Dashboard /wp-admin4.03 ▲0.7251.99 ▲4.89
Posts /wp-admin/edit.php4.08 ▲0.7255.15 ▲3.30
Add New Post /wp-admin/post-new.php6.61 ▲0.7290.25 ▼10.50
Media Library /wp-admin/upload.php3.95 ▲0.7242.47 ▲9.73
Settings /wp-admin/admin.php?page=ifg-settings3.8736.19
Statistics /wp-admin/admin.php?page=ifg-stats3.8637.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 427 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
ifg-modules
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Infugrator - Infusionsoft + Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.74 ▼1.001.87 ▲0.0538.71 ▼0.41
Dashboard /wp-admin2,214 ▲265.86 ▲1.0296.52 ▼12.2841.39 ▲0.90
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0541.60 ▼0.9534.41 ▼1.02
Add New Post /wp-admin/post-new.php1,546 ▲1323.37 ▲0.01656.15 ▲24.8058.81 ▲3.47
Media Library /wp-admin/upload.php1,396 ▲84.27 ▲0.0298.49 ▼0.8643.26 ▼1.54
Settings /wp-admin/admin.php?page=ifg-settings8552.0226.5526.96
Statistics /wp-admin/admin.php?page=ifg-stats8141.9224.0125.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • ifg-modules

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
Almost there! Just fix the following items
  • 118× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_DataService_update.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_WebFormService_getHTML.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_SearchService_quickSearch.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_DataService_load.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/admin/generate_classes_from_API_Field_access_file.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_APIEmailService_attachEmail.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_InvoiceService_setInvoiceSyncStatus.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_APIAffiliateService_updatePhoneStats.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_get_payment_with_charge_id.php
    • > /wp-content/plugins/infugrator/vendors/lib/Infusionsoft/tests/notAuto_test_DataService_getAppSetting.php
  • 444× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Infusionsoft_Generated_DataFormField' not found in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/DataFormField.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Infusionsoft_Generated_Base' not found in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/Generated/SavedFilter.php:8
    • > PHP Warning
      include(wp-content/plugins/infugrator/vendors/lib/Infusionsoft/generated/a_template_base_class.php): failed to open stream: No such file or directory in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/admin/generate_classes_from_API_Field_access_file.php on line 43
    • > PHP Fatal error
      Uncaught Error: Class 'Infusionsoft_Generated_Base' not found in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/Generated/FileBox.php:10
    • > PHP Warning
      fwrite() expects parameter 1 to be resource, bool given in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/admin/generate_classes_from_API_Field_access_file.php on line 46
    • > PHP Fatal error
      Uncaught Error: Class 'Infusionsoft_Generated_Base' not found in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/Generated/EmailAddStatus.php:12
    • > PHP Warning
      fopen(wp-content/plugins/infugrator/vendors/lib/Infusionsoft/generated/InvoicePayment.php): failed to open stream: No such file or directory in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/admin/generate_classes_from_API_Field_access_file.php on line 45
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/infugrator/modules/gravityforms/output-form-settings-tab.php:4
    • > PHP Warning
      fwrite() expects parameter 1 to be resource, bool given in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/admin/generate_classes_from_API_Field_access_file.php on line 46
    • > PHP Fatal error
      Uncaught Error: Class 'Infusionsoft_Generated_LeadSourceExpense' not found in wp-content/plugins/infugrator/vendors/lib/Infusionsoft/LeadSourceExpense.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: automation marketing, infusionsoft campaigns, infusionsoft, infusionsoft integration, api goals

infugrator/infugrator.php Passed 13 tests

The main file in "Infugrator - Infusionsoft + Wordpress" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Easily integrates Infusionsoft® with your site.

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
Success! There were no dangerous files found in this plugin29,271 lines of code in 398 files:
LanguageFilesBlank linesComment linesLines of code
PHP3713,1764,51011,968
JavaScript181,2931,21610,389
SVG1002,671
CSS6156351,913
Pascal12022,2591,378
XML1120218952

PHP code Passed 2 tests

An short overview of 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.33
Average class complexity5.12
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity1.99
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces7
Traits0
Classes215
▷ Abstract classes41.86%
▷ Concrete classes21198.14%
▷ Final classes00.00%
Methods944
▷ Static methods20721.93%
▷ Public methods87092.16%
▷ Protected methods313.28%
▷ Private methods434.56%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants70
▷ Global constants45.71%
▷ Class constants6694.29%
▷ Public constants66100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
autoloader/admin/images/menu-icon.png1.18KB0.56KB▼ 52.89%