72% quick-search-wp-woo-admin

Code Review | Quick Search WP & Woo-Admin

WordPress plugin Quick Search WP & Woo-Admin scored 72% from 54 tests.

About plugin

  • Plugin page: quick-search-wp-w...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 25, 2018
  • Latest release: Jul 25, 2018
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: tasteaholics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 514 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.34ms] Passed 4 tests

Server-side resources used by Quick Search WP & Woo-Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.97 ▼2.87
Dashboard /wp-admin3.31 ▲0.0145.61 ▼3.75
Posts /wp-admin/edit.php3.36 ▲0.0145.11 ▼4.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.57 ▼13.98
Media Library /wp-admin/upload.php3.23 ▲0.0132.79 ▼1.53
Quick Search /wp-admin/admin.php?page=search-items3.1727.79
/wp-admin/admin.php?page=javascript:void(0)3.0423.32

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Search WP & Woo-Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲13413.20 ▼1.174.63 ▲2.9240.39 ▼3.48
Dashboard /wp-admin2,275 ▲844.88 ▼0.0199.93 ▼12.5640.77 ▼5.27
Posts /wp-admin/edit.php2,158 ▲692.00 ▲0.0232.94 ▼5.7532.55 ▼3.12
Add New Post /wp-admin/post-new.php1,589 ▲5523.17 ▲0.00655.81 ▲44.2151.02 ▼6.82
Media Library /wp-admin/upload.php1,457 ▲664.25 ▼0.0695.03 ▲0.9741.75 ▼0.27
Quick Search /wp-admin/admin.php?page=search-items8162.0222.1921.57
/wp-admin/admin.php?page=javascript:void(0)280.440.073.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=search-items
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'search_items' not found or invalid function name

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-search-wp-woo-admin/quick-search-wp-and-woo-admin.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=javascript:void(0)
    • > Network (severe)
    wp-admin/admin.php?page=javascript:void(0) - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

quick-search-wp-woo-admin/quick-search-wp-and-woo-admin.php 85% from 13 tests

The main PHP script in "Quick Search WP & Woo-Admin" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quick-search-wp-woo-admin.php" instead of "quick-search-wp-and-woo-admin.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
There were no executable files found in this plugin79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1251658
CSS11121

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin