68% woomotiv

Code Review | Live Sales Notification for Woocommerce - Woomotiv

WordPress plugin Live Sales Notification for Woocommerce - Woomotiv scored68%from 54 tests.

About plugin

  • Plugin page: woomotiv
  • Plugin version: 3.4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2019
  • Latest release: Nov 27, 2023
  • Number of updates: 50
  • Update frequency: every 33.9 days
  • Top authors: delabon (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /19,614 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼2.22ms] Passed 4 tests

Analyzing server-side resources used by Live Sales Notification for Woocommerce - Woomotiv
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3336.89 ▼6.34
Dashboard /wp-admin3.63 ▲0.3346.15 ▼1.87
Posts /wp-admin/edit.php3.75 ▲0.3951.00 ▲1.36
Add New Post /wp-admin/post-new.php6.23 ▲0.3592.77 ▼2.02
Media Library /wp-admin/upload.php3.56 ▲0.3336.70 ▲3.39
Woomotiv /wp-admin/admin.php?page=woomotiv3.6741.23
Get Support /wp-admin/admin.php?page=woomotiv_contact3.5433.21

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: 2 new tables, 7 new options
New tables
wp_woomotiv_custom_popups
wp_woomotiv_stats
New WordPress options
woomotiv_version
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Sales Notification for Woocommerce - Woomotiv
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6114.36 ▲0.001.73 ▲0.0036.73 ▼7.65
Dashboard /wp-admin2,228 ▲575.61 ▼0.0492.20 ▼6.6442.77 ▼5.61
Posts /wp-admin/edit.php2,134 ▲312.01 ▲0.0240.87 ▲0.5236.10 ▲3.34
Add New Post /wp-admin/post-new.php1,555 ▲2923.06 ▼0.14587.63 ▲1.7650.46 ▲4.00
Media Library /wp-admin/upload.php1,424 ▲244.17 ▼0.0596.62 ▼2.6941.01 ▲1.02
Woomotiv /wp-admin/admin.php?page=woomotiv1,2123.5244.9330.42
Get Support /wp-admin/admin.php?page=woomotiv_contact1,25711.66143.2073.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_woomotiv_custom_popups
    • wp_woomotiv_stats
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • woomotiv_version
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woomotiv/index.php
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woomotiv/views/tabs/discover.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WooMotiv\\Framework\\HTML' not found in wp-content/plugins/woomotiv/views/tabs/advanced.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woomotiv/views/tabs/filters.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woomotiv/activation.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WooMotiv\\Framework\\HTML' not found in wp-content/plugins/woomotiv/views/tabs/style.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomotiv/views/custom-popup/add.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WooMotiv\\Framework\\HTML' not found in wp-content/plugins/woomotiv/views/tabs/general.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woomotiv/views/tabs/report.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomotiv/views/custom-popup/edit.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woomotiv/lib/hooks.php:6

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce notification, woocommerce sales notification, marketing, boost conversion, boost sales...

woomotiv/index.php 85% from 13 tests

"Live Sales Notification for Woocommerce - Woomotiv" version 3.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woomotiv.php" instead of "index.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,319 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP329406662,829
CSS92721231,930
JavaScript6186162548
SVG10011
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.07
▷ Minimum class complexity2.00
▷ Maximum class complexity67.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods97
▷ Static methods3131.96%
▷ Public methods8284.54%
▷ Protected methods00.00%
▷ Private methods1515.46%
Functions27
▷ Named functions1659.26%
▷ Anonymous functions1140.74%
Constants4
▷ Global constants4100.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
16 PNG files occupy 0.50MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/150.png0.36KB0.34KB▼ 5.63%
css/images/ui-icons_454545_256x240.png6.92KB4.18KB▼ 39.61%
css/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
lib/Framework/img/table-bg.png0.92KB0.12KB▼ 87.09%
img/trophy.png70.22KB34.87KB▼ 50.35%