Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.54MB] [CPU: ▼1.90ms] 75% from 4 tests
A check of server-side resources used by Premmerce Product Search for WooCommerce
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,738.20ms on /wp-admin/admin.php?page=premmerce-search-admin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 38.70 ▲0.94 |
Dashboard /wp-admin | 3.92 ▲0.57 | 49.33 ▼16.04 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 52.10 ▲9.05 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 95.17 ▲0.30 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 41.82 ▲7.22 |
Search settings /wp-admin/admin.php?page=premmerce-search-admin | 3.92 | 1,738.20 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.03 | 39.52 |
Server storage [IO: ▲4.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 434 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_premmerce_search_words |
New WordPress options |
---|
widget_recent-posts |
fs_accounts |
fs_active_plugins |
premmerce_search_min_symbols_to_search |
fs_debug_mode |
premmerce_search_results_num |
premmerce_search_autocomplete_fields |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Premmerce Product Search for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 13.23 ▼1.35 | 1.62 ▼0.15 | 32.48 ▼10.30 |
Dashboard /wp-admin | 2,269 ▲84 | 5.87 ▲0.01 | 95.50 ▼5.41 | 43.09 ▼0.19 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.05 ▲0.06 | 41.97 ▲4.93 | 38.38 ▲5.31 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 22.98 ▲5.35 | 576.60 ▼107.16 | 47.60 ▼2.07 |
Media Library /wp-admin/upload.php | 1,457 ▲66 | 4.26 ▼0.02 | 101.37 ▼0.53 | 42.81 ▼2.56 |
Search settings /wp-admin/admin.php?page=premmerce-search-admin | 1,019 | 1.76 | 30.23 | 58.01 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,123 | 1.84 | 23.69 | 27.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/premmerce-search/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_active_plugins
- widget_recent-posts
- fs_debug_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- fs_accounts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Yaoi\\Command' not found in wp-content/plugins/premmerce-search/vendor/behat/transliterator/src/Behat/Transliterator/SyncTool.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SDK\\V2\\Plugin\\PluginInterface' not found in wp-content/plugins/premmerce-search/src/SearchPlugin.php:16
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: product search, live product search, ajax product search, woocommerce product search
premmerce-search/premmerce-search.php 85% from 13 tests
"Premmerce Product Search for WooCommerce" version 2.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "3.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin40,010 lines of code in 367 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 334 | 8,434 | 18,206 | 38,580 |
PO File | 5 | 193 | 218 | 508 |
JavaScript | 5 | 63 | 97 | 290 |
SVG | 1 | 0 | 1 | 226 |
JSON | 3 | 0 | 0 | 150 |
CSS | 15 | 26 | 2 | 141 |
Markdown | 4 | 75 | 0 | 115 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 73.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 3 | 4.76% |
▷ Concrete classes | 60 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 1,389 | |
▷ Static methods | 226 | 16.27% |
▷ Public methods | 983 | 70.77% |
▷ Protected methods | 18 | 1.30% |
▷ Private methods | 388 | 27.93% |
Functions | 111 | |
▷ Named functions | 99 | 89.19% |
▷ Anonymous functions | 12 | 10.81% |
Constants | 152 | |
▷ Global constants | 98 | 64.47% |
▷ Class constants | 54 | 35.53% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/admin/js/pricing-page/fde48e4609a6ddc11d639fc2421f2afd.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/admin/js/pricing-page/fe6924369fdcfe0790df1755f773ff60.png | 1.21KB | 0.97KB | ▼ 19.69% |
assets/admin/js/pricing-page/c03f665db27af43971565560adfba594.png | 6.06KB | 3.01KB | ▼ 50.27% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |