Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.64ms] Passed 4 tests
Server-side resources used by Product Options and Price Calculation Formulas for WooCommerce – Uni CPO
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.09 ▼6.23 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.04 ▼4.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.99 ▼4.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.25 ▼3.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.00 ▼10.72 |
Server storage [IO: ▲9.28MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 457 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Product Options and Price Calculation Formulas for WooCommerce – Uni CPO: 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,794 ▲47 | 14.70 ▲0.49 | 1.81 ▲0.04 | 44.97 ▲0.49 |
Dashboard /wp-admin | 2,199 ▲24 | 5.59 ▲0.01 | 96.93 ▼23.05 | 45.55 ▲0.25 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.03 | 43.42 ▲1.05 | 39.85 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,530 ▼6 | 23.22 ▲0.20 | 633.87 ▼31.61 | 57.16 ▲6.90 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▼0.09 | 109.55 ▲8.74 | 47.63 ▲3.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% 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
8 plugin tags: maths formula, woocommerce plugins, custom options, product visual builder, price calculation...
uni-woo-custom-product-options/uni-cpo.php 62% from 13 tests
"Product Options and Price Calculation Formulas for WooCommerce – Uni CPO" version 4.9.32's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.6" instead of "7.1.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("uni-woo-custom-product-options.php" instead of "uni-cpo.php")
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 74 characters long)
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin88,057 lines of code in 380 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 294 | 10,879 | 22,470 | 56,434 |
PO File | 8 | 6,806 | 11,930 | 16,961 |
JavaScript | 30 | 1,407 | 1,827 | 9,425 |
SVG | 13 | 22 | 20 | 3,914 |
CSS | 35 | 256 | 267 | 1,323 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 28.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 218 | |
▷ Abstract classes | 4 | 1.83% |
▷ Concrete classes | 214 | 98.17% |
▷ Final classes | 3 | 1.40% |
Methods | 2,095 | |
▷ Static methods | 413 | 19.71% |
▷ Public methods | 1,658 | 79.14% |
▷ Protected methods | 35 | 1.67% |
▷ Private methods | 402 | 19.19% |
Functions | 262 | |
▷ Named functions | 189 | 72.14% |
▷ Anonymous functions | 73 | 27.86% |
Constants | 156 | |
▷ Global constants | 109 | 69.87% |
▷ Class constants | 47 | 30.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/border-solid.png | 0.91KB | 0.08KB | ▼ 91.11% |
assets/images/autosave.png | 1.53KB | 0.56KB | ▼ 63.43% |
assets/images/border-dashed.png | 0.92KB | 0.10KB | ▼ 88.79% |
assets/images/linked.png | 1.04KB | 0.22KB | ▼ 79.01% |
assets/images/blank.png | 1.63KB | 0.12KB | ▼ 92.87% |