82% acme-amazing-search

Code Review | ACME Amazing Search

WordPress plugin ACME Amazing Search scored 82% 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: 5.9.2
  • 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

20+ active / 1,804 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.74MB] [CPU: ▼307.58ms] Passed 4 tests

A check of server-side resources used by ACME Amazing Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1752.92 ▲4.18
Dashboard /wp-admin3.62 ▲0.2133.76 ▲1.23
Posts /wp-admin/edit.php3.85 ▲0.2139.55 ▲3.85
Add New Post /wp-admin/post-new.php3.44 ▼3.5329.19 ▼1,237.02
Media Library /wp-admin/upload.php3.50 ▲0.2125.02 ▲1.61
Search Tools /wp-admin/admin.php?page=acme-amazing-search3.5924.29

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACME Amazing Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,983 ▲22917.13 ▲1.4813.57 ▲7.213.24 ▲0.38
Dashboard /wp-admin2,919 ▲586.14 ▼0.04113.35 ▼14.93158.46 ▼3.21
Posts /wp-admin/edit.php2,718 ▲273.37 ▲0.1361.71 ▼2.45134.66 ▼9.62
Add New Post /wp-admin/post-new.php1,686 ▼2518.44 ▼3.29414.66 ▼26.08153.60 ▼2.63
Media Library /wp-admin/upload.php1,725 ▲275.52 ▲0.01141.57 ▼0.71182.68 ▼2.11
Search Tools /wp-admin/admin.php?page=acme-amazing-search1,6492.4154.32125.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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 server-side errors were triggered
  • 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/acme-amazing-search/public/partials/acme-amazing-search-public-display.php
    • > /wp-content/plugins/acme-amazing-search/ACME_AJAX.php
  • 2× PHP files trigger server errors when accessed directly:
    • > 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
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === acme-amazing-search === )
You can take inspiration from this readme.txt

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

The main PHP file in "ACME Amazing Search" ver. 2.0.13 adds more information about the plugin and also serves as the entry point for this plugin
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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,602 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PO File3119186316

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.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
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods25.41%
▷ Public methods3183.78%
▷ Protected methods00.00%
▷ Private methods616.22%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected