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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 29.23 ▼9.28 |
Dashboard /wp-admin | 3.74 ▲0.44 | 50.92 ▲3.01 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 48.69 ▼0.57 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 81.49 ▼22.47 |
Media Library /wp-admin/upload.php | 3.58 ▲0.36 | 43.61 ▲9.18 |
Configuration /wp-admin/admin.php?page=syncit_options_slug | 3.58 | 37.44 |
About Us /wp-admin/admin.php?page=athena-search-settings | 3.58 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲344 | 17.19 ▲2.94 | 6.10 ▲4.49 | 43.99 ▲2.42 |
Dashboard /wp-admin | 2,379 ▲188 | 7.94 ▲2.03 | 127.20 ▲29.58 | 38.73 ▼2.09 |
Posts /wp-admin/edit.php | 2,285 ▲196 | 5.12 ▲3.07 | 54.90 ▲14.07 | 30.62 ▼3.87 |
Add New Post /wp-admin/post-new.php | 6,467 ▲4,953 | 25.38 ▲7.74 | 864.97 ▲171.78 | 38.18 ▼13.40 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 6.37 ▲2.21 | 89.34 ▼6.92 | 42.67 ▼0.07 |
Configuration /wp-admin/admin.php?page=syncit_options_slug | 1,091 | 4.80 | 45.71 | 22.68 |
About Us /wp-admin/admin.php?page=athena-search-settings | 1,080 | 5.20 | 51.29 | 29.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 718 | 691 | 4,426 |
PHP | 17 | 360 | 1,392 | 2,284 |
CSS | 5 | 121 | 59 | 644 |
Sass | 5 | 160 | 51 | 494 |
Markdown | 1 | 38 | 0 | 90 |
SVG | 2 | 0 | 2 | 61 |
JSON | 1 | 0 | 0 | 19 |
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 code | 0.29 |
Average class complexity | 18.80 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 27 | 71.05% |
▷ Anonymous functions | 11 | 28.95% |
Constants | 34 | |
▷ Global constants | 4 | 11.76% |
▷ Class constants | 30 | 88.24% |
▷ Public constants | 30 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/imhere.png | 416.00KB | 158.19KB | ▼ 61.97% |
public/img/athena-demo.png | 603.45KB | 195.35KB | ▼ 67.63% |
public/img/athena-website.png | 74.63KB | 30.99KB | ▼ 58.47% |
public/img/workzone.png | 219.34KB | 91.10KB | ▼ 58.46% |
public/img/syncit_website.png | 153.03KB | 61.71KB | ▼ 59.67% |