10% contact-form-7-infusionsoft-add-on

Code Review | Contact Form 7 - InfusionSoft Add-on

WordPress plugin Contact Form 7 - InfusionSoft Add-on scored10%from 54 tests.

About plugin

  • Plugin page: contact-form-7-in...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.2-4.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Sep 2, 2015
  • Number of updates: 16
  • Update frequency: every 20.3 days
  • Top authors: rnevius (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

600+ active /12,874 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/lib/xmlrpc.inc+737
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor

Server metrics [RAM: ▼0.89MB] [CPU: ▼51.90ms] Passed 4 tests

An overview of server-side resources used by Contact Form 7 - InfusionSoft Add-on
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.11 ▼0.358.20 ▼35.61
Dashboard /wp-admin3.13 ▼0.2210.32 ▼49.96
Posts /wp-admin/edit.php3.13 ▼0.2311.31 ▼42.57
Add New Post /wp-admin/post-new.php3.13 ▼2.7610.85 ▼79.47
Media Library /wp-admin/upload.php3.13 ▼0.108.90 ▼30.38
CF7 InfusionSoft Add-on /wp-admin/options-general.php?page=cf7-infusionsoft-integration3.138.67

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

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

Browser metrics Passed 4 tests

Contact Form 7 - InfusionSoft Add-on: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.25 ▼1.051.72 ▼0.0843.78 ▼0.14
Dashboard /wp-admin2,211 ▲235.82 ▼0.0894.00 ▼21.2839.15 ▼4.31
Posts /wp-admin/edit.php2,075 ▼142.03 ▲0.0334.75 ▼3.6532.94 ▲0.05
Add New Post /wp-admin/post-new.php1,526 ▼723.33 ▼0.02668.06 ▼25.9449.54 ▼1.93
Media Library /wp-admin/upload.php1,396 ▲84.33 ▲0.1297.58 ▼9.8741.30 ▼2.77
CF7 InfusionSoft Add-on /wp-admin/options-general.php?page=cf7-infusionsoft-integration8122.0225.3826.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/lib/xmlrpc.inc+737
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cf7-infusionsoft-integration
    • > Deprecated in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/lib/xmlrpc.inc+737
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=cf7-infusionsoft-integration
    • > Deprecated in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/lib/xmlrpc.inc+1703
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcresp has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=cf7-infusionsoft-integration
    • > Deprecated in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/lib/xmlrpc.inc+1841
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcmsg has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=cf7-infusionsoft-integration
    • > Deprecated in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/lib/xmlrpc.inc+2375
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcval has a deprecated constructor

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/debugger/action.php
    • > /wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/agesort.php
    • > /wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/mail.php
    • > /wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/debugger/index.php
    • > /wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/test/verify_compat.php
    • > /wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/debugger/controller.php
    • > /wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/client.php
  • 66× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      include(): Failed opening 'xmlrpc_wrappers.inc' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/server/server.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'xmlrpcmsg' not found in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/vardemo.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'xmlrpc_server' not found in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/server/discuss.php:112
    • > PHP Warning
      include(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/mail.php on line 17
    • > PHP Warning
      include(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/zopetest.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'xmlrpcmsg' not found in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/which.php:10
    • > PHP Fatal error
      require_once(): Failed opening required 'xmlrpc.inc' (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/test/parse_args.php on line 17
    • > PHP Warning
      include(): Failed opening 'xmlrpc.inc' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/server/server.php on line 21
    • > PHP Warning
      include(): Failed opening 'xmlrpc.inc' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/wrap.php on line 11
    • > PHP Warning
      include(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/wrap.php on line 11

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

contact-form-7-infusionsoft-add-on/cf7-infusionsoft-addon.php 92% from 13 tests

This is the main PHP file of "Contact Form 7 - InfusionSoft Add-on" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-7-infusionsoft-add-on.php" instead of "cf7-infusionsoft-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin14,687 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,1354,2709,690
XML1903213,330
HTML47001,471
make24444115
Perl116531
JavaScript14325
Python110225

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.73
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods283
▷ Static methods20.71%
▷ Public methods28199.29%
▷ Protected methods10.35%
▷ Private methods10.35%
Functions62
▷ Named functions62100.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
PNG images were not found in this plugin