78% admin-live-search

Code Review | Admin Live Search

WordPress plugin Admin Live Search scored 78% 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: 6.3.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

100+ active / 1,782 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.42MB] [CPU: ▲1.95ms] Passed 4 tests

Analyzing server-side resources used by Admin Live Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4643.01 ▲5.18
Dashboard /wp-admin3.75 ▲0.4546.89 ▼1.15
Posts /wp-admin/edit.php3.81 ▲0.4553.48 ▲10.01
Add New Post /wp-admin/post-new.php6.29 ▲0.4195.53 ▲4.84
Media Library /wp-admin/upload.php3.61 ▲0.3936.36 ▼1.07

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Live Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.25 ▼1.344.34 ▲2.5243.20 ▼0.74
Dashboard /wp-admin2,236 ▲485.86 ▲0.8497.04 ▼20.9638.52 ▼6.93
Posts /wp-admin/edit.php2,141 ▲522.16 ▲0.1146.33 ▲10.2036.30 ▲2.58
Add New Post /wp-admin/post-new.php1,553 ▲1918.34 ▼4.82615.93 ▼60.4553.44 ▲1.63
Media Library /wp-admin/upload.php1,424 ▲334.26 ▲0.0897.49 ▼11.1144.11 ▼3.31
Admin Live Search /wp-admin/admin-live-search.php260.440.1213.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > 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
These are user-side errors 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

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: dashboard ajax search, ajax search, search, admin, live search...

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

This is the main PHP file of "Admin Live Search" version 3.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,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
Everything seems fine, there were 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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected