90% wp-live-post-search

Code Review | WP Live Post Search

WordPress plugin WP Live Post Search scored 90% from 54 tests.

About plugin

  • Plugin page: wp-live-post-search
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Mar 13, 2019
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: saurav.rox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 469 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.19ms] Passed 4 tests

A check of server-side resources used by WP Live Post Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.08 ▲1.37
Dashboard /wp-admin3.34 ▲0.0346.19 ▼0.35
Posts /wp-admin/edit.php3.39 ▲0.0344.67 ▼5.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.10 ▼16.65
Media Library /wp-admin/upload.php3.26 ▲0.0334.92 ▲1.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Live Post Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲12013.62 ▼0.6820.34 ▲18.4141.82 ▼3.26
Dashboard /wp-admin2,219 ▲345.81 ▲0.00100.32 ▲0.0841.46 ▼2.00
Posts /wp-admin/edit.php2,102 ▲132.06 ▲0.0136.41 ▼3.5735.92 ▼2.18
Add New Post /wp-admin/post-new.php1,546 ▲423.37 ▲5.12637.16 ▲32.3860.16 ▲1.61
Media Library /wp-admin/upload.php1,398 ▲74.25 ▲0.0298.92 ▲0.7543.31 ▼0.22

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 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
6 plugin tags: ajax search, search, live search, ajax, live...

wp-live-post-search/wp-live-post-search.php Passed 13 tests

"WP Live Post Search" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
The plugin provides a search form which provides live search functionality of any posts/pages.

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
There were no executable files found in this plugin6,925 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37961,0146,799
PHP32039126

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin