89% shop-feed-for-instagram-by-snapppt

Code Review | Shoppable Social Media Galleries by Sauce

WordPress plugin Shoppable Social Media Galleries by Sauce scored89%from 54 tests.

About plugin

  • Plugin page: shop-feed-for-ins...
  • Plugin version: 1.1.13
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2016
  • Latest release: Oct 10, 2023
  • Number of updates: 39
  • Update frequency: every 63.9 days
  • Top authors: buttercoffeedeveloper (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

4,000+ active /129,650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.63ms] Passed 4 tests

An overview of server-side resources used by Shoppable Social Media Galleries by Sauce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.71 ▲3.81
Dashboard /wp-admin3.33 ▲0.0248.91 ▲0.50
Posts /wp-admin/edit.php3.38 ▲0.0244.98 ▲0.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.31 ▼7.03
Media Library /wp-admin/upload.php3.26 ▲0.0238.51 ▲4.42

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Shoppable Social Media Galleries by Sauce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.35 ▼0.211.74 ▲0.1843.47 ▲1.31
Dashboard /wp-admin2,203 ▲265.53 ▼0.0483.58 ▼0.5467.46 ▲24.31
Posts /wp-admin/edit.php2,117 ▲141.97 ▲0.0033.98 ▼4.2233.43 ▼2.25
Add New Post /wp-admin/post-new.php1,697 ▲17122.01 ▼1.13732.22 ▲84.2056.62 ▲9.31
Media Library /wp-admin/upload.php1,420 ▲174.21 ▼0.03111.15 ▲13.5974.79 ▲28.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

shop-feed-for-instagram-by-snapppt/snapppt.php 92% from 13 tests

Analyzing the main PHP file in "Shoppable Social Media Galleries by Sauce" version 1.1.13
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shop-feed-for-instagram-by-snapppt.php" instead of "snapppt.php")

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
Success! There were no dangerous files found in this plugin469 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP67039179
CSS2260144
HTML1201103
JavaScript17129
SVG10014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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.23MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/snapppt-logo-square-small.png0.50KB0.40KB▼ 20.82%
images/snapppt-logo-square.png3.21KB1.45KB▼ 54.70%
images/snapppt-notice-background.png235.15KB99.70KB▼ 57.60%