10% shopp-mad-mimi

Code Review | Shopp + Mad Mimi

WordPress plugin Shopp + Mad Mimi scored10%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,389 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/shopp-mad-mimi/shopp-mad-mimi.php+47
    Accessing static property Shopp_MadMimi::$email as non static

Server metrics [RAM: ▼1.59MB] [CPU: ▼50.11ms] Passed 4 tests

Server-side resources used by Shopp + Mad Mimi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.077.02 ▼30.65
Dashboard /wp-admin2.42 ▼0.897.84 ▼42.01
Posts /wp-admin/edit.php2.42 ▼0.947.57 ▼43.32
Add New Post /wp-admin/post-new.php2.42 ▼3.477.58 ▼84.44
Media Library /wp-admin/upload.php2.42 ▼0.817.46 ▼29.07

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Shopp + Mad Mimi: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.32 ▲0.191.89 ▲0.2543.88 ▲3.21
Dashboard /wp-admin2,200 ▲235.63 ▼0.0287.26 ▼2.4642.29 ▼1.47
Posts /wp-admin/edit.php2,102 ▲22.00 ▼0.0133.30 ▼9.3232.90 ▼5.38
Add New Post /wp-admin/post-new.php1,528 ▼823.02 ▼0.14685.37 ▲7.7661.15 ▼2.13
Media Library /wp-admin/upload.php1,399 ▼14.24 ▲0.0697.87 ▼7.9642.24 ▼2.47

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
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/shopp-mad-mimi/shopp-mad-mimi.php+47
    Accessing static property Shopp_MadMimi::$email as non static
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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-mad-mimi/shopp-mad-mimi.php:38

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (The Shopp + Mad Mimi WordPress admin page.), #2 (An additional view of the Shopp + Mad Mimi WordPress admin page.)
Please take inspiration from this readme.txt

shopp-mad-mimi/shopp-mad-mimi.php Passed 13 tests

The main file in "Shopp + Mad Mimi" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 Mad Mimi.

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
There were no executable files found in this plugin1,174 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32082941,161
CSS13013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity84.33
▷ Minimum class complexity13.00
▷ Maximum class complexity215.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods82
▷ Static methods1012.20%
▷ Public methods4251.22%
▷ Protected methods00.00%
▷ Private methods4048.78%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.35MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png196.68KB61.03KB▼ 68.97%
screenshot-1.png131.09KB46.29KB▼ 64.69%
images/shopp-email-marketing-opt-in.png25.97KB7.39KB▼ 71.54%