10% shopp-mailchimp

Code Review | Shopp + MailChimp

WordPress plugin Shopp + MailChimp scored10%from 54 tests.

About plugin

  • Plugin page: shopp-mailchimp
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Nov 23, 2011
  • Latest release: Aug 25, 2014
  • Number of updates: 12
  • Update frequency: every 83.8 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /6,055 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/shopp-mailchimp/shopp-mailchimp.php+46
    Accessing static property Shopp_MailChimp::$api_key as non static

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.45ms] Passed 4 tests

A check of server-side resources used by Shopp + MailChimp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.449.43 ▼30.78
Dashboard /wp-admin2.05 ▼1.265.38 ▼41.40
Posts /wp-admin/edit.php2.05 ▼1.315.66 ▼43.56
Add New Post /wp-admin/post-new.php2.05 ▼3.846.41 ▼90.04
Media Library /wp-admin/upload.php2.05 ▼1.185.53 ▼26.85

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Shopp + MailChimp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.72 ▲0.441.87 ▲0.2744.41 ▲8.56
Dashboard /wp-admin2,197 ▲175.61 ▼0.0094.61 ▲6.0841.23 ▼2.88
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0733.61 ▼6.9335.53 ▼0.10
Add New Post /wp-admin/post-new.php1,530 ▼823.30 ▲0.24639.28 ▲53.3546.33 ▼1.64
Media Library /wp-admin/upload.php1,399 ▼44.22 ▼0.0795.23 ▼10.4645.02 ▼2.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/shopp-mailchimp/shopp-mailchimp.php+46
    Accessing static property Shopp_MailChimp::$api_key as non static
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 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-mailchimp/shopp-mailchimp.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (The Shopp + MailChimp WordPress admin page.), #2 (An additional view of the Shopp + MailChimp WordPress admin page.)
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "Shopp + MailChimp" version 1.3
134 characters long description:
Customers who opt-in to email marketing from your WordPress ecommerce site during checkout are added to a specified list on MailChimp.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,037 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21831,6491,024
CSS13013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity17.00
▷ Minimum class complexity13.00
▷ Maximum class complexity21.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods109
▷ Static methods10.92%
▷ Public methods109100.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
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-2.png188.93KB63.50KB▼ 66.39%
images/shopp-email-marketing-opt-in.png25.97KB7.39KB▼ 71.54%
screenshot-1.png131.02KB45.96KB▼ 64.92%