Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.49ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Chilean Peso
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.51 ▼0.33 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.86 ▼20.26 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.70 ▼0.01 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.86 ▼17.37 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.24 ▲1.59 |
Chilean Pesos /wp-admin/options-general.php?page=my-setting-admin | 3.26 | 29.92 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/woocommerce-chilean-peso-currency/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce Chilean Peso: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.17 ▼1.27 | 1.59 ▼0.62 | 39.83 ▼2.52 |
Dashboard /wp-admin | 2,222 ▲21 | 5.81 ▼0.13 | 104.78 ▼1.69 | 39.62 ▼3.43 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.06 ▲0.04 | 40.09 ▼0.21 | 35.36 ▲3.31 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 17.47 ▼0.17 | 696.07 ▼4.83 | 52.27 ▼13.23 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.21 ▼0.01 | 97.94 ▼3.43 | 41.74 ▼4.06 |
Chilean Pesos /wp-admin/options-general.php?page=my-setting-admin | 804 | 2.02 | 24.16 | 26.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woocommerce-chilean-peso-currency/views/admin/viewAdmin.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-chilean-peso-currency/helpers/rowMeta.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-chilean-peso-currency/classes/MyChileanPesoSettingsPage.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-chilean-peso-currency/classes/MyChileanPesoSettingsPage.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
- Tags: No tags were detected
woocommerce-chilean-peso-currency/woocommerce-chilean-peso.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce Chilean Peso" version 2.5.12.2
The following require your attention:
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "3.0 +")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-chilean-peso-currency.php" instead of "woocommerce-chilean-peso.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected288 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 80 | 109 | 260 |
Markdown | 1 | 13 | 0 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected