72% acme-amazing-search

Code Review | ACME Amazing Search

WordPress plugin ACME Amazing Search scored72%from 54 tests.

About plugin

  • Plugin page: acme-amazing-search
  • Plugin version: 2.0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2016
  • Latest release: Jul 24, 2017
  • Number of updates: 61
  • Update frequency: every 4.9 days
  • Top authors: acmemediakits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,114 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.65MB] [CPU: ▼21.87ms] Passed 4 tests

Server-side resources used by ACME Amazing Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0230.79 ▼7.35
Dashboard /wp-admin3.37 ▲0.0752.92 ▲1.49
Posts /wp-admin/edit.php3.42 ▲0.0651.64 ▲2.69
Add New Post /wp-admin/post-new.php3.20 ▼2.6838.84 ▼82.12
Media Library /wp-admin/upload.php3.29 ▲0.0637.69 ▲0.52
Search Tools /wp-admin/admin.php?page=acme-amazing-search3.4734.95

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by ACME Amazing Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲19313.58 ▼0.7914.85 ▲12.9441.62 ▲1.62
Dashboard /wp-admin2,216 ▲475.58 ▼0.0584.92 ▼21.5539.64 ▼8.73
Posts /wp-admin/edit.php2,121 ▲161.99 ▼0.0539.60 ▼2.6935.55 ▼5.39
Add New Post /wp-admin/post-new.php1,553 ▲2518.30 ▼4.81658.12 ▲52.4885.25 ▲30.36
Media Library /wp-admin/upload.php1,421 ▲244.23 ▲0.02105.00 ▲1.4941.59 ▲0.39
Search Tools /wp-admin/admin.php?page=acme-amazing-search1,2372.0427.3432.09

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=acme-amazing-search
    • > Notice in wp-content/plugins/acme-amazing-search/admin/partials/acme-amazing-search-admin-display.php+48
    Trying to access array offset on value of type bool

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 fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/acme-amazing-search/ACME_AJAX.php
    • > /wp-content/plugins/acme-amazing-search/public/partials/acme-amazing-search-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/acme-amazing-search/admin/partials/acme-amazing-search-admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/acme-amazing-search/public/partials/acme-amazing-search-public-shortcodes.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === acme-amazing-search === )
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can look at the official readme.txt

acme-amazing-search/acme-amazing-search.php Passed 13 tests

The principal PHP file in "ACME Amazing Search" v. 2.0.13 is loaded by WordPress automatically on each request
62 characters long description:
A google style ultra fast search engine for WP and WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,602 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP172348171,108
PO File3119186316
JavaScript21223125
CSS113653

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.29
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3183.78%
▷ Protected methods00.00%
▷ Private methods616.22%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected