Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼0.81ms] Passed 4 tests
Analyzing server-side resources used by Simple multi-currency for Woocommerce by Invelity
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.48 ▼0.62 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.40 ▼1.35 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 47.25 ▲0.72 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 99.58 ▼1.98 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.49 ▲1.32 |
SettingsSimple multi-currency for Woocommerce by /wp-admin/options-general.php?page=smcfw-general-settings-page | 3.34 | 31.41 |
Payment settingsSimple multi-currency for Woocommerce by /wp-admin/admin.php?page=smcfw-setting-page | 3.31 | 30.88 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 316 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_smcfw_widget |
recovery_mode_email_last_sent |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simple multi-currency for Woocommerce by Invelity
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 13.28 ▼1.01 | 5.06 ▲3.42 | 41.89 ▲4.39 |
Dashboard /wp-admin | 2,253 ▲65 | 4.84 ▼1.05 | 98.25 ▼13.67 | 39.24 ▼7.68 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▼0.06 | 36.74 ▼2.54 | 37.14 ▲5.30 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 23.26 ▲5.58 | 608.99 ▼0.09 | 49.97 ▲0.55 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.23 ▲0.01 | 102.66 ▼1.45 | 44.46 ▲1.21 |
SettingsSimple multi-currency for Woocommerce by /wp-admin/options-general.php?page=smcfw-general-settings-page | 1,020 | 2.02 | 24.48 | 35.03 |
Payment settingsSimple multi-currency for Woocommerce by /wp-admin/admin.php?page=smcfw-setting-page | 716 | 1.14 | 7.34 | 22.23 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_smcfw_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=smcfw-setting-page
- > Error in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/admin/admin-fees-page.php+19
Uncaught Error: Call to undefined function is_ajax() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/admin/admin-fees-page.php:19
Stack trace:
#0 wp-includes/class-wp-hook.php(310): smcfw_fees_page_func()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-multi-currency-for-woocommerce/simple-multi-currency-for-woocommerce.php
- 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/functions/schedule.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/admin/orders-table-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/reports/orders.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/admin/settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/functions/shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/functions/reports.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/functions/edit-product-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/functions/coupons.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/admin/admin-fees-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-multi-currency-for-woocommerce/includes/functions/dashboard.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in simple-multi-currency-for-woocommerce/assets to your readme.txt
simple-multi-currency-for-woocommerce/simple-multi-currency-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Simple multi-currency for Woocommerce by Invelity" v. 1.0.11 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 366 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected34,424 lines of code in 296 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 259 | 0 | 2 | 17,503 |
JavaScript | 1 | 2,881 | 2,469 | 13,569 |
PHP | 34 | 394 | 179 | 3,252 |
PO File | 1 | 29 | 29 | 99 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 3.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 134 | |
▷ Named functions | 121 | 90.30% |
▷ Anonymous functions | 13 | 9.70% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 22.64KB | 9.59KB | ▼ 57.62% |