10% propeller-ecommerce

Code Review | Propeller Ecommerce

WordPress plugin Propeller Ecommerce scored10%from 54 tests.

About plugin

  • Plugin page: propeller-ecommerce
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2023
  • Latest release: Apr 13, 2023
  • Number of updates: 3
  • Update frequency: every 15.7 days
  • Top authors: propellercommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /182 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
    • > Warning in wp-content/plugins/propeller-ecommerce/includes/PropellerInstall.php+92
    opendir(wp-content/plugins/propeller-ecommerce/src/public/templates): failed to open dir: No such file or directory

Server metrics [RAM: ▲0.54MB] [CPU: ▲14.96ms] Passed 4 tests

A check of server-side resources used by Propeller Ecommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.95 ▲1.49118.14 ▲76.14
Dashboard /wp-admin3.88 ▲0.5873.55 ▲18.30
Posts /wp-admin/edit.php3.92 ▲0.5763.43 ▲13.79
Add New Post /wp-admin/post-new.php6.40 ▲0.51102.08 ▲5.87
Media Library /wp-admin/upload.php3.74 ▲0.5158.21 ▲21.86

Server storage [IO: ▲14.58MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2,115 new files
Database: 4 new tables, 7 new options
New tables
wp_propel_settings
wp_propel_behavior
wp_propel_slugs
wp_propel_pages
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
propel_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Propeller Ecommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,357 ▲57113.92 ▼0.4322.40 ▲20.5257.24 ▲14.77
Dashboard /wp-admin2,211 ▲345.65 ▲0.1184.59 ▼6.8144.33 ▲2.31
Posts /wp-admin/edit.php2,116 ▲191.96 ▼0.0234.42 ▼0.5440.69 ▲2.80
Add New Post /wp-admin/post-new.php1,548 ▲2023.25 ▲0.19661.97 ▼0.6574.86 ▲17.77
Media Library /wp-admin/upload.php1,416 ▲224.20 ▲0.0195.37 ▼10.7445.96 ▼0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_propel_behavior
    • wp_propel_settings
    • wp_propel_slugs
    • wp_propel_pages
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • propel_db_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 18× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/propeller-ecommerce/public/partials/product/propeller-product-downloads.php
    • > /wp-content/plugins/propeller-ecommerce/public/partials/category/propeller-gecommerce-listing.php
    • > /wp-content/plugins/propeller-ecommerce/public/partials/category/propeller-machine-listing-machines.php
    • > /wp-content/plugins/propeller-ecommerce/public/partials/other/propeller-product-slider.php
    • > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/propeller-checkout-paymethods.php
    • > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/propeller-order-thank-you-items.php
    • > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/regular/propeller-checkout-step-2.php
    • > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/propeller-checkout-thank-you.php
    • > /wp-content/plugins/propeller-ecommerce/public/error/401.php
    • > /wp-content/plugins/propeller-ecommerce/vendor/markbaker/matrix/buildPhar.php
  • 1242× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Erf.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/propeller-ecommerce/public/partials/product/propeller-cluster-product-name.php:2
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/propeller-ecommerce/public/partials/cart/propeller-shopping-cart-summary-totals.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'Gettext\\Languages\\Exporter\\Exporter' not found in wp-content/plugins/propeller-ecommerce/vendor/gettext/languages/src/Exporter/Xml.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Chart\\Properties' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Axis.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Alignment.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Scalar' not found in wp-content/plugins/propeller-ecommerce/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/propeller-ecommerce/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Border.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Propeller\\Includes\\Controller\\BaseAjaxController' not found in wp-content/plugins/propeller-ecommerce/includes/Includes/Controller/AddressAjaxController.php:7
    • > PHP Fatal error
      Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Address.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: The official readme.txt is a good inspiration

propeller-ecommerce/propeller-ecommerce.php 92% from 13 tests

The entry point to "Propeller Ecommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("/Custom/languages")

Code Analysis 0% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/propeller-ecommerce/vendor/bin/export-plural-rules.bat
      • wp-content/plugins/propeller-ecommerce/vendor/gettext/languages/bin/export-plural-rules.bat
      • wp-content/plugins/propeller-ecommerce/vendor/bin/minifycss.bat
      • wp-content/plugins/propeller-ecommerce/vendor/bin/minifyjs.bat
      • wp-content/plugins/propeller-ecommerce/vendor/bin/php-parse.bat
198,993 lines of code in 1,868 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,67332,88266,410167,579
JavaScript661,6569509,049
Markdown452,42406,989
CSS211881386,325
JSON29005,036
yacc3336122,048
PO File16601,4621,333
YAML6743344
XML6172123
reStructuredText9115236122
DOS Batch50017
Twig11014
Dockerfile12012
INI1111
SVG1001

PHP code 0% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 1,018)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 333)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity1,018.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity333.00
Code structure
Namespaces147
Interfaces56
Traits9
Classes1,281
▷ Abstract classes735.70%
▷ Concrete classes1,20894.30%
▷ Final classes675.55%
Methods9,264
▷ Static methods2,09722.64%
▷ Public methods7,01675.73%
▷ Protected methods6907.45%
▷ Private methods1,55816.82%
Functions1,592
▷ Named functions16510.36%
▷ Anonymous functions1,42789.64%
Constants2,071
▷ Global constants1366.57%
▷ Class constants1,93593.43%
▷ Public constants1,74290.03%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/assets/img/dhl.png2.76KB1.59KB▼ 42.13%