77% blindmatrix-ecommerce

Code Review | BlindMatrix eCommerce

WordPress plugin BlindMatrix eCommerce scored77%from 54 tests.

About plugin

  • Plugin page: blindmatrix-ecomm...
  • Plugin version: 5.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2023
  • Latest release: Nov 22, 2023
  • Number of updates: 127
  • Update frequency: every 1.9 days
  • Top authors: bmsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,468 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.76ms] Passed 4 tests

Server-side resources used by BlindMatrix eCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1336.58 ▼5.59
Dashboard /wp-admin3.44 ▲0.1347.01 ▲0.37
Posts /wp-admin/edit.php3.49 ▲0.1345.46 ▼6.94
Add New Post /wp-admin/post-new.php6.02 ▲0.1386.10 ▼14.88
Media Library /wp-admin/upload.php3.36 ▲0.1340.90 ▲8.57

Server storage [IO: ▲15.02MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/blindmatrix-ecommerce/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/blindmatrix-ecommerce/assets/banner-772\303\227250.jpg"
Filesystem: 201 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for BlindMatrix eCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.70 ▼0.031.67 ▼0.1036.20 ▼7.08
Dashboard /wp-admin2,205 ▲285.63 ▲0.0295.47 ▲2.8042.88 ▲0.12
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0639.49 ▼1.8137.83 ▼3.58
Add New Post /wp-admin/post-new.php1,533 ▲623.21 ▲0.13702.51 ▲74.6457.40 ▲7.35
Media Library /wp-admin/upload.php1,410 ▲134.18 ▼0.0697.22 ▼5.6844.25 ▼0.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/blindmatrix-ecommerce/vendor/Shortcode-Source/appointment.php
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function blindmatrix_check_premium() in wp-content/plugins/blindmatrix-ecommerce/vendor/Shortcode-Source/Blinds-List.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blindmatrix-ecommerce/vendor/Shortcode-Source/Product-Menu-Footer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blindmatrix-ecommerce/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MainController' not found in wp-content/plugins/blindmatrix-ecommerce/control/BlindWooc.php:2
    • > PHP Warning
      include(WP_PLUGIN_DIR/blindmatrix-ecommerce/control/MainController.php): failed to open stream: No such file or directory in wp-content/plugins/blindmatrix-ecommerce/common.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blindmatrix-ecommerce/vendor/Shortcode-Source/shutter-type.php:2
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/blindmatrix-ecommerce/common.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blindmatrix-ecommerce/custom_orderdetails.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blindmatrix-ecommerce/vendor/Shortcode-Source/curtain-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/blindmatrix-ecommerce/vendor/Shortcode-Source/appointment.php:572

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

blindmatrix-ecommerce/blind-matrix-api.php 85% from 13 tests

The main PHP file in "BlindMatrix eCommerce" ver. 5.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 344 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("blindmatrix-ecommerce.php" instead of "blind-matrix-api.php")

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
No dangerous file extensions were detected50,801 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
CSS2787214621,722
PHP322,35790518,743
JavaScript1453826810,238
SVG40098

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity66.86
▷ Minimum class complexity2.00
▷ Maximum class complexity236.00
Average method complexity6.99
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods77
▷ Static methods1215.58%
▷ Public methods7698.70%
▷ Protected methods00.00%
▷ Private methods11.30%
Functions131
▷ Named functions12494.66%
▷ Anonymous functions75.34%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
50 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/Shortcode-Source/image/blinds_icon/vertical-blinds.png1.35KB0.84KB▼ 38.00%
vendor/Shortcode-Source/image/blinds_icon/roman-blinds.png1.50KB1.02KB▼ 32.01%
vendor/Shortcode-Source/image/blinds_icon/day-&-night-blinds.png1.64KB1.15KB▼ 29.82%
vendor/Shortcode-Source/image/admin_settings/layout-2.png1.26KB0.13KB▼ 89.69%
vendor/Shortcode-Source/image/headertype_icon/goblet-buttoned.png11.93KB2.60KB▼ 78.19%