10% shopp-sendloop

Code Review | Shopp + Sendloop

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

About plugin

  • Plugin page: shopp-sendloop
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2011
  • Latest release: Aug 25, 2014
  • Number of updates: 14
  • Update frequency: every 71.3 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,483 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/shopp-sendloop/shopp-sendloop.php+47
    Accessing static property Shopp_Sendloop::$APIKey as non static

Server metrics [RAM: ▼1.88MB] [CPU: ▼49.14ms] Passed 4 tests

Server-side resources used by Shopp + Sendloop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.355.96 ▼33.49
Dashboard /wp-admin2.13 ▼1.178.17 ▼41.18
Posts /wp-admin/edit.php2.13 ▼1.227.75 ▼36.11
Add New Post /wp-admin/post-new.php2.13 ▼3.766.79 ▼85.76
Media Library /wp-admin/upload.php2.13 ▼1.106.37 ▼26.96

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Shopp + Sendloop
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.25 ▼1.061.74 ▲0.1044.91 ▼10.93
Dashboard /wp-admin2,205 ▲205.79 ▼0.1197.96 ▼4.2038.39 ▼4.19
Posts /wp-admin/edit.php2,091 ▲52.04 ▲0.0733.37 ▼3.6435.13 ▲1.10
Add New Post /wp-admin/post-new.php1,530 ▼323.67 ▲0.58673.61 ▲7.3163.04 ▲8.23
Media Library /wp-admin/upload.php1,390 ▲24.22 ▼0.0299.87 ▼1.9045.31 ▲1.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/shopp-sendloop/shopp-sendloop.php+47
    Accessing static property Shopp_Sendloop::$APIKey as non static
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-sendloop/shopp-sendloop.php:38

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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Shopp + Sendloop WordPress admin page.), #2 (An additional view of the Shopp + Sendloop WordPress admin page.)
You can take inspiration from this readme.txt

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

"Shopp + Sendloop" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 Sendloop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin382 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26729369
CSS13013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity7.00
▷ Maximum class complexity13.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.38MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png134.37KB47.52KB▼ 64.63%
images/shopp-email-marketing-opt-in.png25.97KB7.39KB▼ 71.54%
screenshot-2.png231.96KB76.36KB▼ 67.08%