90% easy-search

Code Review | Easy Search

WordPress plugin Easy Search scored90%from 54 tests.

About plugin

  • Plugin page: easy-search
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Aug 25, 2023
  • Number of updates: 7
  • Update frequency: every 168.1 days
  • Top authors: surror (71.43%)Mahesh901122 (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /608 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.21MB] [CPU: ▼2.57ms] Passed 4 tests

Server-side resources used by Easy Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2138.35 ▲0.33
Dashboard /wp-admin3.51 ▲0.2044.84 ▼2.70
Posts /wp-admin/edit.php3.63 ▲0.2646.15 ▲1.10
Add New Post /wp-admin/post-new.php6.10 ▲0.2191.93 ▼8.99
Media Library /wp-admin/upload.php3.43 ▲0.2037.31 ▲2.51

Server storage [IO: ▲0.10MB] [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: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲16013.75 ▼0.629.17 ▲7.3438.62 ▲1.75
Dashboard /wp-admin2,237 ▲605.65 ▲0.1387.46 ▼0.9836.00 ▼3.36
Posts /wp-admin/edit.php2,143 ▲431.99 ▼0.0237.66 ▲4.6636.81 ▲2.68
Add New Post /wp-admin/post-new.php6,218 ▲4,69219.35 ▼3.77905.98 ▲225.6762.97 ▲11.05
Media Library /wp-admin/upload.php1,439 ▲454.22 ▲0.0693.23 ▼1.5839.55 ▼4.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: quick search, gutenberg, autocomplete, ajax search, search

easy-search/easy-search.php 92% from 13 tests

Analyzing the main PHP file in "Easy Search" version 1.2.3
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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 detected1,712 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP141815981,183
CSS3474243
JSON200197
JavaScript3221381
SVG2008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.88
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods70
▷ Static methods2130.00%
▷ Public methods6390.00%
▷ Protected methods00.00%
▷ Private methods710.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin