89% multistore-multivendor

Code Review | Multistore Multivendor

WordPress plugin Multistore Multivendor scored 89% from 54 tests.

About plugin

  • Plugin page: multistore-multiv...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2021
  • Latest release: Feb 24, 2023
  • Number of updates: 4
  • Update frequency: every 140.5 days
  • Top authors: codingmall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by Multistore Multivendor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0534.59 ▼17.49
Dashboard /wp-admin3.33 ▲0.0246.10 ▼3.55
Posts /wp-admin/edit.php3.38 ▲0.0248.75 ▲0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.96 ▼24.29
Media Library /wp-admin/upload.php3.25 ▲0.0236.26 ▲1.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Multistore Multivendor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.40 ▲0.191.84 ▼0.1743.11 ▼4.92
Dashboard /wp-admin2,206 ▲185.84 ▼0.03102.94 ▼13.2539.79 ▼8.89
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.87 ▲0.4735.72 ▲1.33
Add New Post /wp-admin/post-new.php1,521 ▼1323.39 ▲0.22603.08 ▼73.9166.10 ▲15.65
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0296.93 ▼6.1541.21 ▼1.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: multisite, author, multistore, multi domain, multi-vendor...

multistore-multivendor/index.php 69% from 13 tests

The principal PHP file in "Multistore Multivendor" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multistore-multivendor.php" instead of "index.php")
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1292970

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.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