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.02MB] [CPU: ▼7.12ms] Passed 4 tests
This is a short check of server-side resources used by Elasticommerce Search Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.41 ▼5.05 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.52 ▼17.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.66 ▲0.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.35 ▼6.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.97 ▲6.90 |
Elasticommerce Services /wp-admin/options-general.php?page=wp_elasticsearch | 3.20 | 33.07 |
Server storage [IO: ▲1.87MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 511 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Elasticommerce Search Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.43 ▼0.97 | 7.79 ▲6.14 | 42.78 ▼0.58 |
Dashboard /wp-admin | 2,196 ▲16 | 5.51 ▼0.15 | 89.10 ▼2.48 | 39.57 ▼8.12 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.08 ▲0.11 | 34.56 ▼1.79 | 35.19 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 17.92 ▼5.08 | 639.74 ▼33.67 | 85.13 ▲21.86 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.02 | 98.07 ▲0.14 | 44.69 ▲3.09 |
Elasticommerce Services /wp-admin/options-general.php?page=wp_elasticsearch | 802 | 2.02 | 23.43 | 26.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_elasticsearch
- > Notice in wp-content/plugins/elasticommerce-search-form/elasticommerce-search-form.php+72
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 386× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Test\\Base' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/test/lib/Elastica/Test/Query/RangeTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Filter\\AbstractFilter' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/lib/Elastica/Filter/Range.php:14
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Test\\Base' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/test/lib/Elastica/Test/Suggest/TermTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Rescore\\AbstractRescore' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/lib/Elastica/Rescore/Query.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Elastica\\Connection\\Strategy\\StrategyInterface' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/lib/Elastica/Connection/Strategy/CallbackStrategy.php:11
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Test\\Aggregation\\BaseAggregationTest' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/test/lib/Elastica/Test/Aggregation/DateHistogramTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Response' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/lib/Elastica/Bulk/Response.php:6
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Query\\AbstractQuery' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php:11
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Test\\Base' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/test/lib/Elastica/Test/Bulk/ActionTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Param' not found in wp-content/plugins/elasticommerce-search-form/vendor/ruflin/elastica/lib/Elastica/Aggregation/AbstractAggregation.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Setting Screen.)
elasticommerce-search-form/elasticommerce-search-form.php 85% from 13 tests
The main PHP script in "Elasticommerce Search Form" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Git Repository: Please remove the Git repository from this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected32,926 lines of code in 478 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 440 | 7,501 | 16,067 | 29,866 |
CSS | 2 | 33 | 51 | 1,143 |
Markdown | 8 | 366 | 0 | 1,022 |
JSON | 6 | 1 | 0 | 246 |
Bourne Shell | 2 | 28 | 15 | 131 |
JavaScript | 4 | 32 | 25 | 128 |
YAML | 6 | 34 | 24 | 127 |
make | 1 | 36 | 22 | 125 |
XML | 4 | 0 | 0 | 93 |
Dockerfile | 4 | 20 | 18 | 44 |
Groovy | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 54 | |
Interfaces | 8 | |
Traits | 2 | |
Classes | 427 | |
▷ Abstract classes | 23 | 5.39% |
▷ Concrete classes | 404 | 94.61% |
▷ Final classes | 0 | 0.00% |
Methods | 2,580 | |
▷ Static methods | 45 | 1.74% |
▷ Public methods | 2,420 | 93.80% |
▷ Protected methods | 142 | 5.50% |
▷ Private methods | 18 | 0.70% |
Functions | 15 | |
▷ Named functions | 3 | 20.00% |
▷ Anonymous functions | 12 | 80.00% |
Constants | 175 | |
▷ Global constants | 3 | 1.71% |
▷ Class constants | 172 | 98.29% |
▷ Public constants | 172 | 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
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshot-1.png | 26.68KB | 7.58KB | ▼ 71.60% |
css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |