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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 42.14 ▼4.17 |
Dashboard /wp-admin | 3.92 ▲0.57 | 57.10 ▼0.89 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 53.23 ▼1.27 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 90.53 ▲0.45 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 46.80 ▲7.40 |
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius | 4.05 | 40.37 |
Change Prices with Time for WooCommerce /wp-admin/admin.php?page=change-prices-with-time-for-woocommerce | 3.92 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 13.21 ▼1.17 | 4.81 ▲1.49 | 30.74 ▼18.40 |
Dashboard /wp-admin | 2,227 ▲42 | 4.89 ▼0.92 | 102.17 ▼21.58 | 42.86 ▲3.45 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▲0.02 | 35.44 ▼4.90 | 37.68 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.46 ▲0.22 | 649.74 ▼31.58 | 54.02 ▲0.95 |
Media Library /wp-admin/upload.php | 1,406 ▲24 | 4.25 ▲0.04 | 98.83 ▲0.62 | 42.10 ▼3.16 |
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius | 1,065 | 2.20 | 25.10 | 30.58 |
Change Prices with Time for WooCommerce /wp-admin/admin.php?page=change-prices-with-time-for-woocommerce | 972 | 2.07 | 26.91 | 56.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 8,272 | 17,771 | 33,802 |
JavaScript | 5 | 73 | 73 | 359 |
CSS | 15 | 22 | 8 | 137 |
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 code | 0.63 |
Average class complexity | 81.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,306 | |
▷ Static methods | 197 | 15.08% |
▷ Public methods | 919 | 70.37% |
▷ Protected methods | 17 | 1.30% |
▷ Private methods | 370 | 28.33% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/change-prices-with-time-for-woocommerce.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |