83% icontact-infusionsoft-from-popup

Code Review | iContact, InfusionSoft form Popup

WordPress plugin iContact, InfusionSoft form Popup scored 83% from 54 tests.

About plugin

  • Plugin page: icontact-infusion...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.2.4
  • WordPress version: 5.9.2
  • First release: May 30, 2013
  • Latest release: Apr 22, 2016
  • Number of updates: 16
  • Update frequency: every 90.6 days
  • Top authors: cybernetikz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 3,835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼307.97ms] Passed 4 tests

A check of server-side resources used by iContact, InfusionSoft form Popup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3262.16 ▲8.77
Dashboard /wp-admin3.68 ▲0.2738.11 ▼5.15
Posts /wp-admin/edit.php3.90 ▲0.2640.45 ▼0.80
Add New Post /wp-admin/post-new.php7.20 ▲0.2398.03 ▼1,226.57
Media Library /wp-admin/upload.php3.62 ▲0.3230.76 ▲0.63

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: 1 new table, no new options
New tables
wp_shortcode_form

Browser metrics Passed 4 tests

A check of browser resources used by iContact, InfusionSoft form Popup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,926 ▲18415.96 ▲0.349.56 ▲3.132.86 ▲0.57
Dashboard /wp-admin2,905 ▲516.10 ▼0.06118.87 ▼14.91174.63 ▲16.05
Posts /wp-admin/edit.php2,685 ▼93.27 ▲0.0368.80 ▲4.53141.17 ▼4.44
Add New Post /wp-admin/post-new.php1,680 ▲4516.15 ▼3.24420.48 ▼84.37161.19 ▲16.87
Media Library /wp-admin/upload.php1,709 ▲145.57 ▲0.03128.12 ▼35.75211.72 ▼3.52

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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_shortcode_form

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/icontact-infusionsoft-from-popup/add-form.php
    • > /wp-content/plugins/icontact-infusionsoft-from-popup/manage-form.php
    • > /wp-content/plugins/icontact-infusionsoft-from-popup/form-popup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid url: ""
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Layout Add new form), #2 (Layout Manage form), #3 (Add shortcode to the page/post to display the form button), #4 (Sample iContact popup form layout), #5 (Sample InfusionSoft popup form layout)
The official readme.txt might help

icontact-infusionsoft-from-popup/form-popup.php 92% from 13 tests

The principal PHP file in "iContact, InfusionSoft form Popup" v. 1.1 is loaded by WordPress automatically on each request
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 ("icontact-infusionsoft-from-popup.php" instead of "form-popup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,253 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP42984412,053
JavaScript5293121888
CSS35581312

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity163.50
▷ Minimum class complexity130.00
▷ Maximum class complexity197.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.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
25 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png32.05KB15.03KB▼ 53.10%
screenshot-1.png45.90KB19.56KB▼ 57.38%
screenshot-5.png48.42KB19.75KB▼ 59.20%
fancybox/fancybox-y.png0.17KB0.24KB0.00%
fancybox/fancy_close.png1.48KB1.73KB0.00%