Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▲0.56ms] Passed 4 tests
An overview of server-side resources used by Premmerce Multi-currency for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 42.48 ▼2.07 |
Dashboard /wp-admin | 3.89 ▲0.59 | 54.58 ▲2.04 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 53.60 ▲0.54 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 97.19 ▲1.74 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 41.30 ▲2.16 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.02 | 38.85 |
Server storage [IO: ▲3.43MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 237 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_premmerce_currencies |
New WordPress options |
---|
can_compress_scripts |
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
premmerce_multicurrency_db_version |
fs_accounts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
premmerce_main_currency |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Premmerce Multi-currency for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.26 ▼0.47 | 1.61 ▼0.01 | 32.54 ▼11.01 |
Dashboard /wp-admin | 2,224 ▲46 | 5.51 ▼0.12 | 90.59 ▼22.43 | 41.81 ▼0.00 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.09 ▲0.07 | 37.94 ▼4.54 | 38.96 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 23.26 ▲5.02 | 633.95 ▼2.74 | 59.83 ▼6.02 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.20 ▲0.02 | 99.34 ▼6.14 | 46.94 ▲1.19 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,082 | 1.67 | 22.87 | 29.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/premmerce-woocommerce-multi-currency/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- fs_active_plugins
- fs_accounts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SDK\\V2\\Plugin\\PluginInterface' not found in wp-content/plugins/premmerce-woocommerce-multi-currency/src/WoocommerceMulticurrencyPlugin.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/premmerce-woocommerce-multi-currency/src/Admin/CurrenciesListTable.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/premmerce-woocommerce-multi-currency/src/Admin/UpdatersListTable.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/premmerce-woocommerce-multi-currency/src/Widget/CurrenciesWidget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #4 is missing in premmerce-woocommerce-multi-currency/assets to your readme.txt
premmerce-woocommerce-multi-currency/premmerce-woocommerce-multicurrency.php 77% from 13 tests
Analyzing the main PHP file in "Premmerce Multi-currency for Woocommerce" version 2.3.5
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("premmerce-woocommerce-multi-currency.php" instead of "premmerce-woocommerce-multicurrency.php")
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
There were no executable files found in this plugin38,781 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 163 | 9,130 | 19,291 | 37,222 |
PO File | 2 | 371 | 612 | 696 |
JavaScript | 6 | 154 | 68 | 680 |
Markdown | 1 | 53 | 0 | 70 |
JSON | 2 | 0 | 0 | 64 |
CSS | 15 | 8 | 0 | 49 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 65.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 2 | 2.70% |
▷ Concrete classes | 72 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,535 | |
▷ Static methods | 218 | 14.20% |
▷ Public methods | 1,092 | 71.14% |
▷ Protected methods | 17 | 1.11% |
▷ Private methods | 426 | 27.75% |
Functions | 134 | |
▷ Named functions | 100 | 74.63% |
▷ Anonymous functions | 34 | 25.37% |
Constants | 168 | |
▷ Global constants | 98 | 58.33% |
▷ Class constants | 70 | 41.67% |
▷ Public constants | 70 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 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/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |