94% infusionsoft-landing-pages

Code Review | Infusionsoft Landing Pages

WordPress plugin Infusionsoft Landing Pages scored 94% from 54 tests.

About plugin

  • Plugin page: infusionsoft-land...
  • Plugin version: 1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Feb 7, 2018
  • Latest release: Oct 15, 2019
  • Number of updates: 16
  • Update frequency: every 38.5 days
  • Top authors: Infusionsoft (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active / 19,220 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼290.36ms] Passed 4 tests

This is a short check of server-side resources used by Infusionsoft Landing Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0765.16 ▲13.01
Dashboard /wp-admin3.50 ▲0.0934.50 ▲2.49
Posts /wp-admin/edit.php3.72 ▲0.0839.88 ▲2.27
Add New Post /wp-admin/post-new.php6.98 ▼0.0197.62 ▼1,165.52
Media Library /wp-admin/upload.php3.38 ▲0.0824.76 ▼0.66
Infusionsoft Landing Pages /wp-admin/options-general.php?page=ilp-landingpages3.3522.49

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Infusionsoft Landing Pages: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3415.99 ▲0.379.40 ▲2.812.41 ▼0.40
Dashboard /wp-admin2,897 ▲426.14 ▼0.05116.16 ▼23.72161.40 ▼0.65
Posts /wp-admin/edit.php2,693 ▼13.24 ▲0.0088.35 ▲26.99138.57 ▼1.47
Add New Post /wp-admin/post-new.php1,755 ▲321.61 ▲0.61461.00 ▲17.39157.38 ▼2.34
Media Library /wp-admin/upload.php1,700 ▲55.50 ▼0.03133.46 ▼3.89184.87 ▼2.78
Infusionsoft Landing Pages /wp-admin/options-general.php?page=ilp-landingpages1,1762.5156.4399.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=ilp-landingpages
    • > Network (severe)
    https://landingpages.infusionsoft.com/api/v1/sites?limit=20&offset=0 - Failed to load resource: the server responded with a status of 401 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

infusionsoft-landing-pages/index.php 92% from 13 tests

The primary PHP file in "Infusionsoft Landing Pages" version 1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("infusionsoft-landing-pages.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin534 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36324399
JavaScript123192
CSS18043

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity37.50
▷ Minimum class complexity37.00
▷ Maximum class complexity38.00
Average method complexity6.62
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods538.46%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png8.75KB4.45KB▼ 49.07%