78% visual-search

Code Review | AI Search: Optimize SEO & MRKT

WordPress plugin AI Search: Optimize SEO & MRKT scored 78% from 54 tests.

About plugin

  • Plugin page: visual-search
  • Plugin version: 5.2.15
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.2
  • WordPress version: 6.3.1
  • First release: Aug 13, 2019
  • Latest release: Aug 29, 2023
  • Number of updates: 97
  • Update frequency: every 15.3 days
  • Top authors: camilaalvarez (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 4,807 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.69MB] [CPU: ▲10.93ms] Passed 4 tests

An overview of server-side resources used by AI Search: Optimize SEO & MRKT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.18 ▲1.7254.16 ▲8.79
Dashboard /wp-admin4.99 ▲1.6962.66 ▲15.17
Posts /wp-admin/edit.php5.04 ▲1.6959.19 ▲5.85
Add New Post /wp-admin/post-new.php7.59 ▲1.71109.33 ▲13.89
Media Library /wp-admin/upload.php4.92 ▲1.6951.91 ▲16.51

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for AI Search: Optimize SEO & MRKT
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8714.80 ▲0.421.74 ▼0.0844.08 ▲2.03
Dashboard /wp-admin2,213 ▲254.85 ▼1.05110.13 ▲9.4942.19 ▼1.12
Posts /wp-admin/edit.php2,098 ▲91.99 ▼0.0333.97 ▼6.5832.44 ▼2.36
Add New Post /wp-admin/post-new.php1,521 ▼1223.60 ▲0.28647.67 ▲12.4356.38 ▲4.15
Media Library /wp-admin/upload.php1,395 ▲104.23 ▲0.0397.82 ▼5.9843.23 ▲1.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/visual-search/vendor/nikic/php-parser/test_old/run.php
    • > /wp-content/plugins/visual-search/vendor/nikic/php-parser/grammar/rebuildParsers.php
    • > /wp-content/plugins/visual-search/impresee-creativesearch/includes/Presentation/Settings/SearchButtons/wc-creative-search-buttons-shortcode-section.php
    • > /wp-content/plugins/visual-search/impresee-creativesearch/includes/Presentation/Settings/SearchButtons/wc-creative-general-shortcode-section.php
    • > /wp-content/plugins/visual-search/impresee-creativesearch/includes/Presentation/Errors/InvalidHostError/wc-error-screen.php
    • > /wp-content/plugins/visual-search/impresee-creativesearch/includes/Presentation/Errors/GenericError/wc-error-screen.php
    • > /wp-content/plugins/visual-search/impresee-creativesearch/includes/Presentation/Settings/SearchButtons/wc-creative-searchbar-shortcode-section.php
    • > /wp-content/plugins/visual-search/impresee-creativesearch/includes/Presentation/Onboarding/Processing/wc-processing-screen-onboarding.php
    • > /wp-content/plugins/visual-search/impresee-creativesearch/includes/Presentation/Onboarding/WelcomeScreen/wc-welcome-screen-onboarding.php
  • 664× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Impresee\\CreativeSearchBar\\Core\\Errors\\Failure' not found in wp-content/plugins/visual-search/vendor/impresee/impresee-creative-search-bar-php-base/src/Core/Errors/FailureInvalidError.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/visual-search/vendor/impresee/impresee-creative-search-bar-php-base/tests/Data/Models/IndexationConfigurationModelTest.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/visual-search/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/visual-search/vendor/impresee/impresee-creative-search-bar-php-base/tests/Domain/UseCases/GetInstalledPluginVersionInformationTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/visual-search/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/visual-search/vendor/impresee/impresee-creative-search-bar-php-base/tests/Domain/UseCases/GetCreateImpreseeAccountUrlTest.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/visual-search/vendor/php-di/php-di/src/Container.php:38
    • > PHP Fatal error
      Uncaught Error: Interface 'Impresee\\CreativeSearchBar\\Domain\\Entities\\ImpreseeCatalogStatus' not found in wp-content/plugins/visual-search/vendor/impresee/impresee-creative-search-bar-php-base/src/Domain/Entities/CatalogIsProcessingStatus.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Impresee\\CreativeSearchBar\\Core\\Errors\\Failure' not found in wp-content/plugins/visual-search/vendor/impresee/impresee-creative-search-bar-php-base/src/Core/Errors/FailureStoreImpreseeData.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-search/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 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
6 plugin tags: search bar, product search, visual search, creative search, woocommerce...

visual-search/impresee-creativesearch.php 85% from 13 tests

"AI Search: Optimize SEO & MRKT" version 5.2.15'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:
  • Requires at least: Required version must match the one declared in readme.txt ("3.5" instead of "2.2")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("visual-search.php" instead of "impresee-creativesearch.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin86,521 lines of code in 1,094 files:
LanguageFilesBlank linesComment linesLines of code
PHP9029,05315,31265,049
JavaScript732,5745,6807,773
Markdown472,15306,496
JSON25002,837
yacc3284121,791
SVG82481,550
YAML17786455
CSS1070345
Sass3260140
XML35368
Dockerfile18010
Bourne Shell2207

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces109
Interfaces80
Traits2
Classes772
▷ Abstract classes243.11%
▷ Concrete classes74896.89%
▷ Final classes597.89%
Methods4,313
▷ Static methods2495.77%
▷ Public methods2,60760.45%
▷ Protected methods1,42933.13%
▷ Private methods2776.42%
Functions530
▷ Named functions14527.36%
▷ Anonymous functions38572.64%
Constants437
▷ Global constants5612.81%
▷ Class constants38187.19%
▷ Public constants381100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
impresee-creativesearch/includes/assets/icons/impresee_icon_pluginx20.png0.88KB0.92KB0.00%
impresee-creativesearch/includes/assets/icons/impresee_icon_plugin.png6.45KB4.06KB▼ 37.02%
impresee-creativesearch/includes/assets/icons/image1.png0.63KB0.41KB▼ 34.57%
impresee-creativesearch/includes/assets/impresee-widget/pencil-icon.png0.34KB0.28KB▼ 17.63%
impresee-creativesearch/includes/assets/impresee-widget/camera-icon.png0.45KB0.31KB▼ 31.36%