84% beautiful-multiselect-search-lite

Code Review | BeautifulmultiselectsearchLite

WordPress plugin BeautifulmultiselectsearchLite scored84%from 54 tests.

About plugin

  • Plugin page: beautiful-multise...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2017
  • Latest release: Dec 11, 2017
  • Number of updates: 18
  • Update frequency: every 0.7 days
  • Top authors: fmelcare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,137 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▲3.79ms] Passed 4 tests

Analyzing server-side resources used by BeautifulmultiselectsearchLite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2344.15 ▲7.55
Dashboard /wp-admin3.52 ▲0.2150.65 ▲1.00
Posts /wp-admin/edit.php3.57 ▲0.2150.07 ▲6.94
Add New Post /wp-admin/post-new.php6.12 ▲0.2392.40 ▲8.01
Media Library /wp-admin/upload.php3.44 ▲0.2137.53 ▼0.33

Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
cpc_bms_admin_text_mod
theysaidso_admin_options
cpc_bms_advanced_admin_options
widget_recent-posts
cpc_bms_admin_options
widget_beautiful-multiselect-search-lite
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BeautifulmultiselectsearchLite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.67 ▼0.791.81 ▲0.0242.70 ▲1.66
Dashboard /wp-admin2,243 ▲555.04 ▼0.8499.50 ▲1.0784.01 ▲41.93
Posts /wp-admin/edit.php2,128 ▲392.29 ▲0.3035.57 ▼0.5033.92 ▼0.49
Add New Post /wp-admin/post-new.php1,541 ▲2717.73 ▲0.17718.82 ▲35.9237.20 ▼24.21
Media Library /wp-admin/upload.php1,422 ▲314.33 ▲0.15101.51 ▲2.8849.10 ▲4.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • cpc_bms_admin_text_mod
    • cpc_bms_advanced_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • cpc_bms_admin_options
    • widget_beautiful-multiselect-search-lite
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/beautiful-multiselect-search-lite/class.beautiful-multiselect-search-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beautiful-multiselect-search-lite/admintemplate/admin-page-template-faq.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-multiselect-search-lite/admintemplate/admin-page-template-default.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'cpc_bms_PageTemplater' not found in wp-content/plugins/beautiful-multiselect-search-lite/class.beautiful-multiselect-search-admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beautiful-multiselect-search-lite/admintemplate/admin-page-template-options.php:325
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-multiselect-search-lite/admintemplate/advancedadmin-page-template-options.php:201
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-multiselect-search-lite/admintemplate/admin-page-template-text.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-multiselect-search-lite/css/bms-admin-options-head.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/beautiful-multiselect-search-lite/template-beautiful-multiselect-search1.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/beautiful-multiselect-search-lite/beautiful-multiselect-search.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: search, faceted, category, filter, post...

beautiful-multiselect-search-lite/beautiful-multiselect-search.php 85% from 13 tests

The entry point to "BeautifulmultiselectsearchLite" version 1.5.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 407 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("beautiful-multiselect-search-lite.php" instead of "beautiful-multiselect-search.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,753 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP141182672,328
PO File4372542864
CSS24142302
JavaScript31779259

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity40.33
▷ Minimum class complexity6.00
▷ Maximum class complexity86.00
Average method complexity6.62
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods628.57%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/point-interrogationx2.png1.57KB0.79KB▼ 50.06%
images/point-interrogation-yellow.png0.83KB0.48KB▼ 42.32%
images/point-interrogation-purple.png0.86KB0.48KB▼ 43.96%
images/point-interrogationx2black.png1.60KB0.79KB▼ 50.97%
images/point-interrogation-red.png0.78KB0.46KB▼ 41.72%