84% boostimer

Code Review | Boostimer - Product Availability Countdown And Scheduler For WooCommerce

WordPress plugin Boostimer - Product Availability Countdown And Scheduler For WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: boostimer
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2021
  • Latest release: Sep 18, 2022
  • Number of updates: 6
  • Update frequency: every 53.0 days
  • Top authors: zabiranik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,394 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.54ms] Passed 4 tests

Server-side resources used by Boostimer - Product Availability Countdown And Scheduler For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.44 ▼0.40
Dashboard /wp-admin3.42 ▲0.1147.86 ▲0.10
Posts /wp-admin/edit.php3.53 ▲0.1751.30 ▲1.72
Add New Post /wp-admin/post-new.php6.00 ▲0.1195.37 ▲3.24
Media Library /wp-admin/upload.php3.34 ▲0.1138.70 ▲0.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
boostimer_installed
widget_theysaidso_widget
boostimer_version
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Boostimer - Product Availability Countdown And Scheduler For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7414.47 ▼0.181.70 ▼0.2041.18 ▼8.58
Dashboard /wp-admin2,237 ▲495.83 ▲0.74104.95 ▲0.6250.09 ▲9.96
Posts /wp-admin/edit.php2,120 ▲312.01 ▼0.0240.65 ▲4.8642.21 ▲7.87
Add New Post /wp-admin/post-new.php1,562 ▲4322.98 ▼0.27617.15 ▼62.0764.64 ▲7.97
Media Library /wp-admin/upload.php1,422 ▲344.26 ▲0.0899.12 ▼8.3252.52 ▲5.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • boostimer_installed
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • boostimer_version
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Abstracts\\BaseManager' not found in wp-content/plugins/boostimer/includes/Frontend/PromptDate/Manager.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_script() in wp-content/plugins/boostimer/templates/countdown-timer.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Abstracts\\BaseManager' not found in wp-content/plugins/boostimer/includes/Admin/Manager.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Abstracts\\ProductData' not found in wp-content/plugins/boostimer/includes/Admin/ProductData/Stock.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Frontend\\PromptDate\\PromptDate' not found in wp-content/plugins/boostimer/includes/Frontend/PromptDate/Stock.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function woocommerce_wp_checkbox() in wp-content/plugins/boostimer/templates/admin/stock-product-data.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Abstracts\\BaseManager' not found in wp-content/plugins/boostimer/includes/Admin/ProductData/Manager.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Abstracts\\ProductData' not found in wp-content/plugins/boostimer/includes/Admin/ProductData/Sale.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Abstracts\\BaseManager' not found in wp-content/plugins/boostimer/includes/Frontend/Manager.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Boostimer\\Api\\Controllers\\Base' not found in wp-content/plugins/boostimer/includes/Api/Controllers/Settings.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: woo, product availability, countdown, woocommerce, scheduler...

boostimer/boostimer.php 92% from 13 tests

The principal PHP file in "Boostimer - Product Availability Countdown And Scheduler For WooCommerce" v. 1.3.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 72 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,138 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP475191,3861,817
JSON200271
Markdown110032
JavaScript525712
CSS40126

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.97
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes35
▷ Abstract classes617.14%
▷ Concrete classes2982.86%
▷ Final classes13.45%
Methods160
▷ Static methods2213.75%
▷ Public methods13483.75%
▷ Protected methods1610.00%
▷ Private methods106.25%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants9
▷ Global constants9100.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