Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲4.62MB] [CPU: ▲14.13ms] Passed 4 tests
Analyzing server-side resources used by Raise Prices with Sales for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.49 ▲5.03 | 60.36 ▲18.74 |
Dashboard /wp-admin | 8.51 ▲5.21 | 64.98 ▲15.23 |
Posts /wp-admin/edit.php | 8.51 ▲5.16 | 75.46 ▲25.54 |
Add New Post /wp-admin/post-new.php | 8.97 ▲3.08 | 98.40 ▼3.01 |
Media Library /wp-admin/upload.php | 8.51 ▲5.29 | 65.15 ▲29.40 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.51 | 57.15 |
Server storage [IO: ▲3.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 189 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
fs_active_plugins |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_debug_mode |
fs_gdpr |
widget_recent-posts |
db_upgraded |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Raise Prices with Sales for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.26 ▲1.03 | 1.59 ▼2.82 | 26.69 ▼18.68 |
Dashboard /wp-admin | 2,234 ▲57 | 5.71 ▲0.10 | 96.00 ▲2.60 | 44.80 ▲5.69 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.99 ▼0.03 | 40.66 ▲0.12 | 41.13 ▲6.75 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 23.09 ▼0.02 | 676.16 ▲31.32 | 53.89 ▼4.30 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.22 ▲0.05 | 93.78 ▼6.83 | 41.50 ▼1.07 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,058 | 1.69 | 27.90 | 29.69 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- fs_gdpr
- fs_debug_mode
- can_compress_scripts
- fs_accounts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/raise-prices-with-sales-for-woocommerce/public/partials/rps_wc-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_checkbox() in wp-content/plugins/raise-prices-with-sales-for-woocommerce/admin/partials/rps_wc-admin-prices.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/raise-prices-with-sales-for-woocommerce/admin/partials/js-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/raise-prices-with-sales-for-woocommerce/admin/partials/rps_wc-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: sales, ecommerce, woocommerce
raise-prices-with-sales-for-woocommerce/raise-prices-with-sales-for-woocommerce.php 92% from 13 tests
The principal PHP file in "Raise Prices with Sales for WooCommerce" v. 1.3.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin31,057 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 7,409 | 16,655 | 30,776 |
JavaScript | 5 | 49 | 93 | 241 |
CSS | 13 | 4 | 8 | 40 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 77.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,165 | |
▷ Static methods | 178 | 15.28% |
▷ Public methods | 820 | 70.39% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 330 | 28.33% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/click-sales-point.png | 80.63KB | 22.23KB | ▼ 72.43% |
admin/images/add-sales-point.png | 87.57KB | 24.21KB | ▼ 72.35% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |