78% search-manager

Code Review | Search Manager Lite

WordPress plugin Search Manager Lite scored78%from 54 tests.

About plugin

  • Plugin page: search-manager
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.0
  • WordPress version: 6.3.1
  • First release: Apr 27, 2016
  • Latest release: Jan 26, 2021
  • Number of updates: 18
  • Update frequency: every 96.6 days
  • Top authors: TeamDev Ltd (72.22%)custom4web (33.33%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /10,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲1.85ms] Passed 4 tests

This is a short check of server-side resources used by Search Manager Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.13 ▲0.86
Dashboard /wp-admin3.42 ▲0.1154.92 ▲8.00
Posts /wp-admin/edit.php3.53 ▲0.1749.28 ▲0.90
Add New Post /wp-admin/post-new.php5.99 ▲0.10101.18 ▲4.20
Media Library /wp-admin/upload.php3.34 ▲0.1037.48 ▲1.44
Search Manager Lite /wp-admin/options-general.php?page=wcstm-lite3.3032.89

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Search Manager Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲14114.75 ▲0.571.69 ▼0.4243.42 ▼6.42
Dashboard /wp-admin2,285 ▲975.91 ▲1.0398.81 ▼29.4540.08 ▼4.96
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0140.61 ▲2.5834.48 ▼1.71
Add New Post /wp-admin/post-new.php1,537 ▲423.27 ▲0.22646.81 ▲72.1151.71 ▼4.47
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.0199.59 ▲1.9541.81 ▼0.69
Search Manager Lite /wp-admin/options-general.php?page=wcstm-lite8652.0123.6825.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/search-manager/admin/partials/tab-premium.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/search-manager/admin/partials/settings-sidebar.php:5
    • > PHP Warning
      Use of undefined constant WCSTM_LITE_PLUGIN_URL - assumed 'WCSTM_LITE_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/search-manager/admin/partials/settings-sidebar.php on line 3

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (25 tag instead of maximum 10)
The official readme.txt is a good inspiration

search-manager/search-manager.php 85% from 13 tests

The principal PHP file in "Search Manager Lite" v. 1.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: The description should be shorter than 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected731 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP922681679
CSS10052

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity18.25
▷ Minimum class complexity5.00
▷ Maximum class complexity42.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3394.29%
▷ Protected methods25.71%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/search-manager-icon.png23.94KB2.63KB▼ 88.99%