Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.48ms] Passed 4 tests
A check of server-side resources used by Product Finder For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.42 ▲2.40 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.38 ▼10.71 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 47.79 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 96.22 ▲4.09 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 35.68 ▲0.87 |
Server storage [IO: ▲7.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 270 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
fs_debug_mode |
fs_accounts |
fs_active_plugins |
widget_recent-comments |
Browser metrics Passed 4 tests
Product Finder For WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.28 | 1.84 ▲0.23 | 43.04 ▼1.95 |
Dashboard /wp-admin | 2,192 ▲15 | 5.56 ▼0.08 | 93.57 ▲1.79 | 40.26 ▼5.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▲0.00 | 38.70 ▲1.01 | 35.23 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.17 ▲0.05 | 606.21 ▼45.79 | 65.24 ▲13.49 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.21 ▼0.01 | 96.26 ▼9.18 | 42.42 ▲1.39 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
- widget_theysaidso_widget
- can_compress_scripts
- fs_debug_mode
- fs_active_plugins
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #10, #2, #2, #3, #3, #4, #4, #5, #5, #6, #6, #7, #8, #9 in woo-product-finder/assets to your readme.txt
woo-product-finder/woo-product-finder.php 92% from 13 tests
The primary PHP file in "Product Finder For WooCommerce" version 1.4.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 339 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected49,306 lines of code in 178 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,796 | 18,735 | 39,632 |
JavaScript | 9 | 438 | 404 | 4,542 |
PO File | 4 | 992 | 1,340 | 2,400 |
CSS | 21 | 41 | 70 | 1,895 |
SVG | 4 | 0 | 0 | 688 |
XML | 1 | 12 | 19 | 147 |
Markdown | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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.58 |
Average class complexity | 90.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,374 | |
▷ Static methods | 201 | 14.63% |
▷ Public methods | 969 | 70.52% |
▷ Protected methods | 17 | 1.24% |
▷ Private methods | 388 | 28.24% |
Functions | 111 | |
▷ Named functions | 108 | 97.30% |
▷ Anonymous functions | 3 | 2.70% |
Constants | 274 | |
▷ Global constants | 226 | 82.48% |
▷ Class constants | 48 | 17.52% |
▷ Public constants | 48 | 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
30 PNG files occupy 2.03MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/advance-flat-rate.png | 17.28KB | 7.41KB | ▼ 57.13% |
admin/images/arrow_img.png | 1.14KB | 0.18KB | ▼ 84.62% |
admin/images/wizard_setting.png | 129.19KB | 37.34KB | ▼ 71.10% |
admin/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |