10% woo-live-sale-notify

Code Review | Woo Live Sale Notify | Live Sale Popup (Boost Your Sale)

WordPress plugin Woo Live Sale Notify | Live Sale Popup (Boost Your Sale) scored10%from 54 tests.

About plugin

  • Plugin page: woo-live-sale-notify
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Oct 10, 2020
  • Number of updates: 17
  • Update frequency: every 41.1 days
  • Top authors: shanijangee007 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,605 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/woo-live-sale-notify/index.php+54
    Undefined variable: test_db_version

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.38ms] Passed 4 tests

Server-side resources used by Woo Live Sale Notify | Live Sale Popup (Boost Your Sale)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0724.71 ▼14.97
Dashboard /wp-admin3.32 ▲0.0242.26 ▼6.92
Posts /wp-admin/edit.php3.37 ▲0.0144.26 ▼5.34
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.68 ▼6.27
Media Library /wp-admin/upload.php3.24 ▲0.0132.40 ▼0.10
Woo Live Sale Notify /wp-admin/options-general.php?page=wooLiveSaleAdminMainPage3.2132.77

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 84 new files
Database: 1 new table, 7 new options
New tables
wp_woo_live_notify
New WordPress options
theysaidso_admin_options
test_db_version
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Woo Live Sale Notify | Live Sale Popup (Boost Your Sale)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲8313.87 ▼0.682.34 ▲0.1542.57 ▼5.48
Dashboard /wp-admin2,234 ▲435.12 ▲0.24106.35 ▼0.1739.98 ▼0.49
Posts /wp-admin/edit.php2,122 ▲332.39 ▲0.3639.93 ▼2.4331.90 ▼3.71
Add New Post /wp-admin/post-new.php1,540 ▲723.41 ▲0.03659.10 ▼6.8135.46 ▼21.80
Media Library /wp-admin/upload.php1,422 ▲344.52 ▲0.3195.88 ▼2.1740.73 ▼2.63
Woo Live Sale Notify /wp-admin/options-general.php?page=wooLiveSaleAdminMainPage1,3642.8754.2950.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • test_db_version
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-live-sale-notify/admin/func.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-live-sale-notify/admin/func.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in woo-live-sale-notify/assets to your readme.txt
Please take inspiration from this readme.txt

woo-live-sale-notify/index.php 92% from 13 tests

"Woo Live Sale Notify | Live Sale Popup (Boost Your Sale)" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-live-sale-notify.php" instead of "index.php")

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
No dangerous file extensions were detected20,863 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
CSS7649538,847
SVG2003,356
Sass1638373,238
LESS1638493,226
PHP3204941,632
JavaScript310574564

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin