10% yoel-product-list

Code Review | yoel bootstrap easy product catalog

WordPress plugin yoel bootstrap easy product catalog scored10%from 54 tests.

About plugin

  • Plugin page: yoel-product-list
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 2, 2017
  • Latest release: Mar 4, 2017
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: yoel_r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /7,733 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/yoel-product-list/cuztom/classes/fields/multi_select.class.php+23
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.59MB] [CPU: ▼47.78ms] Passed 4 tests

Server-side resources used by yoel bootstrap easy product catalog
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.076.16 ▼33.00
Dashboard /wp-admin2.41 ▼0.898.97 ▼42.76
Posts /wp-admin/edit.php2.41 ▼0.948.11 ▼34.52
Add New Post /wp-admin/post-new.php2.41 ▼3.479.40 ▼80.82
Media Library /wp-admin/upload.php2.41 ▼0.818.86 ▼25.23
All Yoel Products /wp-admin/edit.php?post_type=yoel_products2.427.59
Add New /wp-admin/post-new.php?post_type=yoel_products2.429.08
how to use yoel products /wp-admin/edit.php?post_type=yoel_products&page=wnm_fund_set2.429.07
Products Categories /wp-admin/edit-tags.php?taxonomy=products_category&post_type=yoel_products2.4211.57

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for yoel bootstrap easy product catalog
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,136 ▲35015.75 ▲1.5012.64 ▲10.8046.11 ▲5.23
Dashboard /wp-admin2,405 ▲2256.57 ▲0.90110.08 ▲24.2936.83 ▼4.87
Posts /wp-admin/edit.php2,346 ▲2463.40 ▲1.4353.23 ▲14.8331.11 ▼5.66
Add New Post /wp-admin/post-new.php1,761 ▲23524.99 ▲1.53660.62 ▲42.6635.37 ▼22.44
Media Library /wp-admin/upload.php1,486 ▲864.58 ▲0.4083.45 ▼21.4642.23 ▼1.40
All Yoel Products /wp-admin/edit.php?post_type=yoel_products1,2973.7755.4733.80
Add New /wp-admin/post-new.php?post_type=yoel_products1,8854.0980.7545.01
how to use yoel products /wp-admin/edit.php?post_type=yoel_products&page=wnm_fund_set1,0773.4049.4528.53
Products Categories /wp-admin/edit-tags.php?taxonomy=products_category&post_type=yoel_products1,6283.5753.2434.43

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/yoel-product-list/cuztom/classes/fields/multi_select.class.php+23
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • The uninstall procedure has failed, leaving 7 options in the database
    • products_category_children
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=products_category&post_type=yoel_products
    • > Deprecated in wp-content/plugins/yoel-product-list/cuztom/classes/fields/term_checkboxes.class.php+37
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/yoel-product-list/help_page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (edit/add product.), #2 (col-md-5 view test.), #3 (col-md-4 with "all" category test .), #4 (lightbox.), #5 (lightbox change main img.), #6 (responsivness test.)
Please take inspiration from this readme.txt

yoel-product-list/index.php 92% from 13 tests

Analyzing the main PHP file in "yoel bootstrap easy product catalog" version 1.2
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yoel-product-list.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,751 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP396011,0712,484
JavaScript43353492,035
CSS2208118
Markdown141099
JSON10015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.71
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods132
▷ Static methods107.58%
▷ Public methods12997.73%
▷ Protected methods00.00%
▷ Private methods32.27%
Functions19
▷ Named functions1684.21%
▷ Anonymous functions315.79%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 1.04MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cuztom/assets/images/jquery-ui/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
cuztom/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
cuztom/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
cuztom/assets/images/jquery-ui/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
cuztom/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%