84% simple-html-search

Code Review | Simple Html Search

WordPress plugin Simple Html Search scored84%from 54 tests.

About plugin

  • Plugin page: simple-html-search
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2023
  • Latest release: May 31, 2023
  • Number of updates: 18
  • Update frequency: every 5.1 days
  • Top authors: fabiohh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /215 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.67MB] [CPU: ▼18.86ms] Passed 4 tests

Analyzing server-side resources used by Simple Html Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.98 ▲1.65
Dashboard /wp-admin3.32 ▼0.0243.64 ▼13.99
Posts /wp-admin/edit.php3.37 ▲0.0247.93 ▲2.99
Add New Post /wp-admin/post-new.php3.19 ▼2.6934.04 ▼63.33
Media Library /wp-admin/upload.php3.24 ▲0.0234.88 ▲0.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 458 new files
Database: 1 new table, 6 new options
New tables
wp_quetzal_simple_html_search
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Html Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲10715.41 ▲1.155.81 ▲4.1732.98 ▼6.81
Dashboard /wp-admin2,241 ▲496.26 ▲1.32113.25 ▲6.7736.19 ▼3.65
Posts /wp-admin/edit.php2,124 ▲353.13 ▲1.0843.73 ▲8.6933.31 ▼0.23
Add New Post /wp-admin/post-new.php1,709 ▲19026.33 ▲3.00617.42 ▼51.2732.54 ▼20.53
Media Library /wp-admin/upload.php1,493 ▲1115.53 ▲1.3198.21 ▲0.3140.91 ▼2.18

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-html-search/includes/QuetzalShsAdmin.php:14
    • > PHP Notice
      Trying to get property 'base_prefix' of non-object in wp-content/plugins/simple-html-search/includes/QuetzalShsAdmin.php on line 12

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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

simple-html-search/simple-html-search.php Passed 13 tests

The main PHP script in "Simple Html Search" version 1.0 is automatically included on every request by WordPress
98 characters long description:
A complete customizable search bar and results with html/css (support at fabiopallini01@gmail.com)

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
Success! There were no dangerous files found in this plugin280,722 lines of code in 457 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44910,48926,191280,231
PHP57747294
Markdown1760126
CSS214571

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions8
▷ Named functions337.50%
▷ Anonymous functions562.50%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin