10% shopp-icontact

Code Review | Shopp + iContact

WordPress plugin Shopp + iContact scored 10% from 54 tests.

About plugin

  • Plugin page: shopp-icontact
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 5.9.2
  • First release: Dec 7, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 6
  • Update frequency: every 162.7 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 949 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/shopp-icontact/shopp-icontact.php+50
    Accessing static property Shopp_iContact::$username as non static

Server metrics [RAM: ▼2.38MB] [CPU: ▼341.24ms] Passed 4 tests

Analyzing server-side resources used by Shopp + iContact
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.99 ▼1.525.40 ▼49.24
Dashboard /wp-admin2.01 ▼1.404.49 ▼29.62
Posts /wp-admin/edit.php2.01 ▼1.634.94 ▼32.74
Add New Post /wp-admin/post-new.php2.01 ▼4.964.72 ▼1,253.37
Media Library /wp-admin/upload.php2.01 ▼1.294.01 ▼27.32

Server storage [IO: ▲0.27MB] [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: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Shopp + iContact
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲5515.85 ▲0.216.32 ▲0.172.53 ▲0.51
Dashboard /wp-admin2,894 ▲336.11 ▼0.04117.83 ▼15.12154.42 ▼0.35
Posts /wp-admin/edit.php2,693 ▼13.24 ▲0.0164.10 ▲1.05148.62 ▲9.99
Add New Post /wp-admin/post-new.php1,663 ▼2716.36 ▼4.98411.46 ▼23.36156.11 ▲3.23
Media Library /wp-admin/upload.php1,697 ▼15.49 ▲0.00145.74 ▲1.10195.10 ▲0.96

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/shopp-icontact/shopp-icontact.php+50
    Accessing static property Shopp_iContact::$username as non static

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-icontact/shopp-icontact.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (The Shopp + iContact WordPress admin page.), #2 (An additional view of the Shopp + iContact WordPress admin page.)
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

shopp-icontact/shopp-icontact.php Passed 13 tests

"Shopp + iContact" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
133 characters long description:
Customers who opt-in to email marketing from your WordPress ecommerce site during checkout are added to a specified list on iContact.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin554 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28189541
CSS13013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity21.00
▷ Minimum class complexity13.00
▷ Maximum class complexity29.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods2184.00%
▷ Protected methods14.00%
▷ Private methods312.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png76.94KB25.31KB▼ 67.10%
images/shopp-email-marketing-opt-in.png25.97KB7.39KB▼ 71.54%
screenshot-1.png130.09KB45.46KB▼ 65.06%