84% advanced-admin-search

Code Review | Advanced Admin Search

WordPress plugin Advanced Admin Search scored84%from 54 tests.

About plugin

  • Plugin page: advanced-admin-se...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.0
  • WordPress version: 6.3.1
  • First release: Sep 27, 2018
  • Latest release: Jun 15, 2022
  • Number of updates: 25
  • Update frequency: every 54.3 days
  • Top authors: kuroit (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /72,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.18ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Admin Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.36 ▼1.14
Dashboard /wp-admin3.45 ▲0.1545.41 ▼8.34
Posts /wp-admin/edit.php3.56 ▲0.2145.77 ▲2.12
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.82 ▼9.36
Media Library /wp-admin/upload.php3.37 ▲0.1542.42 ▲7.36
Advanced Admin Search /wp-admin/tools.php?page=advanced-admin-search3.3429.54

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Admin Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲18413.37 ▼1.012.42 ▲0.3142.96 ▼4.61
Dashboard /wp-admin2,285 ▲975.89 ▲0.9298.96 ▼18.3070.12 ▲17.59
Posts /wp-admin/edit.php2,165 ▲762.05 ▲0.0334.48 ▼0.5834.23 ▼0.63
Add New Post /wp-admin/post-new.php1,755 ▲21824.67 ▲1.57607.47 ▼80.1734.56 ▼25.01
Media Library /wp-admin/upload.php1,467 ▲764.35 ▲0.0798.17 ▼1.7880.71 ▲36.61
Advanced Admin Search /wp-admin/tools.php?page=advanced-admin-search1,0281.7724.6053.02

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-admin-search/menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kuroit\\AdvancedAdminSearch\\add_action() in wp-content/plugins/advanced-admin-search/searchresults.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: custom post type search, admin search, advance search

advanced-admin-search/advanced-admin-search.php Passed 13 tests

The main PHP script in "Advanced Admin Search" version 1.1.6 is automatically included on every request by WordPress
79 characters long description:
Easily search everything in WordPress admin panel from one single search field.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,739 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP610360745
CSS108659
JavaScript32712242
Markdown124085
make1408

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity15.75
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin