10% niz-stores-carousel-for-dokan

Code Review | Niz Stores Carousel for Dokan

WordPress plugin Niz Stores Carousel for Dokan scored10%from 54 tests.

About plugin

  • Plugin page: niz-stores-carous...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Mar 24, 2020
  • Latest release: Mar 24, 2020
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: nizapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,757 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
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/niz-stores-carousel-for-dokan/inc/class.niz-dependency-checker.php+22
    Undefined variable: _message

Server metrics [RAM: ▼1.91MB] [CPU: ▼68.55ms] Passed 4 tests

A check of server-side resources used by Niz Stores Carousel for Dokan
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.397.14 ▼38.55
Dashboard /wp-admin2.10 ▼1.219.45 ▼59.33
Posts /wp-admin/edit.php2.10 ▼1.268.21 ▼66.20
Add New Post /wp-admin/post-new.php2.10 ▼3.797.08 ▼109.83
Media Library /wp-admin/upload.php2.10 ▼1.146.60 ▼38.84

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Niz Stores Carousel for Dokan
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6813.93 ▼0.432.52 ▲0.7861.04 ▲12.73
Dashboard /wp-admin2,207 ▲335.50 ▼0.17116.31 ▼8.7051.55 ▲0.18
Posts /wp-admin/edit.php2,119 ▲161.96 ▼0.0743.40 ▼9.3736.99 ▼9.61
Add New Post /wp-admin/post-new.php1,541 ▲13721.14 ▲3.27864.65 ▲168.1059.71 ▲1.07
Media Library /wp-admin/upload.php1,412 ▲124.18 ▼0.02128.70 ▲1.4859.00 ▲5.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/niz-stores-carousel-for-dokan/inc/class.niz-dependency-checker.php+22
    Undefined variable: _message
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/niz-stores-carousel-for-dokan/niz_dokansc.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • 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)
You can take inspiration from this readme.txt

niz-stores-carousel-for-dokan/niz_dokansc.php 77% from 13 tests

"Niz Stores Carousel for Dokan" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("niz-stores-carousel-for-dokan.php" instead of "niz_dokansc.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin381 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP46762289
JavaScript39783
CSS41159

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods318.75%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin