89% simple-sale-countdown-by-13node

Code Review | Simple Sale Countdown for Woocommerce by 13Node

WordPress plugin Simple Sale Countdown for Woocommerce by 13Node scored 89% from 54 tests.

About plugin

  • Plugin page: simple-sale-count...
  • Plugin version: 1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 6.3.1
  • First release: Feb 23, 2022
  • Latest release: Feb 25, 2022
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: Ulloa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 232 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 gracefully, with no errors

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

Analyzing server-side resources used by Simple Sale Countdown for Woocommerce by 13Node
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.26 ▼4.15
Dashboard /wp-admin3.31 ▲0.0143.65 ▼0.01
Posts /wp-admin/edit.php3.36 ▲0.0145.85 ▼5.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.85 ▼16.95
Media Library /wp-admin/upload.php3.23 ▲0.0133.22 ▼2.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Sale Countdown for Woocommerce by 13Node
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲17413.77 ▼0.665.50 ▲3.7439.18 ▼5.16
Dashboard /wp-admin2,200 ▲155.83 ▲0.91102.00 ▲1.2240.04 ▼0.11
Posts /wp-admin/edit.php2,092 ▲61.99 ▼0.0339.70 ▲0.7636.90 ▲5.17
Add New Post /wp-admin/post-new.php1,533 ▼223.30 ▲0.09645.43 ▼33.3953.71 ▼2.27
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0196.30 ▼13.5240.73 ▼5.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

simple-sale-countdown-by-13node/trecenode-countdown.php 92% from 13 tests

The primary PHP file in "Simple Sale Countdown for Woocommerce by 13Node" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-sale-countdown-by-13node.php" instead of "trecenode-countdown.php")

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 detected104 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP141173
PO File16630
JavaScript10211

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin