Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.17ms] Passed 4 tests
An overview of server-side resources used by WP E-Commerce currency helper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.04 ▼1.90 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.17 ▼19.93 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.21 ▲3.18 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.62 ▼6.03 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 36.39 ▲4.79 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 409 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_haet_currency_list |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
haetcurrency_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WP E-Commerce currency helper: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲157 | 14.31 ▼0.06 | 7.32 ▲5.16 | 42.99 ▼7.06 |
Dashboard /wp-admin | 2,207 ▲22 | 5.85 ▼0.00 | 100.64 ▼2.04 | 39.31 ▲0.47 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.02 | 34.45 ▼0.84 | 36.24 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,538 ▲8 | 23.35 ▲5.11 | 712.91 ▲64.22 | 66.88 ▲13.75 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.34 ▲0.12 | 95.13 ▼4.30 | 40.11 ▼3.22 |
Currency Converter /wp-admin/wp-e-commerce-currency-helper.php | 26 | 0.44 | 0.11 | 14.16 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- haetcurrency_options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/wp-e-commerce-currency-helper/includes/installation/currency_list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-e-commerce-currency-helper/wp-e-commerce-currency-helper.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-e-commerce-currency-helper/views/admin/settings.php:4
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/wp-e-commerce-currency-helper/includes/installation/currency_list.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/wp-e-commerce-currency-helper.php
- > Network (severe)
wp-admin/wp-e-commerce-currency-helper.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The bubble tooltip appears on every currency field in your store), #2 (Users can customize and save their target currency), #3 (Import Settings from your store (WPSC or EDD)), #4 (Select a theme for the bubbles), #5 (Check internal currencylist against the Google Conversion API and remove unsupported currencies.)
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-e-commerce-currency-helper/wp-e-commerce-currency-helper.php Passed 13 tests
"WP E-Commerce currency helper" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
convert all price fields in your store to any currency
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
Success! There were no dangerous files found in this plugin1,653 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 127 | 125 | 1,370 |
PO File | 2 | 53 | 105 | 155 |
JavaScript | 2 | 22 | 22 | 81 |
CSS | 1 | 10 | 28 | 47 |
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.24 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
195 PNG files occupy 0.56MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery-bubble-popup/jquerybubblepopup-themes/blue/middle-left.png | 0.23KB | 0.12KB | ▼ 48.94% |
jquery-bubble-popup/jquerybubblepopup-themes/orange/tail-top.png | 0.31KB | 0.20KB | ▼ 33.65% |
jquery-bubble-popup/jquerybubblepopup-themes/grey/tail-right.png | 0.30KB | 0.19KB | ▼ 36.84% |
jquery-bubble-popup/jquerybubblepopup-themes/all-orange/bottom-right.png | 0.28KB | 0.17KB | ▼ 40.00% |
jquery-bubble-popup/jquerybubblepopup-themes/green/top-right.png | 0.30KB | 0.18KB | ▼ 38.64% |