84% lsx-search

Code Review | LSX Search

WordPress plugin LSX Search scored84%from 54 tests.

About plugin

  • Plugin page: lsx-search
  • Plugin version: 1.5.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 26, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 23
  • Update frequency: every 84.0 days
  • Top authors: feedmymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /4,128 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8247.40 ▲6.83
Dashboard /wp-admin4.50 ▲1.1555.71 ▼2.67
Posts /wp-admin/edit.php4.52 ▲1.1651.41 ▲6.52
Add New Post /wp-admin/post-new.php7.02 ▲1.1395.89 ▲1.25
Media Library /wp-admin/upload.php4.36 ▲1.1243.64 ▲8.07
LSX Search /wp-admin/options-general.php?page=lsx-search-settings4.8140.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.36 ▲0.001.80 ▲0.2642.00 ▲0.21
Dashboard /wp-admin2,214 ▲405.64 ▲0.0585.74 ▼2.0541.27 ▲1.78
Posts /wp-admin/edit.php2,119 ▲192.06 ▲0.0535.99 ▲1.7434.41 ▼1.46
Add New Post /wp-admin/post-new.php1,540 ▲1123.19 ▲0.07666.74 ▲56.5660.36 ▲7.39
Media Library /wp-admin/upload.php1,419 ▲194.25 ▲0.0399.70 ▼10.4341.92 ▼6.79
LSX Search /wp-admin/options-general.php?page=lsx-search-settings1,2482.2927.5633.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

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:
LanguageFilesBlank linesComment linesLines of code
PO File12114,37718,56932,461
PHP672,4676,7488,855
CSS165281,2115,800
Sass245073692,815
JavaScript144427001,754
Markdown33140837
YAML450185
XML1141150

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 code0.49
Average class complexity22.01
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes77
▷ Abstract classes911.69%
▷ Concrete classes6888.31%
▷ Final classes00.00%
Methods644
▷ Static methods9514.75%
▷ Public methods54484.47%
▷ Protected methods9013.98%
▷ Private methods101.55%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.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
FileSize - originalSize - compressedSavings
vendor/CMB2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/CMB2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
vendor/CMB2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
vendor/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
vendor/CMB2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%