84% wc-share-cart-url

Code Review | WC Share Cart URL

WordPress plugin WC Share Cart URL scored84%from 54 tests.

About plugin

  • Plugin page: wc-share-cart-url
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: May 3, 2022
  • Latest release: Aug 5, 2022
  • Number of updates: 18
  • Update frequency: every 5.2 days
  • Top authors: wckalkulator (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /1,974 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WC Share Cart URL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.52 ▼4.52
Dashboard /wp-admin3.33 ▲0.0243.18 ▼11.15
Posts /wp-admin/edit.php3.38 ▲0.0250.77 ▲2.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.30 ▼16.69
Media Library /wp-admin/upload.php3.25 ▲0.0239.55 ▲4.54

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WC Share Cart URL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.141.68 ▼0.2336.74 ▼8.03
Dashboard /wp-admin2,209 ▲214.84 ▼1.05112.69 ▼5.6942.82 ▼4.50
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0138.48 ▲1.9637.99 ▲1.37
Add New Post /wp-admin/post-new.php1,544 ▲118.03 ▼0.18603.69 ▼11.7457.56 ▲6.32
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0795.68 ▼12.4341.62 ▼3.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wc-share-cart-url/wc-share-cart-url.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
Attributes that need to be fixed:
  • Contributors: Contributors not specified
The official readme.txt might help

wc-share-cart-url/wc-share-cart-url.php 92% from 13 tests

The main PHP script in "WC Share Cart URL" version 1.1.1 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected115 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1311495
Markdown18020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected