83% ehive-search-widget

Code Review | eHive Search widget

WordPress plugin eHive Search widget scored83%from 54 tests.

About plugin

  • Plugin page: ehive-search-widget
  • Plugin version: 2.4.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.0
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Jun 1, 2022
  • Number of updates: 25
  • Update frequency: every 133.8 days
  • Top authors: vernonsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,383 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.00MB] [CPU: ▼9.99ms] Passed 4 tests

Server-side resources used by eHive Search widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.36 ▼3.31
Dashboard /wp-admin3.31 ▼0.0350.57 ▼13.43
Posts /wp-admin/edit.php3.37 ▲0.0148.25 ▼1.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.02 ▼21.30
Media Library /wp-admin/upload.php3.24 ▲0.0134.99 ▲1.87

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

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

Browser metrics Passed 4 tests

Checking browser requirements for eHive Search widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.25 ▼0.021.84 ▲0.0543.08 ▼1.60
Dashboard /wp-admin2,195 ▲145.55 ▼0.1687.20 ▼25.8344.39 ▼3.46
Posts /wp-admin/edit.php2,100 ▲31.97 ▲0.0236.65 ▼1.4537.07 ▲2.14
Add New Post /wp-admin/post-new.php1,538 ▲318.11 ▼0.08632.73 ▼47.6264.19 ▲0.27
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.02108.14 ▲12.3647.34 ▲6.77

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_ehivesearch_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ehive-search-widget/EHiveSearch_Widget.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (screenshot_1.png), #2 (screenshot_2.png)
The official readme.txt is a good inspiration

ehive-search-widget/EHiveSearch_Widget.php 85% from 13 tests

Analyzing the main PHP file in "eHive Search widget" version 2.4.0
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("ehive-search-widget.php" instead of "EHiveSearch_Widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected99 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1262379
CSS161420

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/images/search.png0.43KB0.44KB0.00%