Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▲2.98ms] Passed 4 tests
A check of server-side resources used by LSX Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.82 | 47.40 ▲6.83 |
Dashboard /wp-admin | 4.50 ▲1.15 | 55.71 ▼2.67 |
Posts /wp-admin/edit.php | 4.52 ▲1.16 | 51.41 ▲6.52 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 95.89 ▲1.25 |
Media Library /wp-admin/upload.php | 4.36 ▲1.12 | 43.64 ▲8.07 |
LSX Search /wp-admin/options-general.php?page=lsx-search-settings | 4.81 | 40.75 |
Server storage [IO: ▲3.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 402 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
LSX Search: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.36 ▲0.00 | 1.80 ▲0.26 | 42.00 ▲0.21 |
Dashboard /wp-admin | 2,214 ▲40 | 5.64 ▲0.05 | 85.74 ▼2.05 | 41.27 ▲1.78 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.06 ▲0.05 | 35.99 ▲1.74 | 34.41 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,540 ▲11 | 23.19 ▲0.07 | 666.74 ▲56.56 | 60.36 ▲7.39 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.25 ▲0.03 | 99.70 ▼10.43 | 41.92 ▼6.79 |
LSX Search /wp-admin/options-general.php?page=lsx-search-settings | 1,248 | 2.29 | 27.56 | 33.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
- 42× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(LSX_SEARCH_PATHvendor/CMB2/init.php): failed to open stream: No such file or directory in wp-content/plugins/lsx-search/classes/class-lsx-search.php on line 76
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/lsx-search/vendor/CMB2/includes/rest-api/CMB2_REST.php:19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: search, facetwp, category, lsx, gutenberg
lsx-search/lsx-search.php Passed 13 tests
The principal PHP file in "LSX Search" v. 1.5.7 is loaded by WordPress automatically on each request
72 characters long description:
The LSX Search extension improves the search result pages for LSX Theme.
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 plugin52,757 lines of code in 250 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,377 | 18,569 | 32,461 |
PHP | 67 | 2,467 | 6,748 | 8,855 |
CSS | 16 | 528 | 1,211 | 5,800 |
Sass | 24 | 507 | 369 | 2,815 |
JavaScript | 14 | 442 | 700 | 1,754 |
Markdown | 3 | 314 | 0 | 837 |
YAML | 4 | 5 | 0 | 185 |
XML | 1 | 14 | 11 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 9 | 11.69% |
▷ Concrete classes | 68 | 88.31% |
▷ Final classes | 0 | 0.00% |
Methods | 644 | |
▷ Static methods | 95 | 14.75% |
▷ Public methods | 544 | 84.47% |
▷ Protected methods | 90 | 13.98% |
▷ Private methods | 10 | 1.55% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 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 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/CMB2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vendor/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/CMB2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |