10% admin-global-search

Code Review | Admin Global Search

WordPress plugin Admin Global Search scored10%from 54 tests.

About plugin

  • Plugin page: admin-global-search
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2017
  • Latest release: Jan 4, 2019
  • Number of updates: 11
  • Update frequency: every 52.3 days
  • Top authors: webplanetsoft (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

60+ active /2,178 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.93MB] [CPU: ▼56.19ms] Passed 4 tests

This is a short check of server-side resources used by Admin Global Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.52 ▼36.63
Dashboard /wp-admin2.07 ▼1.236.36 ▼44.77
Posts /wp-admin/edit.php2.07 ▼1.285.99 ▼47.11
Add New Post /wp-admin/post-new.php2.07 ▼3.8111.64 ▼96.26
Media Library /wp-admin/upload.php2.07 ▼1.165.55 ▼32.36

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Admin Global Search: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲4214.35 ▲0.001.73 ▼0.3244.40 ▲3.19
Dashboard /wp-admin2,222 ▲425.59 ▲0.0288.73 ▼6.7469.37 ▲22.96
Posts /wp-admin/edit.php2,145 ▲451.97 ▼0.0438.55 ▲0.0536.81 ▼1.40
Add New Post /wp-admin/post-new.php1,635 ▲10722.31 ▼0.81677.14 ▼25.2358.89 ▼13.42
Media Library /wp-admin/upload.php1,433 ▲364.14 ▼0.14112.55 ▲13.4771.03 ▲26.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/admin-global-search/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: post, page, admin, search

admin-global-search/index.php 92% from 13 tests

"Admin Global Search" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-global-search.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected244 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4239113
CSS1200106
JavaScript13025

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png33.96KB15.10KB▼ 55.55%
screenshot-2.png44.16KB19.09KB▼ 56.77%
src/search.png116.04KB30.39KB▼ 73.81%