10% niz-products-carousel-for-woocommerce

Code Review | Niz Products Carousel for Woocommerce

WordPress plugin Niz Products Carousel for Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: niz-products-caro...
  • 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 20, 2020
  • Latest release: Mar 20, 2020
  • Number of updates: 13
  • Update frequency: every 0.8 days
  • Top authors: nizapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /421 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/niz-products-carousel-for-woocommerce/inc/class.niz-dependency-checker.php+22
    Undefined variable: _message

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

This is a short check of server-side resources used by Niz Products Carousel for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.20 ▼35.49
Dashboard /wp-admin2.10 ▼1.215.57 ▼41.99
Posts /wp-admin/edit.php2.10 ▼1.266.57 ▼40.39
Add New Post /wp-admin/post-new.php2.10 ▼3.795.65 ▼89.47
Media Library /wp-admin/upload.php2.10 ▼1.136.12 ▼27.02

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Niz Products Carousel for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.40 ▼0.971.61 ▲0.0340.58 ▼0.72
Dashboard /wp-admin2,224 ▲324.87 ▼0.03116.09 ▲4.4944.58 ▲2.08
Posts /wp-admin/edit.php2,103 ▲112.01 ▼0.0340.93 ▼5.6836.56 ▲1.26
Add New Post /wp-admin/post-new.php1,551 ▲3723.44 ▲5.70672.52 ▲41.1561.78 ▼10.12
Media Library /wp-admin/upload.php1,400 ▲124.27 ▲0.08100.04 ▼4.8043.35 ▼0.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/niz-products-carousel-for-woocommerce/inc/class.niz-dependency-checker.php+22
    Undefined variable: _message
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/niz-products-carousel-for-woocommerce/niz_woopc.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

niz-products-carousel-for-woocommerce/niz_woopc.php 77% from 13 tests

The principal PHP file in "Niz Products Carousel for Woocommerce" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("niz-products-carousel-for-woocommerce.php" instead of "niz_woopc.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin445 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP46463363
JavaScript38777
CSS40155

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.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
PNG images were not found in this plugin