Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.53ms] Passed 4 tests
This is a short check of server-side resources used by Custom Currency for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.87 ▼4.02 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.12 ▼17.67 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 51.49 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 97.96 ▼1.71 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.80 ▲1.27 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Currency for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.58 ▼0.79 | 1.65 ▼0.16 | 43.97 ▲1.81 |
Dashboard /wp-admin | 2,221 ▲33 | 5.84 ▲0.97 | 104.83 ▼13.11 | 42.98 ▼5.20 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.07 | 40.29 ▲4.84 | 35.46 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.61 ▼5.64 | 617.40 ▼65.77 | 61.54 ▲8.80 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.22 ▼0.14 | 97.39 ▼13.70 | 42.72 ▼6.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/custom-currency-for-woocommerce/Private/PluginActivator/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Private/PluginOptions/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/vendor/composer/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Public/Assets/StyleSheets/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Common/Languages/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Public/Assets/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Public/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Public/Assets/Images/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Private/Wordpress/index.php
- > /wp-content/plugins/custom-currency-for-woocommerce/Public/Assets/JavaScripts/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: woocommerce, currency
custom-currency-for-woocommerce/custom-currency-for-woocommerce.php 77% from 13 tests
The main PHP script in "Custom Currency for WooCommerce" version 7.2.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/Public/Languages")
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
There were no executable files found in this plugin909 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 195 | 257 | 891 |
JSON | 1 | 2 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin