68% smart-admin-search

Code Review | Smart Admin Search

WordPress plugin Smart Admin Search scored68%from 54 tests.

About plugin

  • Plugin page: smart-admin-search
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 31, 2020
  • Latest release: Sep 15, 2023
  • Number of updates: 22
  • Update frequency: every 45.0 days
  • Top authors: andreaporotti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,628 total downloads

Benchmarks

Plugin footprint 65% 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.25MB] [CPU: ▼1.66ms] Passed 4 tests

A check of server-side resources used by Smart Admin Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2237.43 ▼4.08
Dashboard /wp-admin3.56 ▲0.2649.49 ▲0.07
Posts /wp-admin/edit.php3.68 ▲0.3248.69 ▲2.13
Add New Post /wp-admin/post-new.php6.16 ▲0.2883.40 ▼4.74
Media Library /wp-admin/upload.php3.48 ▲0.2539.77 ▲7.80
Smart Admin Search /wp-admin/options-general.php?page=smart-admin-search_options3.4643.51

Server storage [IO: ▲0.26MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smart Admin Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲10313.80 ▼0.601.64 ▼0.4840.72 ▼9.20
Dashboard /wp-admin2,257 ▲665.15 ▼0.75107.63 ▲5.2542.68 ▼0.07
Posts /wp-admin/edit.php2,130 ▲412.48 ▲0.4735.59 ▼3.5733.78 ▼1.02
Add New Post /wp-admin/post-new.php1,562 ▲2918.58 ▼4.56634.39 ▲3.6037.19 ▼17.95
Media Library /wp-admin/upload.php1,435 ▲444.43 ▲0.1596.62 ▼6.4642.66 ▼2.15
Smart Admin Search /wp-admin/options-general.php?page=smart-admin-search_options1,0541.9725.9429.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin has failed uninstalling correctly, leaving 89 files (0.26MB) in the plugin directory
    • (new file) admin/index.php
    • (new file) admin/js/smart-admin-search-admin.js
    • (new file) admin/js/smart-admin-search-options.js
    • (new file) admin/js/smart-admin-search-admin.min.js
    • (new file) admin/css/smart-admin-search-admin.min.css
    • (new file) admin/css/smart-admin-search-admin.css
    • (new file) admin/class-smart-admin-search-options.php
    • (new file) README.txt
    • (new file) admin/class-smart-admin-search-admin.php
    • (new file) LICENSE.txt
    • ...
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/smart-admin-search/admin/partials/smart-admin-search-admin-search-modal.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/smart-admin-search/admin/partials/smart-admin-search-admin-options-page.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: search, admin, dashboard

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

"Smart Admin Search" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
A search engine to quickly find elements and contents inside the WordPress dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,764 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
PHP154429151,210
JavaScript66118107241
PO File16071167
CSS33317146

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.38
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods65
▷ Static methods34.62%
▷ Public methods6092.31%
▷ Protected methods00.00%
▷ Private methods57.69%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin