83% ecommerce-companion

Code Review | eCommerce Companion

WordPress plugin eCommerce Companion scored83%from 54 tests.

About plugin

  • Plugin page: ecommerce-companion
  • Plugin version: 5.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Dec 2, 2023
  • Number of updates: 59
  • Update frequency: every 10.0 days
  • Top authors: sellerthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /221,177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.46ms] Passed 4 tests

A check of server-side resources used by eCommerce Companion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.34 ▼8.97
Dashboard /wp-admin3.33 ▼0.0144.65 ▼16.82
Posts /wp-admin/edit.php3.45 ▲0.0947.94 ▲0.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.81 ▲5.04
Media Library /wp-admin/upload.php3.26 ▲0.0332.83 ▼0.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 247 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
item_details_page
db_upgraded
widget_info_widget
theysaidso_admin_options
widget_social_widget
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for eCommerce Companion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲2413.55 ▼0.734.20 ▲2.1541.61 ▼4.80
Dashboard /wp-admin2,213 ▲354.89 ▼0.7695.43 ▼20.0242.23 ▼0.50
Posts /wp-admin/edit.php2,128 ▲282.36 ▲0.3539.69 ▼5.2533.40 ▼3.43
Add New Post /wp-admin/post-new.php1,543 ▲1423.51 ▲0.22606.76 ▼19.3234.41 ▼25.10
Media Library /wp-admin/upload.php1,424 ▲244.43 ▲0.2499.14 ▲0.4644.92 ▲0.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_social_widget
    • widget_recent-comments
    • item_details_page
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_info_widget

Smoke tests 75% 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 50% 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
Please fix the following items
  • 148× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-companion/inc/themes/aromatic/features/aromatic-typography.php:758
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ecommerce-companion/inc/themes/retailsy/sections/section-info.php:46
    • > PHP Notice
      Undefined variable: theme in wp-content/plugins/ecommerce-companion/inc/themes/aromatic/pages-widget/default-widget.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-companion/inc/themes/storely/features/storely-service.php:134
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ecommerce-companion/inc/themes/storely/sections/section-slider.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-companion/inc/themes/shopient/features/storely-slider.php:430
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/ecommerce-companion/inc/themes/retailsy/pages-widget/home-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/ecommerce-companion/inc/themes.php:2
    • > PHP Warning
      require(ECOMMERCE_COMP_PLUGIN_DIRinc/themes/retailsy/theme-functions/extras.php): failed to open stream: No such file or directory in wp-content/plugins/ecommerce-companion/inc/themes/express-store/express-store.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ecommerce-companion/inc/themes/storess/sections/section-slider.php:199

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 uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires at least: Version format is invalid
The official readme.txt might help

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

Analyzing the main PHP file in "eCommerce Companion" version 5.6
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 442 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin17,736 lines of code in 125 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141,3221,04314,377
CSS537202,426
SVG200704
JavaScript46031229

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods4892.31%
▷ Protected methods35.77%
▷ Private methods11.92%
Functions181
▷ Named functions17998.90%
▷ Anonymous functions21.10%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
80 PNG files occupy 2.51MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/themes/shopiva/assets/images/service/3.png0.43KB0.28KB▼ 34.55%
inc/themes/shopiva/assets/images/slider/slider.png5.51KB2.82KB▼ 48.90%
inc/themes/shopiva/assets/images/slider/slide-3.png11.58KB11.94KB0.00%
(invalid) inc/themes/storess/assets/images/slider/4.png19.21KB0.00KB▼ 100.00%
inc/themes/storess/assets/images/service/4.png1.88KB2.05KB0.00%