10% dokan-store-carousel

Code Review | Dokan Store Carousel

WordPress plugin Dokan Store Carousel scored10%from 54 tests.

About plugin

  • Plugin page: dokan-store-carousel
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2020
  • Latest release: Nov 10, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sohanhossain (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

90+ active /2,741 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/dokan-store-carousel/inc/class.sc-dependency-checker.php+23
    Undefined variable: _message

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.02ms] Passed 4 tests

This is a short check of server-side resources used by Dokan Store Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.38 ▼35.21
Dashboard /wp-admin2.09 ▼1.256.90 ▼53.59
Posts /wp-admin/edit.php2.09 ▼1.266.27 ▼38.09
Add New Post /wp-admin/post-new.php2.09 ▼3.795.44 ▼85.19
Media Library /wp-admin/upload.php2.09 ▼1.145.19 ▼29.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dokan Store Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.23 ▼1.436.09 ▲4.6140.04 ▼1.68
Dashboard /wp-admin2,218 ▲265.83 ▲0.89101.59 ▼5.0239.04 ▼6.73
Posts /wp-admin/edit.php2,103 ▲322.14 ▲0.1240.43 ▲3.8436.71 ▲0.81
Add New Post /wp-admin/post-new.php1,553 ▲3022.72 ▼0.58657.77 ▼8.5160.78 ▲5.93
Media Library /wp-admin/upload.php1,400 ▲184.33 ▲0.1497.46 ▼1.7442.80 ▼5.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/dokan-store-carousel/inc/class.sc-dependency-checker.php+23
    Undefined variable: _message
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

dokan-store-carousel/dokan-store-carousel.php Passed 13 tests

The main file in "Dokan Store Carousel" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Create carousels of Dokan stores based on store category

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected150 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP34651146
CSS2002
JavaScript2222

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin