94% shoppable

Code Review | Shoppable Marketplace

WordPress plugin Shoppable Marketplace scored 94% from 54 tests.

About plugin

  • Plugin page: shoppable
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.5.38+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 5.8.1
  • First release: Aug 27, 2014
  • Latest release: Aug 28, 2018
  • Number of updates: 20
  • Update frequency: every 73.3 days
  • Top authors: 72LuxCEO (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 956 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Shoppable Marketplace
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.0522.64 ▼16.05
Dashboard /wp-admin3.09 ▲0.0349.66 ▼2.31
Posts /wp-admin/edit.php3.14 ▲0.0243.00 ▼26.01
Add New Post /wp-admin/post-new.php5.45 ▲0.0191.93 ▼570.72
Media Library /wp-admin/upload.php3.03 ▲0.0333.38 ▲3.25
Shoppable /wp-admin/options-general.php?page=shoppable_mp_options3.0030.31

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options
shoppable_mp_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shoppable Marketplace
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,268 ▲63119.66 ▲3.94103.44 ▲93.3078.42 ▲26.67
Dashboard /wp-admin2,975 ▲385.90 ▼0.09148.50 ▼18.94110.09 ▼4.74
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0062.81 ▼1.8781.16 ▲2.54
Add New Post /wp-admin/post-new.php1,503 ▼10118.44 ▼0.41387.68 ▲8.63109.47 ▲1.70
Media Library /wp-admin/upload.php1,812 ▲55.04 ▼0.00154.39 ▼1.08114.47 ▼5.87
Shoppable /wp-admin/options-general.php?page=shoppable_mp_options1,3152.0862.7877.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
Even though no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shoppable/shoppable.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #2, #3 in shoppable/assets to your readme.txt
You can look at the official readme.txt

shoppable/shoppable.php Passed 13 tests

Analyzing the main PHP file in "Shoppable Marketplace" version 2.0.1
85 characters long description:
Makes it easy to setup Shoppable Marketplace and display products and shopping cart.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin8,669 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37765424,775
CSS43822693,741
PHP13254153

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png16.37KB6.50KB▼ 60.32%
assets/images/close2.png0.28KB0.25KB▼ 8.51%
assets/images/tag-grey.png0.58KB0.48KB▼ 17.88%