10% shopp-constant-contact

Code Review | Shopp + Constant Contact

WordPress plugin Shopp + Constant Contact scored10%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,350 total downloads

Benchmarks

Plugin footprint 40% 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
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/shopp-constant-contact/shopp-constant-contact.php+48
    Accessing static property Shopp_ConstantContact::$username as non static

Server metrics [RAM: ▼1.63MB] [CPU: ▼54.49ms] Passed 4 tests

This is a short check of server-side resources used by Shopp + Constant Contact
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.116.13 ▼32.41
Dashboard /wp-admin2.37 ▼0.938.20 ▼47.54
Posts /wp-admin/edit.php2.37 ▼0.987.26 ▼49.25
Add New Post /wp-admin/post-new.php2.37 ▼3.5110.47 ▼88.74
Media Library /wp-admin/upload.php2.37 ▼0.867.35 ▼29.95

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Shopp + Constant Contact
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.48 ▲0.281.73 ▼0.2043.71 ▲0.73
Dashboard /wp-admin2,211 ▲235.90 ▲0.01107.40 ▲1.0544.42 ▼2.25
Posts /wp-admin/edit.php2,091 ▲232.01 ▲0.0234.68 ▼1.1234.22 ▼3.47
Add New Post /wp-admin/post-new.php1,516 ▼1917.64 ▼5.56678.67 ▼31.4166.65 ▲2.61
Media Library /wp-admin/upload.php1,390 ▲24.22 ▲0.0196.48 ▼16.6742.75 ▼7.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/shopp-constant-contact/shopp-constant-contact.php+48
    Accessing static property Shopp_ConstantContact::$username as non static
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-constant-contact/shopp-constant-contact.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (The Shopp + Constant Contact WordPress admin page.), #2 (An additional view of the Shopp + Constant Contact WordPress admin page.)
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

shopp-constant-contact/shopp-constant-contact.php 92% from 13 tests

Analyzing the main PHP file in "Shopp + Constant Contact" version 1.3
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

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 detected1,048 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21753221,035
CSS13013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity59.00
▷ Minimum class complexity13.00
▷ Maximum class complexity105.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods3895.00%
▷ Protected methods00.00%
▷ Private methods25.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
3 PNG files occupy 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png226.40KB74.14KB▼ 67.25%
screenshot-1.png130.80KB46.02KB▼ 64.82%
images/shopp-email-marketing-opt-in.png25.97KB7.39KB▼ 71.54%