84% search-widget-post-types-for-elementor

Code Review | Search Widget Post Types for Elementor

WordPress plugin Search Widget Post Types for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: search-widget-pos...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Jan 23, 2022
  • Number of updates: 5
  • Update frequency: every 87.6 days
  • Top authors: tarosnow (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 4,007 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.56ms] Passed 4 tests

A check of server-side resources used by Search Widget Post Types for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0253.81 ▲7.98
Dashboard /wp-admin3.31 ▲0.0150.18 ▼4.91
Posts /wp-admin/edit.php3.36 ▲0.0155.90 ▲5.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.20 ▼15.52
Media Library /wp-admin/upload.php3.23 ▲0.0141.27 ▲4.44

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Search Widget Post Types for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3613.64 ▲0.454.63 ▲2.6339.82 ▼3.25
Dashboard /wp-admin2,206 ▼34.85 ▼0.01115.44 ▲1.7344.96 ▲1.63
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0342.00 ▲0.2035.48 ▼6.45
Add New Post /wp-admin/post-new.php1,514 ▼1917.60 ▼5.54666.63 ▼113.2053.85 ▼1.30
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.20101.36 ▼6.7143.60 ▼2.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-widget-post-types-for-elementor/plugin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: custom post types, types, elementor, post type, elementor search widget...

search-widget-post-types-for-elementor/plugin.php 92% from 13 tests

The main PHP file in "Search Widget Post Types for Elementor" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("search-widget-post-types-for-elementor.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111738

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin