90% minimal-search-term-highlight

Code Review | Minimal Search Term Highlight

WordPress plugin Minimal Search Term Highlight scored90%from 54 tests.

About plugin

  • Plugin page: minimal-search-te...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.0.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2018
  • Latest release: Dec 14, 2018
  • Number of updates: 10
  • Update frequency: every 12.7 days
  • Top authors: mjke87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.73ms] Passed 4 tests

This is a short check of server-side resources used by Minimal Search Term Highlight
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.87 ▼3.11
Dashboard /wp-admin3.31 ▲0.0150.06 ▼3.82
Posts /wp-admin/edit.php3.36 ▲0.0147.85 ▼4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.56 ▼7.95
Media Library /wp-admin/upload.php3.24 ▲0.0139.27 ▲1.98

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

Browser metrics Passed 4 tests

An overview of browser requirements for Minimal Search Term Highlight
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.041.86 ▲0.3242.08 ▼4.72
Dashboard /wp-admin2,192 ▲125.58 ▼0.1193.11 ▲0.0742.39 ▼3.08
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0441.59 ▲2.9938.53 ▲6.04
Add New Post /wp-admin/post-new.php1,526 ▼023.77 ▲0.67675.37 ▼1.6565.65 ▲11.21
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.00105.37 ▼2.1646.09 ▲3.32

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: minimalist, search-results, highlight, search

minimal-search-term-highlight/minimal-search-term-highlight.php Passed 13 tests

This is the main PHP file of "Minimal Search Term Highlight" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Ultra-minimalist plugin to highlight search results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162132

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected