Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲3.49ms] Passed 4 tests
Server-side resources used by Product Addons for Woocommerce - Product Options with Custom Fields
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.45 ▲2.10 |
Dashboard /wp-admin | 3.89 ▲0.59 | 50.09 ▲2.74 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 53.18 ▲5.26 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 95.66 ▲4.95 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 38.92 ▲4.15 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 244 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Product Addons for Woocommerce - Product Options with Custom Fields: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.35 ▼0.27 | 1.87 ▲0.24 | 42.89 ▼0.43 |
Dashboard /wp-admin | 2,205 ▲31 | 5.63 ▼0.03 | 84.51 ▲0.41 | 39.38 ▼1.73 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.95 ▼0.01 | 40.03 ▲1.53 | 36.32 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.50 ▲0.33 | 609.48 ▼76.18 | 60.13 ▲7.68 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.17 ▼0.03 | 99.59 ▼10.15 | 42.85 ▼4.28 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 Notice
Undefined variable: meta_data in wp-content/plugins/woo-custom-product-addons/includes/order/meta-line-item_v1.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: woocommerce product options, product fields, woocommerce product fields, woocommerce custom product fields, woocommerce product addons...
woo-custom-product-addons/start.php 77% from 13 tests
The principal PHP file in "Product Addons for Woocommerce - Product Options with Custom Fields" v. 3.0.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woo-custom-product-addons.php" instead of "start.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected6,448 lines of code in 215 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,441 | 1,107 | 5,615 |
SVG | 103 | 0 | 0 | 485 |
JavaScript | 76 | 3 | 4 | 194 |
CSS | 7 | 1 | 0 | 111 |
XML | 1 | 10 | 3 | 43 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 39.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 246 | |
▷ Static methods | 17 | 6.91% |
▷ Public methods | 233 | 94.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 5.28% |
Functions | 51 | |
▷ Named functions | 32 | 62.75% |
▷ Anonymous functions | 19 | 37.25% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/warning.png | 1.20KB | 0.47KB | ▼ 61.11% |
assets/images/premium.png | 6.60KB | 4.03KB | ▼ 38.91% |
assets/images/sprite.png | 1.07KB | 0.19KB | ▼ 82.53% |
assets/images/icons/warning.png | 1.20KB | 0.47KB | ▼ 61.11% |
assets/images/icons/sprite.png | 1.07KB | 0.19KB | ▼ 82.53% |