89% sales-booster

Code Review | Sale Booster Product Offer Countdown Timer

WordPress plugin Sale Booster Product Offer Countdown Timer scored89%from 54 tests.

About plugin

  • Plugin page: sales-booster
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2019
  • Latest release: May 3, 2023
  • Number of updates: 18
  • Update frequency: every 76.5 days
  • Top authors: footnoteio (55.56%)ruhel241 (50%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /8,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼6.72ms] Passed 4 tests

Server-side resources used by Sale Booster Product Offer Countdown Timer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2028.84 ▼10.26
Dashboard /wp-admin3.53 ▲0.2248.54 ▼4.18
Posts /wp-admin/edit.php3.64 ▲0.2851.96 ▼0.49
Add New Post /wp-admin/post-new.php6.11 ▲0.2285.70 ▼11.93
Media Library /wp-admin/upload.php3.45 ▲0.2240.94 ▲4.65

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sale Booster Product Offer Countdown Timer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,478 ▼26814.41 ▲0.140.86 ▼0.8512.86 ▼28.77
Dashboard /wp-admin2,209 ▲304.88 ▼0.08102.23 ▼2.5239.76 ▼3.38
Posts /wp-admin/edit.php2,091 ▼12.05 ▼0.0139.51 ▼1.5134.55 ▲0.55
Add New Post /wp-admin/post-new.php1,533 ▼023.41 ▲0.36661.80 ▲26.4065.60 ▲0.96
Media Library /wp-admin/upload.php1,388 ▲34.23 ▼0.01105.52 ▲5.7148.09 ▲3.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

sales-booster/sales-booster.php 92% from 13 tests

The entry point to "Sale Booster Product Offer Countdown Timer" version 2.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes

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 plugin1,655 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP72151471,278
JavaScript75741370
JSON1004
CSS3003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.60
▷ Minimum class complexity4.00
▷ Maximum class complexity80.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods3173.81%
▷ Public methods4197.62%
▷ Protected methods00.00%
▷ Private methods12.38%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin