Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.65ms] Passed 4 tests
Analyzing server-side resources used by Total Cost Input for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.64 ▼0.83 |
Dashboard /wp-admin | 3.31 ▲0.00 | 53.48 ▲5.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.19 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.49 ▼13.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.55 ▲0.64 |
Server storage [IO: ▲3.83MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 367 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Total Cost Input for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.37 ▼1.23 | 1.83 ▲0.07 | 44.08 ▲3.23 |
Dashboard /wp-admin | 2,221 ▲18 | 4.88 ▼0.02 | 101.84 ▼8.18 | 43.20 ▲2.61 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 36.14 ▼5.51 | 37.79 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.49 ▼5.63 | 660.74 ▼72.57 | 58.78 ▲4.91 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.10 | 98.10 ▼6.44 | 41.44 ▼0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, quantity, amount, e-commerce, total
total-cost-input-for-woocommerce/total-cost-input-for-woocommerce.php 85% from 13 tests
"Total Cost Input for WooCommerce" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.5.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin42,041 lines of code in 233 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 8,264 | 17,479 | 34,172 |
PO File | 82 | 2,214 | 2,474 | 7,526 |
JavaScript | 5 | 36 | 60 | 219 |
SVG | 1 | 0 | 1 | 62 |
CSS | 14 | 4 | 4 | 28 |
JSON | 1 | 0 | 0 | 18 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 87.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,296 | |
▷ Static methods | 213 | 16.44% |
▷ Public methods | 904 | 69.75% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 375 | 28.94% |
Functions | 117 | |
▷ Named functions | 116 | 99.15% |
▷ Anonymous functions | 1 | 0.85% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 9.22KB | 3.67KB | ▼ 60.23% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/icon-256x256.png | 6.43KB | 3.35KB | ▼ 47.87% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/screenshot-3.png | 16.25KB | 5.74KB | ▼ 64.71% |