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.02MB] [CPU: ▼2.34ms] Passed 4 tests
Server-side resources used by Payment Gateway Currency for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.33 ▼1.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.95 ▼1.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.26 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.58 ▼4.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.57 ▲3.53 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway Currency for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.69 ▲0.43 | 1.72 ▲0.14 | 37.81 ▼2.85 |
Dashboard /wp-admin | 2,192 ▲15 | 5.60 ▲0.02 | 91.55 ▼4.12 | 42.40 ▼12.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.00 | 39.35 ▼2.99 | 35.77 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.06 ▼0.45 | 592.93 ▼105.42 | 54.45 ▲2.29 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.20 ▲0.07 | 94.14 ▼2.44 | 39.40 ▼0.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Looking good! No server-side errors or output on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Restrict currencies.), #2 (Convert currencies.)
payment-gateways-by-currency-for-woocommerce/payment-gateways-by-currency-for-woocommerce.php Passed 13 tests
"Payment Gateway Currency for WooCommerce" version 3.8.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Manage currencies for WooCommerce payment gateways. Beautifully.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,887 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 417 | 1,532 | 2,865 |
JavaScript | 2 | 3 | 10 | 12 |
Markdown | 1 | 6 | 0 | 9 |
JSON | 1 | 0 | 0 | 1 |
Sass | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.76 |
Average class complexity | 27.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 154 | |
▷ Static methods | 1 | 0.65% |
▷ Public methods | 154 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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