78% atlas-search

Code Review | WP Engine Smart Search

WordPress plugin WP Engine Smart Search scored78%from 54 tests.

About plugin

  • Plugin page: atlas-search
  • Plugin version: 0.2.32
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Mar 24, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 86
  • Update frequency: every 7.4 days
  • Top authors: wpengine (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /11,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.72MB] [CPU: ▲5.37ms] Passed 4 tests

This is a short check of server-side resources used by WP Engine Smart Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7544.63 ▲4.42
Dashboard /wp-admin4.04 ▲0.6959.25 ▼5.16
Posts /wp-admin/edit.php4.09 ▲0.7362.21 ▲12.02
Add New Post /wp-admin/post-new.php6.66 ▲0.76109.70 ▲10.19
Media Library /wp-admin/upload.php3.97 ▲0.7346.51 ▲12.51
Settings /wp-admin/admin.php?page=wpengine-smart-search3.8742.99
Search Config /wp-admin/admin.php?page=wpengine-smart-search&view=search-config3.8739.56
Sync /wp-admin/admin.php?page=wpengine-smart-search&view=sync-data3.8745.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
wpe_content_engine_search_fields
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Engine Smart Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16615.98 ▲1.271.93 ▲0.2041.14 ▼4.27
Dashboard /wp-admin2,267 ▲896.75 ▲1.12143.57 ▲26.1549.16 ▲2.67
Posts /wp-admin/edit.php2,194 ▲944.22 ▲2.2467.88 ▲28.5140.15 ▲1.30
Add New Post /wp-admin/post-new.php1,590 ▲5425.68 ▲2.67660.12 ▲0.4149.11 ▼10.64
Media Library /wp-admin/upload.php1,482 ▲825.95 ▲1.75119.15 ▲21.5143.32 ▲0.83
Settings /wp-admin/admin.php?page=wpengine-smart-search9094.5382.2647.23
Search Config /wp-admin/admin.php?page=wpengine-smart-search&view=search-config1,4187.28176.6157.19
Sync /wp-admin/admin.php?page=wpengine-smart-search&view=sync-data9174.7373.7329.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • wpe_content_engine_search_fields
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/atlas-search/public/partials/wpe-content-engine-public-display.php
  • 24× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Wpe_Content_Engine\\Helper\\Client_Interface' not found in wp-content/plugins/atlas-search/helper/sync/graphql/client.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Wpe_Content_Engine\\Helper\\Acf_Support\\Types\\Abstract_Type' not found in wp-content/plugins/atlas-search/helper/acf-support/types/email.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/atlas-search/helper/api/search-config-controller.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Wpe_Content_Engine\\Helper\\Json_Schema\\Primitive_Type_Property' not found in wp-content/plugins/atlas-search/helper/json-schema/integer-property.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Wpe_Content_Engine\\Settings_Interface' not found in wp-content/plugins/atlas-search/wp-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Wpe_Content_Engine\\Helper\\Sync\\Batches\\Batch_Sync_Interface' not found in wp-content/plugins/atlas-search/helper/sync/batches/custom-post-type.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Wpe_Content_Engine\\Helper\\Sync\\Batches\\Batch_Sync_Interface' not found in wp-content/plugins/atlas-search/helper/sync/batches/delete-all.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/atlas-search/helper/api/settings-controller.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Wpe_Content_Engine\\Helper\\Json_Schema\\Property' not found in wp-content/plugins/atlas-search/helper/json-schema/json-schema.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Wpe_Content_Engine\\Helper\\Json_Schema\\Primitive_Type_Property' not found in wp-content/plugins/atlas-search/helper/json-schema/string-property.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
1 plugin tags: search

atlas-search/atlas-search.php 92% from 13 tests

The main PHP file in "WP Engine Smart Search" ver. 0.2.32 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,414 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PHP829241,4163,243
Markdown1390101
JavaScript3114455
JSON10013
CSS2051
HTML1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.66
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces22
Interfaces5
Traits1
Classes70
▷ Abstract classes57.14%
▷ Concrete classes6592.86%
▷ Final classes00.00%
Methods225
▷ Static methods114.89%
▷ Public methods18381.33%
▷ Protected methods219.33%
▷ Private methods219.33%
Functions29
▷ Named functions2586.21%
▷ Anonymous functions413.79%
Constants102
▷ Global constants32.94%
▷ Class constants9997.06%
▷ Public constants9494.95%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin