Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.63ms] Passed 4 tests
Server-side resources used by Woocommerce Currency Converter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.37 ▲0.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.62 ▼28.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.17 ▲0.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.43 ▼9.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.76 ▼1.44 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Currency Converter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.34 ▼0.70 | 1.63 ▼0.29 | 40.09 ▼0.38 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.02 | 108.12 ▼9.10 | 42.26 ▼2.93 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 39.39 ▲1.64 | 33.65 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.32 ▲0.51 | 642.76 ▼34.62 | 70.23 ▲20.82 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.01 | 97.65 ▲2.27 | 43.14 ▲0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-multi-currency-switcher/includes/class.xsmcs-widget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
wc-multi-currency-switcher/multi-currency-switcher.php 77% from 13 tests
The entry point to "Woocommerce Currency Converter" version 0.0.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-multi-currency-switcher.php" instead of "multi-currency-switcher.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,472 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 345 | 166 | 1,652 |
PHP | 11 | 180 | 153 | 1,609 |
CSS | 2 | 16 | 0 | 211 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 25.80 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.63% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected