68% countdown-wpdevart-extended

Code Review | Countdown and CountUp, WooCommerce Sales Timer

WordPress plugin Countdown and CountUp, WooCommerce Sales Timer scored 68% from 54 tests.

About plugin

  • Plugin page: countdown-wpdevar...
  • Plugin version: 1.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 29, 2017
  • Latest release: Mar 31, 2023
  • Number of updates: 181
  • Update frequency: every 10.9 days
  • Top authors: wpdevart (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

500+ active / 41,456 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.86ms] Passed 4 tests

Server-side resources used by Countdown and CountUp, WooCommerce Sales Timer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.95 ▼2.63
Dashboard /wp-admin3.35 ▲0.0547.52 ▲0.68
Posts /wp-admin/edit.php3.40 ▲0.0549.25 ▼0.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.97 ▼7.91
Media Library /wp-admin/upload.php3.27 ▲0.0436.74 ▼4.66
Themes /wp-admin/admin.php?page=wpda_contdown_extend_themes3.2433.94
Popup (Pro Feature!) /wp-admin/admin.php?page=wpda_contdown_extend_popup3.3138.49
Timer /wp-admin/admin.php?page=wpda_contdown_extend_menu3.2428.77
Featured Plugins /wp-admin/admin.php?page=wpda_contdown_extend_featured_plugins3.2428.97

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Countdown and CountUp, WooCommerce Sales Timer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲17213.52 ▼0.854.57 ▲2.4539.68 ▼6.05
Dashboard /wp-admin2,248 ▲635.87 ▲0.93107.44 ▼16.6038.07 ▼7.59
Posts /wp-admin/edit.php2,128 ▲392.05 ▲0.0139.29 ▲5.2236.88 ▲5.54
Add New Post /wp-admin/post-new.php6,622 ▲5,08829.21 ▲6.22916.08 ▲253.3870.17 ▲18.18
Media Library /wp-admin/upload.php1,427 ▲394.21 ▲0.10103.88 ▼17.0046.92 ▼0.79
Themes /wp-admin/admin.php?page=wpda_contdown_extend_themes1,0712.7463.7752.12
Popup (Pro Feature!) /wp-admin/admin.php?page=wpda_contdown_extend_popup4,5507.62173.62103.02
Timer /wp-admin/admin.php?page=wpda_contdown_extend_menu1,0352.7352.8533.70
Featured Plugins /wp-admin/admin.php?page=wpda_contdown_extend_featured_plugins1,1092.0222.6340.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_wpda_contdown_extend_theme
    • wp_wpda_contdown_extend_timer
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_wpdevart_countdown_extended
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/countdown-wpdevart-extended/includes/wpdevart_widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/countdown-wpdevart-extended/includes/admin/woocommerce_settings_tab.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/countdown-wpdevart-extended/wpdevart_countdown_extended.php:61

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=wpda_contdown_extend_themes
    • > Network (severe)
    wp-content/plugins/countdown-wpdevart-extended/includes/admin/images/default%7B%7Brows.default%7D%7D.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woocommerce sales countdown, woocommerce countdown, countdown widget, countdown timer, countdown

countdown-wpdevart-extended/wpdevart_countdown_extended.php 92% from 13 tests

The main file in "Countdown and CountUp, WooCommerce Sales Timer" v. 1.8.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("countdown-wpdevart-extended.php" instead of "wpdevart_countdown_extended.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
Everything looks great! No dangerous files found in this plugin12,216 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP142211144,783
JavaScript92191952,848
CSS81091192,511
PO File462302301,334
SVG200740

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.73
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods155
▷ Static methods3120.00%
▷ Public methods8252.90%
▷ Protected methods63.87%
▷ Private methods6743.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/featured_plugins/coming_soon.png12.40KB5.21KB▼ 57.98%
includes/admin/images/featured_plugins/gallery-album-icon.png10.74KB4.69KB▼ 56.38%
includes/admin/images/featured_plugins/Pricing-table.png12.94KB4.08KB▼ 68.44%
includes/admin/images/tinymce_icon.png1.83KB1.06KB▼ 42.11%
includes/admin/images/popup.png1.66KB1.12KB▼ 32.73%