83% ontraport-to-wishlist-integration

Code Review | ONTRAPORT to Wishlist Integration

WordPress plugin ONTRAPORT to Wishlist Integration scored83%from 54 tests.

About plugin

  • Plugin page: ontraport-to-wish...
  • Plugin version: 1.17
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 6.3.1
  • First release: Feb 19, 2015
  • Latest release: Aug 24, 2018
  • Number of updates: 30
  • Update frequency: every 42.7 days
  • Top authors: itmooti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,049 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.99ms] Passed 4 tests

Analyzing server-side resources used by ONTRAPORT to Wishlist Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.13 ▼4.92
Dashboard /wp-admin3.42 ▲0.1242.95 ▼9.21
Posts /wp-admin/edit.php3.54 ▲0.1847.69 ▲0.73
Add New Post /wp-admin/post-new.php6.01 ▲0.1288.64 ▼4.23
Media Library /wp-admin/upload.php3.35 ▲0.1233.71 ▼1.58
Wishlist Helper Settings /wp-admin/options-general.php?page=ontraport-wishlist-helper3.3136.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 10 new options
New WordPress options
ontraport-wishlist-helper_plugin_link_support_link
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
ontraport-wishlist-helper_plugin_authenticated
theysaidso_admin_options
db_upgraded
ontraport-wishlist-helper_message
ontraport-wishlist-helper_plugin_link_license_link

Browser metrics Passed 4 tests

A check of browser resources used by ONTRAPORT to Wishlist Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.25 ▼0.101.62 ▼0.0438.45 ▼5.58
Dashboard /wp-admin2,215 ▲355.60 ▼0.0291.88 ▼6.8743.76 ▲0.79
Posts /wp-admin/edit.php2,123 ▲232.11 ▲0.1243.41 ▲7.6938.45 ▲9.82
Add New Post /wp-admin/post-new.php1,548 ▲2222.91 ▼0.04593.81 ▼31.0658.19 ▼11.10
Media Library /wp-admin/upload.php1,417 ▲144.21 ▼0.01101.99 ▲2.9345.02 ▲2.81
Wishlist Helper Settings /wp-admin/options-general.php?page=ontraport-wishlist-helper8152.0425.7427.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • ontraport-wishlist-helper_plugin_authenticated
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • ontraport-wishlist-helper_plugin_link_license_link
    • theysaidso_admin_options
    • widget_recent-comments
    • ontraport-wishlist-helper_message
    • db_upgraded
    • ontraport-wishlist-helper_plugin_link_support_link

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ontraport-to-wishlist-integration/ontraport-wishlist-integration.php:20

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Example of how the plugin admin area looks), #2 (Rule in Ontraport to Add Membership Level to User), #3 (Rule in Ontraport to Remove Membership Level from User), #4 (Rule in Ontraport to Add Payment Fail tag and remove Membership Level from User), #5 (Rule in Ontraport to Remove Payment Fail tag and add Membership Level to User)
Please take inspiration from this readme.txt

ontraport-to-wishlist-integration/ontraport-wishlist-integration.php 85% from 13 tests

Analyzing the main PHP file in "ONTRAPORT to Wishlist Integration" version 1.17
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ontraport-to-wishlist-integration.php" instead of "ontraport-wishlist-integration.php")

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
Good job! No executable or dangerous file extensions detected504 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17135504

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity87.00
▷ Minimum class complexity87.00
▷ Maximum class complexity87.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.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

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.43MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png21.31KB9.39KB▼ 55.96%
assets/screenshot-4.png40.73KB16.58KB▼ 59.30%
assets/banner-772x250.png65.18KB28.05KB▼ 56.97%
assets/screenshot-3.png41.97KB16.72KB▼ 60.17%
assets/screenshot-2.png33.82KB14.67KB▼ 56.62%