Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.63ms] Passed 4 tests
A check of server-side resources used by Solr Search for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.86 ▼8.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.60 ▼0.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.87 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.55 ▼18.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.66 ▲0.60 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 404 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Solr Search for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼1.00 | 1.63 ▼0.10 | 43.69 ▲1.18 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▲1.02 | 105.50 ▼5.75 | 40.85 ▼4.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.01 | 38.87 ▼1.46 | 35.37 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.09 ▲4.88 | 654.86 ▲41.60 | 50.01 ▲0.97 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▲0.07 | 95.94 ▼9.13 | 43.71 ▼3.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 249× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Solarium\\QueryType\\Update\\Query\\Command\\AbstractCommand' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/QueryType/Update/Query/Command/Delete.php:12
- > PHP Fatal error
Uncaught Error: Class 'Solarium\\Core\\Query\\AbstractQuery' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/QueryType/Terms/Query.php:18
- > PHP Fatal error
Uncaught Error: Class 'Solarium\\Core\\Configurable' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/Component/DisMax/BoostQuery.php:13
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\EventDispatcher\\Event' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/Core/Event/PostCreateResult.php:13
- > PHP Fatal error
Uncaught Error: Class 'Solarium\\Component\\Facet\\AbstractFacet' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/Component/Facet/Pivot.php:12
- > PHP Fatal error
Uncaught Error: Class 'Solarium\\QueryType\\Server\\CoreAdmin\\Query\\Action\\AbstractCoreAction' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/QueryType/Server/CoreAdmin/Query/Action/AbstractAsyncAction.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Solarium\\Component\\RequestBuilder\\ComponentRequestBuilderInterface' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/Component/RequestBuilder/EdisMax.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/solr-power/templates/solr-search-results.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/solr-power/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Solarium\\Core\\ConfigurableInterface' not found in wp-content/plugins/solr-power/vendor/solarium/solarium/src/Core/Query/QueryInterface.php:10
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: search
solr-power/solr-power.php 92% from 13 tests
The primary PHP file in "Solr Search for WordPress" version 2.5.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin23,423 lines of code in 394 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 366 | 5,302 | 19,373 | 21,540 |
CSS | 6 | 34 | 4 | 504 |
Markdown | 6 | 146 | 0 | 491 |
JavaScript | 6 | 48 | 4 | 280 |
JSON | 3 | 0 | 0 | 239 |
Sass | 2 | 16 | 0 | 165 |
XML | 2 | 31 | 6 | 164 |
YAML | 2 | 10 | 2 | 39 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 84 | |
Interfaces | 27 | |
Traits | 24 | |
Classes | 311 | |
▷ Abstract classes | 18 | 5.79% |
▷ Concrete classes | 293 | 94.21% |
▷ Final classes | 0 | 0.00% |
Methods | 2,327 | |
▷ Static methods | 42 | 1.80% |
▷ Public methods | 2,194 | 94.28% |
▷ Protected methods | 95 | 4.08% |
▷ Private methods | 38 | 1.63% |
Functions | 58 | |
▷ Named functions | 11 | 18.97% |
▷ Anonymous functions | 47 | 81.03% |
Constants | 149 | |
▷ Global constants | 5 | 3.36% |
▷ Class constants | 144 | 96.64% |
▷ Public constants | 144 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin