10% list-stores-category-dokan

Code Review | List Stores by Category for Dokan

WordPress plugin List Stores by Category for Dokan scored10%from 54 tests.

About plugin

  • Plugin page: list-stores-categ...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2021
  • Latest release: Jun 8, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: xiberia (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,282 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/list-stores-category-dokan/inc/class.sc-dependency-checker.php+23
    Undefined variable: _message

Server metrics [RAM: ▼1.89MB] [CPU: ▼54.61ms] Passed 4 tests

A check of server-side resources used by List Stores by Category for Dokan
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.81 ▼39.60
Dashboard /wp-admin2.12 ▼1.196.08 ▼51.40
Posts /wp-admin/edit.php2.12 ▼1.245.53 ▼42.28
Add New Post /wp-admin/post-new.php2.12 ▼3.775.92 ▼85.16
Media Library /wp-admin/upload.php2.12 ▼1.114.84 ▼30.60

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by List Stores by Category for Dokan
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.26 ▼0.501.63 ▼0.3944.06 ▲0.45
Dashboard /wp-admin2,198 ▲245.60 ▲0.0783.52 ▼17.4938.71 ▼6.95
Posts /wp-admin/edit.php2,101 ▲42.03 ▲0.0137.15 ▼1.2935.79 ▼1.77
Add New Post /wp-admin/post-new.php1,596 ▲7022.34 ▼0.78671.79 ▼31.4536.20 ▼16.64
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.0796.81 ▼13.3641.69 ▼5.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/list-stores-category-dokan/inc/class.sc-dependency-checker.php+23
    Undefined variable: _message
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: category, marketplace, woocommerce, shortcode, list...

list-stores-category-dokan/list-stores-category-dokan.php Passed 13 tests

The primary PHP file in "List Stores by Category for Dokan" version 1.0.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
Create stores list of Dokan stores based on store category

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected214 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34347203
CSS13011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.50
▷ Minimum class complexity4.00
▷ Maximum class complexity17.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods866.67%
▷ Protected methods00.00%
▷ Private methods433.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin