Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▲6.44ms] Passed 4 tests
This is a short check of server-side resources used by Currency Exchange for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.87 ▼1.83 |
Dashboard /wp-admin | 3.55 ▲0.25 | 58.86 ▲9.63 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 54.60 ▲5.92 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 100.93 ▲12.03 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 52.50 ▲19.33 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 156 new files
Database: no new tables, 8 new options
New WordPress options |
---|
berocket_admin_notices_rate_stars |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
br_ce_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Currency Exchange for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲126 | 13.20 ▼1.18 | 1.65 ▼0.17 | 41.27 ▼1.05 |
Dashboard /wp-admin | 2,239 ▲51 | 4.98 ▲0.06 | 101.80 ▼16.12 | 76.43 ▲34.24 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.07 ▲0.02 | 38.92 ▲1.15 | 34.13 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,711 ▲167 | 24.66 ▲6.57 | 761.32 ▲126.53 | 59.29 ▼0.80 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.18 ▲0.01 | 111.85 ▲12.67 | 88.42 ▲42.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- berocket_admin_notices_rate_stars
- can_compress_scripts
- berocket_key_activated_plugins
- widget_recent-comments
- widget_recent-posts
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 | 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
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/currency-exchange-for-woocommerce/berocket/includes/settings_fields.php:5
- > PHP Notice
Undefined variable: name in wp-content/plugins/currency-exchange-for-woocommerce/berocket/templates/conditions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currencies() in wp-content/plugins/currency-exchange-for-woocommerce/templates/currency_list.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/currency-exchange-for-woocommerce/berocket/templates/premium.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/currency-exchange-for-woocommerce/berocket/includes/admin_notices.php:797
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/currency-exchange-for-woocommerce/berocket/includes/updater.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/currency-exchange-for-woocommerce/berocket/includes/error_notices.php:5
- > PHP Notice
Undefined variable: title in wp-content/plugins/currency-exchange-for-woocommerce/berocket/templates/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/currency-exchange-for-woocommerce/berocket/libraries/tutorial.php:10
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/currency-exchange-for-woocommerce/divi/includes/modules/brcurrencyItem/brcurrencyItem.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 31 tag instead of maximum 10
currency-exchange-for-woocommerce/woocommerce-currency-exchange.php 92% from 13 tests
The entry point to "Currency Exchange for WooCommerce" version 3.5.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("currency-exchange-for-woocommerce.php" instead of "woocommerce-currency-exchange.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin21,496 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 2,535 | 77 | 9,836 |
PHP | 43 | 494 | 1,382 | 9,131 |
JavaScript | 14 | 71 | 87 | 1,939 |
PO File | 2 | 194 | 216 | 430 |
JSX | 2 | 8 | 2 | 121 |
XML | 2 | 0 | 0 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 45.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 381 | |
▷ Static methods | 150 | 39.37% |
▷ Public methods | 381 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
57 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
berocket/assets/css/mail.png | 2.59KB | 1.92KB | ▼ 26.02% |
images/flag/COP.png | 0.12KB | 0.13KB | 0.00% |
images/flag/HKD.png | 0.61KB | 0.58KB | ▼ 4.84% |
images/flag/PYG.png | 0.31KB | 0.31KB | ▼ 1.55% |
images/flag/MYR.png | 0.32KB | 0.31KB | ▼ 3.65% |