88% admin-live-search

Code Review | Admin Live Search

WordPress plugin Admin Live Search scored 88% from 54 tests.

About plugin

  • Plugin page: admin-live-search
  • Plugin version: 3.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 5.8.1
  • First release: May 28, 2018
  • Latest release: Mar 27, 2019
  • Number of updates: 15
  • Update frequency: every 20.3 days
  • Top authors: humbertosilva (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 1,485 total downloads

Benchmarks

Plugin footprint Passed 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.41MB] [CPU: ▼141.20ms] Passed 4 tests

This is a short check of server-side resources used by Admin Live Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.23 ▲0.5131.01 ▲15.17
Dashboard /wp-admin3.51 ▲0.4439.92 ▼1.18
Posts /wp-admin/edit.php3.56 ▲0.4538.05 ▲4.18
Add New Post /wp-admin/post-new.php5.81 ▲0.3775.56 ▼567.26
Media Library /wp-admin/upload.php3.39 ▲0.3929.63 ▼0.53

Server storage [IO: ▲0.16MB] [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: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Live Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10415.95 ▲0.279.34 ▲4.0378.47 ▲2.22
Dashboard /wp-admin2,964 ▲686.16 ▲0.04116.60 ▼15.42171.96 ▲1.44
Posts /wp-admin/edit.php2,801 ▲613.15 ▼0.0969.54 ▲7.84135.07 ▼3.85
Add New Post /wp-admin/post-new.php3,495 ▼24718.42 ▲0.02404.38 ▼45.51158.84 ▼8.33
Media Library /wp-admin/upload.php1,787 ▲355.56 ▲0.07137.94 ▲0.66182.64 ▼8.67
Admin Live Search /wp-admin/admin-live-search.php260.940.0321.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Admin_Live_Search_List_Table' not found in wp-content/plugins/admin-live-search/admin/admin-live-search-post-table.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin-live-search.php
    • > Network (severe)
    wp-admin/admin-live-search.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: search title, live search, search, admin search, dashboard ajax search...

admin-live-search/admin-live-search.php 92% from 13 tests

The main PHP script in "Admin Live Search" version 3.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)

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
Everything looks great! No dangerous files found in this plugin2,405 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP115811,3462,123
JavaScript130163
PO File13437118
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity51.75
▷ Minimum class complexity1.00
▷ Maximum class complexity246.00
Average method complexity4.87
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods106
▷ Static methods43.77%
▷ Public methods6763.21%
▷ Protected methods3230.19%
▷ Private methods76.60%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected