10% shopp-campaign-monitor

Code Review | Shopp + Campaign Monitor

WordPress plugin Shopp + Campaign Monitor scored 10% from 54 tests.

About plugin

  • Plugin page: shopp-campaign-mo...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 5.8.1
  • First release: Nov 25, 2011
  • Latest release: Aug 25, 2014
  • Number of updates: 16
  • Update frequency: every 62.8 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,765 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/shopp-campaign-monitor/shopp-campaign-monitor.php+46
    Accessing static property Shopp_CampaignMonitor::$list_id as non static

Server metrics [RAM: ▼1.89MB] [CPU: ▼195.14ms] Passed 4 tests

An overview of server-side resources used by Shopp + Campaign Monitor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.985.37 ▼24.80
Dashboard /wp-admin1.76 ▼1.298.53 ▼35.58
Posts /wp-admin/edit.php1.76 ▼1.357.08 ▼38.79
Add New Post /wp-admin/post-new.php1.76 ▼3.676.13 ▼675.41
Media Library /wp-admin/upload.php1.76 ▼1.245.80 ▼30.77

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shopp + Campaign Monitor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲7615.96 ▲0.0811.90 ▲1.8949.86 ▼1.03
Dashboard /wp-admin2,975 ▲445.89 ▼0.07143.68 ▼13.52110.72 ▼6.57
Posts /wp-admin/edit.php2,741 ▲22.71 ▼0.0072.34 ▲2.1093.78 ▼1.24
Add New Post /wp-admin/post-new.php1,685 ▲218.71 ▲0.41416.84 ▲37.54119.41 ▲4.85
Media Library /wp-admin/upload.php1,809 ▲25.02 ▼0.02167.60 ▲15.68124.07 ▼0.89

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
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/shopp-campaign-monitor/shopp-campaign-monitor.php+46
    Accessing static property Shopp_CampaignMonitor::$list_id as non static

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)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-campaign-monitor/shopp-campaign-monitor.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Shopp + Campaign Monitor WordPress admin page.), #2 (An additional view of the Shopp + Campaign Monitor WordPress admin page.)
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

shopp-campaign-monitor/shopp-campaign-monitor.php 92% from 13 tests

The primary PHP file in "Shopp + Campaign Monitor" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/shopp-campaign-monitor/inc/class/GoDaddyClass2CA.crt
1,167 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP73095571,154
CSS13013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.86
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods66
▷ Static methods11.52%
▷ Public methods66100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.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.34MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png132.97KB47.13KB▼ 64.56%
images/shopp-email-marketing-opt-in.png25.97KB7.39KB▼ 71.54%
screenshot-2.png191.81KB66.17KB▼ 65.50%