Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.26ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Product Sample for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.71 ▼2.78 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.68 ▼5.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 45.03 ▼3.02 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 78.12 ▼21.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 31.56 ▼2.56 |
Server storage [IO: ▲8.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 263 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
fs_active_plugins |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Product Sample for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.72 ▲0.07 | 1.68 ▲0.01 | 40.56 ▼2.82 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▲0.02 | 91.83 ▼3.45 | 39.01 ▼2.46 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▼0.05 | 39.43 ▼0.57 | 36.46 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 25.18 ▲2.04 | 588.90 ▼42.57 | 55.89 ▲3.59 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.18 ▼0.00 | 98.29 ▼7.12 | 41.84 ▼0.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- theysaidso_admin_options
- fs_active_plugins
- fs_accounts
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- fs_debug_mode
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #11, #13, #2, #4, #5, #7, #9 in free-product-sample/assets to your readme.txt
free-product-sample/free-product-sample.php 92% from 13 tests
The entry point to "Advanced Product Sample for WooCommerce" version 1.2.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.5")
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
Good job! No executable or dangerous file extensions detected42,574 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 8,490 | 18,175 | 37,650 |
PO File | 4 | 1,216 | 1,785 | 3,395 |
JavaScript | 7 | 112 | 110 | 831 |
CSS | 24 | 33 | 55 | 688 |
SVG | 4 | 0 | 0 | 9 |
Markdown | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 86.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,354 | |
▷ Static methods | 201 | 14.84% |
▷ Public methods | 946 | 69.87% |
▷ Protected methods | 17 | 1.26% |
▷ Private methods | 391 | 28.88% |
Functions | 116 | |
▷ Named functions | 115 | 99.14% |
▷ Anonymous functions | 1 | 0.86% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 3.93MB with 1.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/menu-icon.png | 2.02KB | 0.66KB | ▼ 67.52% |
admin/images/help.png | 0.30KB | 0.32KB | 0.00% |
admin/images/thedotstore-images/popular-plugins/hide-shipping-method-for-woocommerce.png | 7.13KB | 2.75KB | ▼ 61.38% |