90% html5-search-box-for-wordpress

Code Review | HTML5 Search for WordPress

WordPress plugin HTML5 Search for WordPress scored90%from 54 tests.

About plugin

  • Plugin page: html5-search-box-...
  • Plugin version: 15.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: May 24, 2012
  • Latest release: Jan 16, 2016
  • Number of updates: 11
  • Update frequency: every 121.2 days
  • Top authors: christopherross (90.91%)jfarsen (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by HTML5 Search for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0551.14 ▲5.70
Dashboard /wp-admin3.35 ▲0.0549.62 ▼2.71
Posts /wp-admin/edit.php3.40 ▲0.0454.66 ▲0.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.37 ▼9.90
Media Library /wp-admin/upload.php3.27 ▲0.0441.85 ▲1.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for HTML5 Search for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.22 ▼0.171.66 ▼0.0340.30 ▼5.93
Dashboard /wp-admin2,192 ▲155.55 ▼0.1392.35 ▼11.9340.21 ▼5.11
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0236.39 ▼4.6037.74 ▼2.07
Add New Post /wp-admin/post-new.php1,535 ▲723.08 ▲0.15667.32 ▼19.2954.82 ▼2.92
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.10100.31 ▼5.8343.62 ▼5.67

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: search, html5

html5-search-box-for-wordpress/html5-search-for-wordpress.php 92% from 13 tests

Analyzing the main PHP file in "HTML5 Search for WordPress" version 15.01
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("html5-search-box-for-wordpress.php" instead of "html5-search-for-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected317 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3126176156
PO File24280126
CSS2231235

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
There were not PNG files found in your plugin