68% change-prices-with-time-for-woocommerce

Code Review | Change Prices with Time for WooCommerce

WordPress plugin Change Prices with Time for WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: change-prices-wit...
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.0
  • WordPress version: 6.3.1
  • First release: Jul 5, 2017
  • Latest release: Nov 18, 2022
  • Number of updates: 31
  • Update frequency: every 63.3 days
  • Top authors: ibenic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /7,597 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
Installer ran successfully

Server metrics [RAM: ▲0.55MB] [CPU: ▼1.47ms] Passed 4 tests

Server-side resources used by Change Prices with Time for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6242.14 ▼4.17
Dashboard /wp-admin3.92 ▲0.5757.10 ▼0.89
Posts /wp-admin/edit.php3.97 ▲0.6253.23 ▼1.27
Add New Post /wp-admin/post-new.php6.44 ▲0.5590.53 ▲0.45
Media Library /wp-admin/upload.php3.68 ▲0.4546.80 ▲7.40
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius4.0540.37
Change Prices with Time for WooCommerce /wp-admin/admin.php?page=change-prices-with-time-for-woocommerce3.9239.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Change Prices with Time for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.21 ▼1.174.81 ▲1.4930.74 ▼18.40
Dashboard /wp-admin2,227 ▲424.89 ▼0.92102.17 ▼21.5842.86 ▲3.45
Posts /wp-admin/edit.php2,107 ▲182.02 ▲0.0235.44 ▼4.9037.68 ▲1.83
Add New Post /wp-admin/post-new.php1,519 ▼023.46 ▲0.22649.74 ▼31.5854.02 ▲0.95
Media Library /wp-admin/upload.php1,406 ▲244.25 ▲0.0498.83 ▲0.6242.10 ▼3.16
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius1,0652.2025.1030.58
Change Prices with Time for WooCommerce /wp-admin/admin.php?page=change-prices-with-time-for-woocommerce9722.0726.9156.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/change-prices-with-time-for-woocommerce/freemius/includes/class-freemius.php+8772
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 10 options in the database
    • fs_active_plugins
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • fs_gdpr
    • db_upgraded
    • fs_accounts
    • fs_debug_mode
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/change-prices-with-time-for-woocommerce/public/partials/raise-prices-with-time-for-woocommmerce-public-display.php
    • > /wp-content/plugins/change-prices-with-time-for-woocommerce/admin/partials/raise-prices-with-time-for-woocommmerce-admin-display.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function woocommerce_wp_checkbox() in wp-content/plugins/change-prices-with-time-for-woocommerce/admin/partials/rpt-admin-prices.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/change-prices-with-time-for-woocommerce/admin/partials/js-template.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: time, prices, woocommerce, countdown

change-prices-with-time-for-woocommerce/raise-prices-with-time-for-woocommmerce.php 85% from 13 tests

The main PHP script in "Change Prices with Time for WooCommerce" version 1.9.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("change-prices-with-time-for-woocommerce.php" instead of "raise-prices-with-time-for-woocommmerce.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 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 detected34,298 lines of code in 150 files:
LanguageFilesBlank linesComment linesLines of code
PHP1308,27217,77133,802
JavaScript57373359
CSS15228137

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.73
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes56
▷ Abstract classes23.57%
▷ Concrete classes5496.43%
▷ Final classes00.00%
Methods1,306
▷ Static methods19715.08%
▷ Public methods91970.37%
▷ Protected methods171.30%
▷ Private methods37028.33%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants145
▷ Global constants9867.59%
▷ Class constants4732.41%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/change-prices-with-time-for-woocommerce.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%