Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.18ms] Passed 4 tests
A check of server-side resources used by X-Currency - The Ultimate WooCommerce currency switcher for a smoother shopping experience
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.96 ▼3.08 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.00 ▼2.37 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.06 ▲7.26 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 88.25 ▼9.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.12 ▼2.09 |
Server storage [IO: ▲2.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 238 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by X-Currency - The Ultimate WooCommerce currency switcher for a smoother shopping experience
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲70 | 14.20 ▲0.01 | 2.02 ▲0.07 | 41.47 ▼3.67 |
Dashboard /wp-admin | 2,215 ▲41 | 5.69 ▼0.01 | 87.50 ▼3.99 | 44.12 ▲2.83 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.01 ▲0.05 | 40.93 ▼0.24 | 36.70 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.13 ▼2.08 | 692.12 ▲50.70 | 58.49 ▼1.38 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.20 ▲0.02 | 108.52 ▼7.26 | 45.22 ▲1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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
- 97× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function x_currency_version() in wp-content/plugins/x-currency/enqueues/frontend-enqueue.php:5
- > PHP Fatal error
Uncaught Error: Class 'XCurrency\\WaxFramework\\Database\\Eloquent\\Relations\\Relation' not found in wp-content/plugins/x-currency/vendor/vendor-src/waxframework/database/src/Eloquent/Relations/BelongsToOne.php:5
- > PHP Fatal error
Uncaught Error: Interface 'XCurrency\\WaxFramework\\Contracts\\Provider' not found in wp-content/plugins/x-currency/app/Providers/ShortCodeServiceProvider.php:10
- > PHP Fatal error
Uncaught Error: Interface 'XCurrency\\DI\\Definition\\Source\\DefinitionSource' not found in wp-content/plugins/x-currency/vendor/vendor-src/php-di/php-di/src/Definition/Source/SourceCache.php:13
- > PHP Fatal error
Uncaught Error: Interface 'XCurrency\\DI\\Definition\\Source\\DefinitionSource' not found in wp-content/plugins/x-currency/vendor/vendor-src/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php:15
- > PHP Fatal error
Uncaught Error: Class 'XCurrency\\WaxFramework\\Database\\Eloquent\\Relations\\Relation' not found in wp-content/plugins/x-currency/vendor/vendor-src/waxframework/database/src/Eloquent/Relations/HasOne.php:5
- > PHP Fatal error
Uncaught Error: Interface 'XCurrency\\Laravel\\SerializableClosure\\Contracts\\Serializable' not found in wp-content/plugins/x-currency/vendor/vendor-src/laravel/serializable-closure/src/Serializers/Native.php:16
- > PHP Fatal error
Uncaught Error: Interface 'XCurrency\\DI\\Factory\\RequestedEntry' not found in wp-content/plugins/x-currency/vendor/vendor-src/php-di/php-di/src/Compiler/RequestedEntryHolder.php:10
- > PHP Fatal error
Uncaught Error: Class 'XCurrency\\WaxFramework\\Database\\Eloquent\\Model' not found in wp-content/plugins/x-currency/app/Models/UserMeta.php:8
- > PHP Fatal error
Uncaught Error: Interface 'XCurrency\\DI\\Definition\\Source\\DefinitionSource' not found in wp-content/plugins/x-currency/vendor/vendor-src/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php:32
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in x-currency/assets to your readme.txt
- Tags: You are using too many tags: 14 tag instead of maximum 10
x-currency/x-currency.php Passed 13 tests
The main PHP file in "X-Currency - The Ultimate WooCommerce currency switcher for a smoother shopping experience" ver. 1.4.6 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Currency Switcher for WooCommerce custom currency, exchange rates, currency by country, pay in selected currency
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
No dangerous file extensions were detected12,066 lines of code in 213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 192 | 1,085 | 4,035 | 11,108 |
JSON | 9 | 0 | 0 | 454 |
SVG | 2 | 0 | 2 | 237 |
JavaScript | 6 | 4 | 0 | 172 |
CSS | 3 | 4 | 2 | 71 |
HTML | 1 | 1 | 0 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 10.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 146 | |
▷ Abstract classes | 6 | 4.11% |
▷ Concrete classes | 140 | 95.89% |
▷ Final classes | 3 | 2.14% |
Methods | 761 | |
▷ Static methods | 79 | 10.38% |
▷ Public methods | 637 | 83.71% |
▷ Protected methods | 63 | 8.28% |
▷ Private methods | 61 | 8.02% |
Functions | 73 | |
▷ Named functions | 31 | 42.47% |
▷ Anonymous functions | 42 | 57.53% |
Constants | 17 | |
▷ Global constants | 5 | 29.41% |
▷ Class constants | 12 | 70.59% |
▷ Public constants | 10 | 83.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 0.32MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/blur-bg.4f33a9ac.png | 105.25KB | 109.19KB | 0.00% |
media/switchers/2/preview.png | 6.91KB | 6.92KB | 0.00% |
media/switchers/4/preview.png | 8.16KB | 8.49KB | 0.00% |
media/common/bitmap.png | 39.96KB | 10.84KB | ▼ 72.87% |
media/switchers/1/preview.png | 8.75KB | 8.93KB | 0.00% |