Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.16ms] Passed 4 tests
An overview of server-side resources used by Advanced Product Search for WooCommerce - Motive Commerce Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.48 ▼0.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.80 ▼1.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.66 ▼4.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.06 ▼17.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.48 ▲4.26 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
MOTIVE_FIRST_ACTIVATION_DATE |
db_upgraded |
MOTIVE_STORED_VERSION |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Product Search for WooCommerce - Motive Commerce Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.22 ▼0.02 | 1.66 ▼0.04 | 39.09 ▲1.14 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.01 | 96.68 ▲5.50 | 42.45 ▲0.28 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▲0.02 | 35.77 ▼5.40 | 36.48 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 21.08 ▼2.13 | 777.71 ▲129.45 | 54.29 ▲3.95 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.01 | 98.80 ▲5.43 | 44.47 ▲2.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- MOTIVE_FIRST_ACTIVATION_DATE
- widget_theysaidso_widget
- can_compress_scripts
- MOTIVE_STORED_VERSION
Smoke tests 75% from 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 no errors were found, this is by no means 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
Please fix the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Motive\\Woocommerce\\Lang\\LangInterface' not found in wp-content/plugins/motive-commerce-search/src/Lang/SingleLang.php:30
- > PHP Fatal error
Uncaught Error: Class 'Motive\\Woocommerce\\LanguageManager' not found in wp-content/plugins/motive-commerce-search/admin/partials/motive-admin-display.php:36
- > PHP Fatal error
Uncaught Error: Class 'Motive\\Woocommerce\\ScriptLoader' not found in wp-content/plugins/motive-commerce-search/src/ScriptLoaders/ScriptHeadPrinter.php:37
- > PHP Fatal error
Uncaught Error: Class 'Motive\\Woocommerce\\ScriptLoaders\\AbstractScriptEnqueuer' not found in wp-content/plugins/motive-commerce-search/src/ScriptLoaders/ScriptInlineEnqueuer.php:34
- > PHP Fatal error
Uncaught Error: Class 'Motive\\Woocommerce\\ScriptLoaders\\AbstractScriptEnqueuer' not found in wp-content/plugins/motive-commerce-search/src/ScriptLoaders/ScriptSrcEnqueuer.php:31
- > PHP Fatal error
Uncaught Error: Class 'Motive\\Woocommerce\\ScriptLoader' not found in wp-content/plugins/motive-commerce-search/src/ScriptLoaders/AbstractScriptEnqueuer.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Motive\\Woocommerce\\Lang\\LangInterface' not found in wp-content/plugins/motive-commerce-search/src/Lang/WpmlLang.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce search, instant search, site search, product search
motive-commerce-search/motive.php 77% from 13 tests
The main file in "Advanced Product Search for WooCommerce - Motive Commerce Search" v. 1.26.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("motive-commerce-search.php" instead of "motive.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,829 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 798 | 3,477 | 3,614 |
PO File | 7 | 77 | 19 | 167 |
JSON | 1 | 0 | 0 | 28 |
XML | 1 | 6 | 27 | 18 |
JavaScript | 1 | 0 | 20 | 1 |
SVG | 1 | 1 | 21 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 5 | 6.49% |
▷ Concrete classes | 72 | 93.51% |
▷ Final classes | 0 | 0.00% |
Methods | 258 | |
▷ Static methods | 71 | 27.52% |
▷ Public methods | 203 | 78.68% |
▷ Protected methods | 20 | 7.75% |
▷ Private methods | 35 | 13.57% |
Functions | 17 | |
▷ Named functions | 6 | 35.29% |
▷ Anonymous functions | 11 | 64.71% |
Constants | 51 | |
▷ Global constants | 1 | 1.96% |
▷ Class constants | 50 | 98.04% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin