83% multisite-store-viewer

Code Review | Multisite Store Viewer

WordPress plugin Multisite Store Viewer scored83%from 54 tests.

About plugin

  • Plugin page: multisite-store-v...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6
  • WordPress version: 6.3.1
  • First release: Mar 30, 2016
  • Latest release: Jun 29, 2021
  • Number of updates: 40
  • Update frequency: every 47.9 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /3,839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Multisite Store Viewer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.26 ▲1.18
Dashboard /wp-admin3.31 ▲0.0061.80 ▲0.45
Posts /wp-admin/edit.php3.36 ▲0.0054.27 ▼0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.08 ▼7.23
Media Library /wp-admin/upload.php3.23 ▲0.0040.04 ▲0.44

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Multisite Store Viewer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.012.02 ▲0.4141.86 ▼1.86
Dashboard /wp-admin2,192 ▲155.67 ▼0.0289.21 ▼12.0239.06 ▼7.69
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0639.88 ▼2.1136.10 ▼0.56
Add New Post /wp-admin/post-new.php1,526 ▼823.24 ▲5.10669.18 ▲47.2860.12 ▼7.34
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.10107.47 ▼1.8846.12 ▼0.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/multisite-store-viewer/admin/instructions.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

multisite-store-viewer/ced-multisite-list.php 85% from 13 tests

This is the main PHP file of "Multisite Store Viewer" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multisite-store-viewer.php" instead of "ced-multisite-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected853 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP659105667
PO File1343588
CSS311062
JavaScript3163836

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/shortcode.png20.75KB8.20KB▼ 60.48%