84% infusionsoft-one-click-upsell

Code Review | Infusionsoft One-click Upsell

WordPress plugin Infusionsoft One-click Upsell scored84%from 54 tests.

About plugin

  • Plugin page: infusionsoft-one-...
  • Plugin version: 2.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: Dec 18, 2014
  • Number of updates: 31
  • Update frequency: every 11.5 days
  • Top authors: zulugrid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,281 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼4.80ms] Passed 4 tests

A check of server-side resources used by Infusionsoft One-click Upsell
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.99 ▲3.03
Dashboard /wp-admin3.51 ▲0.1748.52 ▼14.65
Posts /wp-admin/edit.php3.63 ▲0.2751.55 ▼0.68
Add New Post /wp-admin/post-new.php6.10 ▲0.2194.15 ▼2.68
Media Library /wp-admin/upload.php3.44 ▲0.2136.75 ▼1.19
Subscription Links /wp-admin/admin.php?page=novaksolutions_upsell_subscription_links3.4031.74
Usage /wp-admin/admin.php?page=novaksolutions_upsell_usage3.4032.71
Product Upsell Links /wp-admin/admin.php?page=novaksolutions_upsell_product_links3.4032.90
Settings /wp-admin/admin.php?page=novaksolutions_upsell_admin_menu3.4037.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Infusionsoft One-click Upsell
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10113.20 ▼1.174.43 ▲2.6039.50 ▲3.10
Dashboard /wp-admin2,262 ▲565.85 ▼0.08102.77 ▼2.4145.89 ▲2.82
Posts /wp-admin/edit.php2,147 ▲472.00 ▼0.0039.97 ▲2.8544.72 ▲8.53
Add New Post /wp-admin/post-new.php1,594 ▲6323.29 ▲0.00668.20 ▲8.6261.58 ▼2.35
Media Library /wp-admin/upload.php1,450 ▲474.19 ▼0.04104.17 ▼4.0051.92 ▲11.27
Subscription Links /wp-admin/admin.php?page=novaksolutions_upsell_subscription_links8252.1926.0827.52
Usage /wp-admin/admin.php?page=novaksolutions_upsell_usage9452.0222.9531.24
Product Upsell Links /wp-admin/admin.php?page=novaksolutions_upsell_product_links8252.1925.0527.51
Settings /wp-admin/admin.php?page=novaksolutions_upsell_admin_menu1,0052.1823.4834.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infusionsoft-one-click-upsell/InfusionsoftOneClickUpsell.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: upsell, javascript, infusionsoft, one-click

infusionsoft-one-click-upsell/infusionsoft-one-click-upsell.php Passed 13 tests

The main file in "Infusionsoft One-click Upsell" v. 2.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
Easily upsell Infusionsoft customers from within WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected899 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2217173873
JavaScript122426

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity126.00
▷ Minimum class complexity126.00
▷ Maximum class complexity126.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin