Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼2.52ms] Passed 4 tests
A check of server-side resources used by WooCommerce Custom Currencies
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.03 ▲4.99 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.85 ▼3.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.92 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.55 ▼3.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.98 ▲1.07 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Custom Currencies
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.83 ▲0.55 | 1.78 ▼0.05 | 43.88 ▲5.02 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲0.04 | 108.58 ▼3.34 | 39.99 ▼2.14 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.02 | 38.46 ▼1.02 | 34.58 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,542 ▲1 | 18.20 ▼4.91 | 607.76 ▲14.24 | 60.71 ▲7.27 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▼0.05 | 97.20 ▼6.03 | 41.75 ▼2.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WooCommerceCustomCurrencies' not found in wp-content/plugins/woocommerce-custom-currencies/templates/currency_row.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in woocommerce-custom-currencies/assets to your readme.txt
woocommerce-custom-currencies/woocommerce-custom-currencies.php Passed 13 tests
"WooCommerce Custom Currencies" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Adds your custom currency to woocommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin374 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 181 | 85 | 332 |
CSS | 1 | 0 | 0 | 32 |
JavaScript | 1 | 9 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 3 | 13.64% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin