77% athena-search

Code Review | Athena Search

WordPress plugin Athena Search scored77%from 54 tests.

About plugin

  • Plugin page: athena-search
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Apr 10, 2023
  • Number of updates: 45
  • Update frequency: every 23.3 days
  • Top authors: syncitgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼7.33ms] Passed 4 tests

Analyzing server-side resources used by Athena Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3329.23 ▼9.28
Dashboard /wp-admin3.74 ▲0.4450.92 ▲3.01
Posts /wp-admin/edit.php3.80 ▲0.4448.69 ▼0.57
Add New Post /wp-admin/post-new.php6.29 ▲0.4081.49 ▼22.47
Media Library /wp-admin/upload.php3.58 ▲0.3643.61 ▲9.18
Configuration /wp-admin/admin.php?page=syncit_options_slug3.5837.44
About Us /wp-admin/admin.php?page=athena-search-settings3.5834.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Athena Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲34417.19 ▲2.946.10 ▲4.4943.99 ▲2.42
Dashboard /wp-admin2,379 ▲1887.94 ▲2.03127.20 ▲29.5838.73 ▼2.09
Posts /wp-admin/edit.php2,285 ▲1965.12 ▲3.0754.90 ▲14.0730.62 ▼3.87
Add New Post /wp-admin/post-new.php6,467 ▲4,95325.38 ▲7.74864.97 ▲171.7838.18 ▼13.40
Media Library /wp-admin/upload.php1,421 ▲306.37 ▲2.2189.34 ▼6.9242.67 ▼0.07
Configuration /wp-admin/admin.php?page=syncit_options_slug1,0914.8045.7122.68
About Us /wp-admin/admin.php?page=athena-search-settings1,0805.2051.2929.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 10× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/athena-search/src/Controller/UpdateStyleRestApiController.php
    • > /wp-content/plugins/athena-search/src/Controller/AttributesRestApiController.php
    • > /wp-content/plugins/athena-search/src/AthenaSearchMain.php
    • > /wp-content/plugins/athena-search/src/Controller/PostsCategoriesRestApiController.php
    • > /wp-content/plugins/athena-search/src/Controller/PdfRestApiController.php
    • > /wp-content/plugins/athena-search/src/Controller/UpdateSettingsRestApiController.php
    • > /wp-content/plugins/athena-search/src/Controller/ProductCategoriesRestApiController.php
    • > /wp-content/plugins/athena-search/src/Controller/ProductsRestApiController.php
    • > /wp-content/plugins/athena-search/src/Controller/PostsRestApiController.php
    • > /wp-content/plugins/athena-search/src/Controller/PagesRestApiController.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/athena-search/src/views/frontend/athena-search-template.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/athena-search/src/syncit-core-functions.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/athena-search/src/views/admin/aboutus-view.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/athena-search/src/views/frontend/athena-preview-template.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: athena, search, autocomplete

athena-search/athena-search.php 77% from 13 tests

"Athena Search" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2.1" instead of "4.8")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("https://www.syncitgroup.com")
  • Description: The description should be shorter than 140 characters (currently 243 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
Good job! No executable or dangerous file extensions detected8,018 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript137186914,426
PHP173601,3922,284
CSS512159644
Sass516051494
Markdown138090
SVG20261
JSON10019

PHP code Passed 2 tests

A short 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.29
Average class complexity18.80
▷ Minimum class complexity8.00
▷ Maximum class complexity51.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods65
▷ Static methods00.00%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions2771.05%
▷ Anonymous functions1128.95%
Constants34
▷ Global constants411.76%
▷ Class constants3088.24%
▷ Public constants30100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 1.71MB with 1.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/imhere.png416.00KB158.19KB▼ 61.97%
public/img/athena-demo.png603.45KB195.35KB▼ 67.63%
public/img/athena-website.png74.63KB30.99KB▼ 58.47%
public/img/workzone.png219.34KB91.10KB▼ 58.46%
public/img/syncit_website.png153.03KB61.71KB▼ 59.67%