Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.36ms] Passed 4 tests
An overview of server-side resources used by Woo Exchange Rate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 44.55 ▲0.09 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.78 ▼22.53 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.83 ▼5.12 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 99.05 ▼1.89 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.33 ▲6.12 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Exchange Rate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.75 ▲0.32 | 1.71 ▼0.05 | 43.69 ▼1.07 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▼0.00 | 92.93 ▼8.88 | 47.89 ▲3.75 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.02 ▲0.03 | 34.95 ▼5.62 | 35.39 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,552 ▲12 | 23.13 ▲4.79 | 665.83 ▲38.26 | 52.96 ▲1.71 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.09 | 105.55 ▲1.57 | 47.65 ▲3.31 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Looking good! No server-side errors or output on direct access of PHP files
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
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
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Woo Exchange Rate plugin settings screen), #2 (Exchange Rate Add/Edit page), #3 (Dropdown with search), #4 (Woo Exchange Rate plugin widget screen (StoreFront theme)), #5 (Frontend plugin work in action), #6 (Admin panel currency switcher)
woo-exchange-rate/woo-exchange-rate.php Passed 13 tests
"Woo Exchange Rate" version 17.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Allows to add exchange rates for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,219 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 297 | 462 | 1,121 |
PO File | 2 | 20 | 24 | 72 |
JavaScript | 1 | 3 | 5 | 25 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 17 | 18.68% |
▷ Public methods | 81 | 89.01% |
▷ Protected methods | 1 | 1.10% |
▷ Private methods | 9 | 9.89% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.38MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 9.93KB | 4.08KB | ▼ 58.87% |
screenshot-4.png | 78.71KB | 25.42KB | ▼ 67.70% |
screenshot-3.png | 43.06KB | 13.08KB | ▼ 69.63% |
screenshot-1.png | 77.37KB | 24.32KB | ▼ 68.57% |
screenshot-5.png | 147.63KB | 42.33KB | ▼ 71.32% |