10% marketplaces

Code Review | Marketplaces

WordPress plugin Marketplaces scored 10% from 54 tests.

About plugin

  • Plugin page: marketplaces
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.9.2
  • First release: Mar 6, 2014
  • Latest release: Mar 22, 2014
  • Number of updates: 12
  • Update frequency: every 1.3 days
  • Top authors: enishant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,888 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/marketplaces/index.php+116
    Trying to get property 'first_name' of non-object

Server metrics [RAM: ▼0.01MB] [CPU: ▼309.89ms] Passed 4 tests

Server-side resources used by Marketplaces
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0255.34 ▼2.50
Dashboard /wp-admin3.42 ▲0.0234.33 ▼4.94
Posts /wp-admin/edit.php3.66 ▲0.0238.82 ▲0.86
Add New Post /wp-admin/post-new.php6.90 ▼0.07105.55 ▼1,232.63
Media Library /wp-admin/upload.php3.31 ▲0.0225.25 ▲0.52

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Marketplaces
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2115.92 ▼0.075.55 ▼2.422.28 ▲0.24
Dashboard /wp-admin2,888 ▲356.15 ▼0.10119.19 ▼11.98166.73 ▲3.67
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0064.34 ▼1.76144.03 ▼6.64
Add New Post /wp-admin/post-new.php1,711 ▲1520.88 ▼0.26428.89 ▼24.95212.60 ▲15.91
Media Library /wp-admin/upload.php1,692 ▼35.52 ▼0.00161.14 ▲4.85243.70 ▼2.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/marketplaces/index.php:100

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

marketplaces/index.php 85% from 13 tests

The main PHP file in "Marketplaces" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("marketplaces.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

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
Success! There were no dangerous files found in this plugin129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin