Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.70ms] Passed 4 tests
An overview of server-side resources used by Woo Display Additional Currency
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.09 ▲3.68 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.35 ▼0.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.23 ▼11.13 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.17 ▼0.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.30 ▲1.31 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Display Additional Currency
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.05 ▼0.61 | 2.19 ▲0.61 | 43.78 ▲1.84 |
Dashboard /wp-admin | 2,218 ▲44 | 5.51 ▼0.13 | 86.74 ▼9.02 | 81.93 ▲40.62 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.03 ▲0.03 | 36.78 ▼5.01 | 34.57 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,700 ▲172 | 22.03 ▼0.76 | 740.65 ▲71.05 | 61.10 ▼2.46 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.10 ▼0.13 | 105.24 ▼9.32 | 74.84 ▲27.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-display-your-currency/woo-display-your-currency.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (25 tag instead of maximum 10)
- Plugin Name: Please specify the plugin name on the first line (
=== woo-display-your-currency ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Activate the plugin), #2 (Enter currency symbol and exchange rate), #3 (Additional currency on shop/product page), #4 (Additional currency on product details page)
woo-display-your-currency/woo-display-your-currency.php Passed 13 tests
The entry point to "Woo Display Additional Currency" version 1.0 is a PHP file that has certain tags in its header comment area
129 characters long description:
This plugin will add currency to catalog and product display page. The currency symbol and exchange rates can be set from admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin54 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 12 | 54 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.72MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 122.00KB | 53.41KB | ▼ 56.22% |
screenshot-4.png | 88.30KB | 36.22KB | ▼ 58.98% |
images/icon.png | 1.94KB | 1.59KB | ▼ 17.88% |
screenshot-2.png | 52.88KB | 20.85KB | ▼ 60.57% |
screenshot-3.png | 472.41KB | 80.65KB | ▼ 82.93% |