10% ellibot-woocommerce-slider

Code Review | Ellibot WooCommerce Slider

WordPress plugin Ellibot WooCommerce Slider scored10%from 54 tests.

About plugin

  • Plugin page: ellibot-woocommer...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.0
  • WordPress version: 6.3.1
  • First release: Oct 18, 2017
  • Latest release: Oct 26, 2017
  • Number of updates: 9
  • Update frequency: every 1.0 days
  • Top authors: interaktivmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /833 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/ellibot-woocommerce-slider/ellibot_engine.php+24
    Undefined property: ellibot_woocommerce_slider_engine::$ellibot_e_pro

Server metrics [RAM: ▼1.50MB] [CPU: ▼49.09ms] Passed 4 tests

This is a short check of server-side resources used by Ellibot WooCommerce Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.48 ▼0.985.88 ▼30.60
Dashboard /wp-admin2.51 ▼0.807.31 ▼39.18
Posts /wp-admin/edit.php2.51 ▼0.856.85 ▼41.89
Add New Post /wp-admin/post-new.php2.51 ▼3.386.19 ▼84.67
Media Library /wp-admin/upload.php2.51 ▼0.728.12 ▼25.72

Server storage [IO: ▲0.31MB] [DB: ▲0.04MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ellibot WooCommerce Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲16613.59 ▼0.994.59 ▲2.7443.29 ▲1.17
Dashboard /wp-admin2,225 ▲334.92 ▼0.03114.18 ▲3.9541.22 ▼3.26
Posts /wp-admin/edit.php2,111 ▲192.08 ▲0.0637.73 ▼15.9831.61 ▼12.57
Add New Post /wp-admin/post-new.php1,531 ▲1723.41 ▲5.61659.40 ▲10.6452.36 ▼0.24
Media Library /wp-admin/upload.php1,407 ▲254.33 ▲0.06113.05 ▲11.7449.63 ▲4.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/ellibot-woocommerce-slider/ellibot_engine.php+24
    Undefined property: ellibot_woocommerce_slider_engine::$ellibot_e_pro
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

ellibot-woocommerce-slider/ellibot_index.php 85% from 13 tests

The main PHP file in "Ellibot WooCommerce Slider" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ellibot-woocommerce-slider.php" instead of "ellibot_index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,313 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP74672262,136
JavaScript45199781,377
CSS24729459
PO File1225384261
Markdown120071
JSON1009

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity21.00
▷ Minimum class complexity17.00
▷ Maximum class complexity25.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gfx/ellibot-slider-arrow-right.png9.37KB3.83KB▼ 59.13%
gfx/ellibot-slider-arrow-up.png9.63KB4.45KB▼ 53.75%
gfx/ellibot-slider-arrow-left.png9.75KB3.83KB▼ 60.73%
gfx/ellibot-slider-arrow-down.png8.96KB4.53KB▼ 49.42%