Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▼27.66ms] Passed 4 tests
Analyzing server-side resources used by Kumihimo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 42.68 ▲0.71 |
Dashboard /wp-admin | 3.46 ▲0.15 | 30.44 ▼20.89 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 28.43 ▼17.48 |
Add New Post /wp-admin/post-new.php | 3.46 ▼2.43 | 25.98 ▼65.54 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 27.29 ▼6.74 |
Content Indexing /wp-admin/admin.php?page=kumihimo&tab=content | 3.46 | 28.11 |
Server Settings /wp-admin/admin.php?page=kumihimo&tab=server | 3.46 | 27.83 |
Manage Index /wp-admin/admin.php?page=kumihimo&tab=index | 3.46 | 30.08 |
Wordpress Integration /wp-admin/admin.php?page=kumihimo&tab=integration | 3.46 | 28.14 |
/wp-admin/admin.php?page=kumihimo | 3.46 | 26.08 |
Result Scoring /wp-admin/admin.php?page=kumihimo&tab=scoring | 3.46 | 28.37 |
Server storage [IO: ▲2.65MB] [DB: ▼0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 872 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_facetingoptionswidget |
kumihimo |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_factingselectedwidget |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Kumihimo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲133 | 14.48 ▲0.31 | 2.08 ▲0.04 | 41.51 ▼4.63 |
Dashboard /wp-admin | 2,237 ▲49 | 5.85 ▲0.95 | 112.13 ▲11.83 | 69.50 ▲25.88 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 1.99 ▼0.02 | 37.46 ▼5.19 | 35.16 ▲0.54 |
Add New Post /wp-admin/post-new.php | 45 ▼1,489 | 0.44 ▼22.79 | 0.14 ▼683.21 | 9.22 ▼49.91 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.25 ▲0.02 | 96.57 ▼9.45 | 71.71 ▲27.06 |
Content Indexing /wp-admin/admin.php?page=kumihimo&tab=content | 1,244 | 2.33 | 33.70 | 38.79 |
Server Settings /wp-admin/admin.php?page=kumihimo&tab=server | 1,229 | 2.23 | 32.43 | 37.33 |
Manage Index /wp-admin/admin.php?page=kumihimo&tab=index | 1,226 | 2.23 | 32.70 | 35.48 |
Wordpress Integration /wp-admin/admin.php?page=kumihimo&tab=integration | 1,229 | 2.36 | 40.82 | 34.68 |
/wp-admin/admin.php?page=kumihimo | 1,205 | 2.13 | 25.91 | 27.63 |
Result Scoring /wp-admin/admin.php?page=kumihimo&tab=scoring | 1,226 | 2.33 | 34.57 | 37.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/kumihimo/wp/lib/nhp/options/options.php+226
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_facetingoptionswidget
- widget_factingselectedwidget
- recovery_mode_email_last_sent
- theysaidso_admin_options
Smoke tests 25% 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
- 684 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=kumihimo&tab=scoring
- > Deprecated in wp-content/plugins/kumihimo/wp/lib/nhp/options/options.php+237
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/kumihimo/vendor/electrolinux/phpquery/demo.php
- > /wp-content/plugins/kumihimo/vendor/jeremykendall/php-domain-parser/tests/bootstrap.php
- 309× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Filter\\AbstractFilter' not found in wp-content/plugins/kumihimo/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoDistance.php:17
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/kumihimo/vendor/ruflin/elastica/lib/Elastica/Log.php:12
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Aggregation\\AbstractSimpleAggregation' not found in wp-content/plugins/kumihimo/vendor/ruflin/elastica/lib/Elastica/Aggregation/Stats.php:10
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Aggregation\\AbstractSimpleAggregation' not found in wp-content/plugins/kumihimo/vendor/ruflin/elastica/lib/Elastica/Aggregation/Max.php:10
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Query\\AbstractQuery' not found in wp-content/plugins/kumihimo/vendor/ruflin/elastica/lib/Elastica/Query/Boosting.php:12
- > PHP Fatal error
Uncaught Error: Class 'Purl\\AbstractPart' not found in wp-content/plugins/kumihimo/vendor/jwage/purl/src/Purl/Path.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kumihimo/vendor/jwage/purl/tests/Purl/Test/ParserTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/kumihimo/wp/lib/nhp/options/fields/tags_select/field_tags_select.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kumihimo/vendor/jeremykendall/php-domain-parser/tests/library/Pdp/PublicSuffixListManagerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Elastica\\Aggregation\\AbstractAggregation' not found in wp-content/plugins/kumihimo/vendor/ruflin/elastica/lib/Elastica/Aggregation/IpRange.php:12
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Configure your ElasticServer settings), #2 (Determine what data you want to index), #3 (Alter the result scoring behavior), #4 (Wipe and re-index data is available if needed)
kumihimo/kumihimo.php Passed 13 tests
The main PHP script in "Kumihimo" version 1.0.2 is automatically included on every request by WordPress
60 characters long description:
Replace the WordPresss standard search with a Elasticsearch.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin80,155 lines of code in 478 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 389 | 5,407 | 17,736 | 59,735 |
HTML | 23 | 1,299 | 0 | 14,142 |
JavaScript | 13 | 715 | 516 | 2,479 |
Markdown | 12 | 496 | 0 | 1,380 |
CSS | 4 | 133 | 170 | 1,067 |
XML | 13 | 13 | 0 | 485 |
JSON | 8 | 0 | 0 | 312 |
Ant | 2 | 29 | 6 | 232 |
make | 1 | 36 | 22 | 125 |
YAML | 7 | 32 | 24 | 117 |
Dockerfile | 4 | 20 | 18 | 43 |
Bourne Shell | 1 | 8 | 9 | 37 |
Groovy | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 558.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 11 | |
Traits | 2 | |
Classes | 358 | |
▷ Abstract classes | 29 | 8.10% |
▷ Concrete classes | 329 | 91.90% |
▷ Final classes | 0 | 0.00% |
Methods | 2,235 | |
▷ Static methods | 182 | 8.14% |
▷ Public methods | 2,106 | 94.23% |
▷ Protected methods | 120 | 5.37% |
▷ Private methods | 9 | 0.40% |
Functions | 47 | |
▷ Named functions | 21 | 44.68% |
▷ Anonymous functions | 26 | 55.32% |
Constants | 187 | |
▷ Global constants | 7 | 3.74% |
▷ Class constants | 180 | 96.26% |
▷ Public constants | 180 | 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
364 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp/lib/nhp/options/img/glyphicons/glyphicons_298_hospital.png | 0.13KB | 0.14KB | 0.00% |
wp/lib/nhp/options/img/glyphicons/glyphicons_323_buzz.png | 0.31KB | 0.43KB | 0.00% |
wp/lib/nhp/options/img/glyphicons/glyphicons_215_resize_full.png | 0.24KB | 0.27KB | 0.00% |
wp/lib/nhp/options/img/glyphicons/glyphicons_194_circle_question_mark.png | 0.30KB | 0.31KB | 0.00% |
wp/lib/nhp/options/img/glyphicons/glyphicons_113_justify.png | 0.10KB | 0.10KB | 0.00% |