Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.73ms] Passed 4 tests
Server-side resources used by Currency per Product for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.64 ▲0.14 |
Dashboard /wp-admin | 3.33 ▼0.02 | 41.25 ▼20.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.44 ▼3.86 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.17 ▼7.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 30.27 ▼3.67 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Currency per Product for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.24 ▼1.44 | 2.05 ▲0.49 | 39.25 ▼0.73 |
Dashboard /wp-admin | 2,203 ▲12 | 5.79 ▲0.85 | 95.55 ▼9.74 | 39.40 ▼4.53 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.01 | 38.72 ▲0.61 | 35.59 ▲4.50 |
Add New Post /wp-admin/post-new.php | 1,542 ▲5 | 18.19 ▼0.04 | 598.46 ▼18.85 | 54.57 ▲4.93 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.05 | 98.06 ▲0.21 | 43.56 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: currency per product, woocommerce, multicurrency, product currency
currency-per-product-for-woocommerce/currency-per-product-for-woocommerce.php Passed 13 tests
The entry point to "Currency per Product for WooCommerce" version 1.6.0 is a PHP file that has certain tags in its header comment area
72 characters long description:
Set and display prices for WooCommerce products in different currencies.
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 plugin3,158 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 404 | 1,466 | 2,908 |
JavaScript | 3 | 52 | 22 | 250 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 25.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 109 | |
▷ Static methods | 15 | 13.76% |
▷ Public methods | 109 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected