67% qsearch-ai

Code Review | QSearch.ai

WordPress plugin QSearch.ai scored67%from 54 tests.

About plugin

  • Plugin page: qsearch-ai
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: Oct 3, 2019
  • Number of updates: 9
  • Update frequency: every 19.7 days
  • Top authors: nextlogicwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.95ms] Passed 4 tests

Server-side resources used by QSearch.ai
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.059,497.04 ▲9,453.03
Dashboard /wp-admin3.34 ▼0.0147.75 ▼17.60
Posts /wp-admin/edit.php3.39 ▲0.0347.04 ▼2.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.09 ▼13.71
Media Library /wp-admin/upload.php3.26 ▲0.0334.67 ▲1.99

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for QSearch.ai
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,482 ▼26414.46 ▼0.190.79 ▼1.1712.93 ▼29.52
Dashboard /wp-admin2,219 ▲315.78 ▼0.0293.97 ▼15.4936.42 ▼8.23
Posts /wp-admin/edit.php2,102 ▲132.03 ▲0.0433.00 ▼3.9834.19 ▲0.08
Add New Post /wp-admin/post-new.php1,555 ▲1718.01 ▼5.26614.90 ▼37.8675.54 ▲17.35
Media Library /wp-admin/upload.php1,401 ▲104.22 ▲0.0093.25 ▼3.3346.00 ▲2.26

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
  • The uninstall procedure failed, leaving 1 table in the database
    • store_id
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/qsearch-ai/qsearch-plugin.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_userdata() in wp-content/plugins/qsearch-ai/templates/admin.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

qsearch-ai/qsearch-plugin.php 77% from 13 tests

The primary PHP file in "QSearch.ai" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("qsearch-ai.php" instead of "qsearch-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 264 characters long)

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
Success! There were no dangerous files found in this plugin161 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis 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.22
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods215.38%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There were not PNG files found in your plugin