89% vicso-sale-countdown-timer-for-woocommerce

Code Review | VICSO Sale Countdown Timer for WooCommerce

WordPress plugin VICSO Sale Countdown Timer for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: vicso-sale-countd...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2021
  • Latest release: Sep 16, 2021
  • Number of updates: 3
  • Update frequency: every 69.3 days
  • Top authors: vicso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.93ms] Passed 4 tests

A check of server-side resources used by VICSO Sale Countdown Timer for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.66 ▲0.21
Dashboard /wp-admin3.31 ▲0.0152.70 ▼0.73
Posts /wp-admin/edit.php3.36 ▲0.0050.91 ▲0.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.31 ▼15.74
Media Library /wp-admin/upload.php3.23 ▲0.0038.00 ▲3.18

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for VICSO Sale Countdown Timer for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.16 ▼0.041.77 ▲0.1043.65 ▲0.41
Dashboard /wp-admin2,195 ▲155.64 ▼0.0494.10 ▲4.0641.49 ▼1.97
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0741.11 ▲2.3635.28 ▼6.02
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.92613.29 ▼13.5354.67 ▼4.67
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.0597.58 ▲2.7143.43 ▼1.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: sales countdown timer, countdown timer, countdown, sales timer, timer

vicso-sale-countdown-timer-for-woocommerce/vicso-sale-countdown-timer-for-woocommerce.php 85% from 13 tests

The main PHP script in "VICSO Sale Countdown Timer for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)

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
No dangerous file extensions were detected94 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2193161
CSS14433

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin