90% wpc-ajax-search

Code Review | WPC AJAX Search for WooCommerce

WordPress plugin WPC AJAX Search for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-ajax-search
  • Plugin version: 2.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 24, 2021
  • Latest release: Nov 22, 2023
  • Number of updates: 37
  • Update frequency: every 26.3 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,370 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WPC AJAX Search for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3937.63 ▼5.14
Dashboard /wp-admin3.70 ▲0.3553.42 ▼11.93
Posts /wp-admin/edit.php3.81 ▲0.4555.61 ▲7.69
Add New Post /wp-admin/post-new.php6.30 ▲0.4191.80 ▼4.23
Media Library /wp-admin/upload.php3.62 ▲0.3936.15 ▲1.92
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.8037.13
About /wp-admin/admin.php?page=wpclever3.5933.22

Server storage [IO: ▲0.76MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPC AJAX Search for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12014.68 ▲0.301.74 ▲0.0836.18 ▼6.92
Dashboard /wp-admin2,260 ▲835.54 ▼0.0794.90 ▲2.2973.42 ▲31.45
Posts /wp-admin/edit.php2,181 ▲841.98 ▲0.0141.13 ▲4.1237.83 ▲3.59
Add New Post /wp-admin/post-new.php1,600 ▲7423.23 ▼0.07709.91 ▲88.9152.47 ▼2.86
Media Library /wp-admin/upload.php1,468 ▲684.15 ▼0.0799.95 ▼1.8268.32 ▲24.65
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7412.1333.8057.70
About /wp-admin/admin.php?page=wpclever1,4002.2333.2835.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

wpc-ajax-search/wpc-ajax-search.php Passed 13 tests

The main PHP file in "WPC AJAX Search for WooCommerce" ver. 2.2.9 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
An interaction search popup for 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
Success! There were no dangerous files found in this plugin8,207 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript9652953,713
PHP5266471,935
CSS8311341,857
SVG200521
PO File17280181

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity65.00
▷ Minimum class complexity1.00
▷ Maximum class complexity212.00
Average method complexity5.65
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods55
▷ Static methods59.09%
▷ Public methods55100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants10
▷ Global constants10100.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
There were not PNG files found in your plugin