89% echbay-search-everything

Code Review | EchBay Search Everything

WordPress plugin EchBay Search Everything scored89%from 54 tests.

About plugin

  • Plugin page: echbay-search-eve...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Aug 16, 2023
  • Number of updates: 53
  • Update frequency: every 40.1 days
  • Top authors: itvn9online (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /15,162 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.58ms] Passed 4 tests

An overview of server-side resources used by EchBay Search Everything
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1058.00 ▲17.09
Dashboard /wp-admin3.40 ▲0.1050.59 ▲2.69
Posts /wp-admin/edit.php3.51 ▲0.1647.99 ▼4.22
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.84 ▼16.99
Media Library /wp-admin/upload.php3.32 ▲0.0937.70 ▲4.21
Search Everything /wp-admin/admin.php?page=echbay-search-everything3.2932.34
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu3.2934.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
category_children
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for EchBay Search Everything
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.20 ▼1.175.18 ▲3.2942.73 ▲3.83
Dashboard /wp-admin2,233 ▲514.85 ▼0.20109.95 ▼0.1138.91 ▼8.12
Posts /wp-admin/edit.php2,119 ▲302.04 ▲0.0035.21 ▼4.9832.23 ▼4.62
Add New Post /wp-admin/post-new.php1,558 ▲2223.31 ▲0.15662.42 ▼11.3657.58 ▲2.40
Media Library /wp-admin/upload.php1,415 ▲304.17 ▼0.0794.96 ▲0.6143.13 ▲2.50
Search Everything /wp-admin/admin.php?page=echbay-search-everything1,1001.8826.6330.45
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu1,1001.8826.1728.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • category_children
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Admin setting for taxonomy or post type.), #2 (Search show in your site.)
You can take inspiration from this readme.txt

echbay-search-everything/ese.php 77% from 13 tests

The main PHP file in "EchBay Search Everything" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("echbay-search-everything.php" instead of "ese.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin403 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP10308397
CSS2002
HTML2002
JavaScript2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity5.69
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected