Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▼2.07ms] Passed 4 tests
This is a short check of server-side resources used by eCommerce Keep The Change
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 41.41 ▲0.43 |
Dashboard /wp-admin | 3.75 ▲0.40 | 57.20 ▼4.13 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 50.32 ▲5.82 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 83.11 ▼6.90 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 37.51 ▲2.31 |
Woo KTC /wp-admin/options-general.php?page=wktc_welcome | 3.58 | 36.20 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.67 | 35.35 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
eCommerce Keep The Change: 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,860 ▲114 | 14.85 ▲0.25 | 2.25 ▲0.31 | 41.45 ▲3.49 |
Dashboard /wp-admin | 2,241 ▲53 | 4.87 ▼1.03 | 104.51 ▲0.50 | 43.30 ▼0.33 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.05 ▲0.05 | 36.61 ▲1.01 | 39.74 ▲6.48 |
Add New Post /wp-admin/post-new.php | 1,561 ▲42 | 23.35 ▲0.09 | 695.34 ▼1.22 | 64.36 ▲13.06 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.24 ▲0.05 | 98.89 ▼1.73 | 47.78 ▲2.66 |
Woo KTC /wp-admin/options-general.php?page=wktc_welcome | 886 | 2.20 | 28.64 | 56.26 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 968 | 2.09 | 27.69 | 31.88 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-keep-the-change/assets/tgmpa/wktc-tgmpa.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: woocommerce, ecommerce keep the change, woo round off, woocommerce add fee, woo...
woo-keep-the-change/woo-keep-the-change.php 92% from 13 tests
The entry point to "eCommerce Keep The Change" version 2.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,232 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 616 | 1,909 | 2,148 |
Markdown | 2 | 35 | 0 | 72 |
JSON | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 42.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 5 | 4.85% |
▷ Public methods | 80 | 77.67% |
▷ Protected methods | 23 | 22.33% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/welcome/img/wooktc-enabled.png | 38.06KB | 11.06KB | ▼ 70.94% |
assets/admin/welcome/img/wooktc-disabled.png | 20.24KB | 8.29KB | ▼ 59.02% |
assets/admin/welcome/img/logo.png | 7.29KB | 4.02KB | ▼ 44.82% |