84% share-that-cart

Code Review | Share That Cart

WordPress plugin Share That Cart scored84%from 54 tests.

About plugin

  • Plugin page: share-that-cart
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2020
  • Latest release: Apr 12, 2023
  • Number of updates: 13
  • Update frequency: every 83.8 days
  • Top authors: rider7991 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.02ms] Passed 4 tests

Server-side resources used by Share That Cart
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.97 ▲3.45
Dashboard /wp-admin3.31 ▲0.0049.08 ▼1.70
Posts /wp-admin/edit.php3.36 ▲0.0045.52 ▼5.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.37 ▼6.58
Media Library /wp-admin/upload.php3.23 ▲0.0034.26 ▼2.42

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Share That Cart
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.181.80 ▼0.1842.21 ▲1.08
Dashboard /wp-admin2,206 ▲214.84 ▼0.98106.28 ▲3.5542.55 ▼0.64
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0235.11 ▼4.8032.07 ▼6.27
Add New Post /wp-admin/post-new.php1,533 ▼023.60 ▲0.34632.77 ▼36.2048.91 ▼20.66
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0294.28 ▼10.6539.93 ▼9.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 return non-empty strings:
    • > /wp-content/plugins/share-that-cart/share-that-cart.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: share, cart, sharing cart, share cart via link, mateusz-styrna...

share-that-cart/share-that-cart.php Passed 13 tests

The main file in "Share That Cart" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
This plugin allows you to share your cart via link with others.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected186 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP315974
JavaScript15036
PO File13331
Sass14026
CSS11119

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin