89% ez-ajax-search

Code Review | EZ Ajax Search

WordPress plugin EZ Ajax Search scored89%from 54 tests.

About plugin

  • Plugin page: ez-ajax-search
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Jul 24, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: keksdieb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,431 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼0.23ms] Passed 4 tests

A check of server-side resources used by EZ Ajax Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2648.22 ▲9.98
Dashboard /wp-admin3.55 ▲0.2452.17 ▼2.35
Posts /wp-admin/edit.php3.66 ▲0.3054.20 ▲4.56
Add New Post /wp-admin/post-new.php6.13 ▲0.2497.21 ▼10.46
Media Library /wp-admin/upload.php3.47 ▲0.2440.80 ▲7.32
Add New /wp-admin/post-new.php?post_type=ezas_search_forms3.5045.30
Settings /wp-admin/edit.php?post_type=ezas_search_forms&page=ezas-settings3.4639.54
All Search Forms /wp-admin/edit.php?post_type=ezas_search_forms3.5137.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_ez_ajax_search_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for EZ Ajax Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.39 ▲0.061.79 ▲0.0240.50 ▼5.71
Dashboard /wp-admin2,244 ▲675.80 ▲0.2995.21 ▲2.7241.66 ▼6.35
Posts /wp-admin/edit.php2,130 ▲272.31 ▲0.3139.78 ▲2.5538.51 ▲4.35
Add New Post /wp-admin/post-new.php1,565 ▲3923.53 ▼0.21607.07 ▼18.0035.62 ▼22.08
Media Library /wp-admin/upload.php1,450 ▲534.33 ▲0.1393.51 ▼9.2745.73 ▲1.86
Add New /wp-admin/post-new.php?post_type=ezas_search_forms2,0072.7649.6152.55
Settings /wp-admin/edit.php?post_type=ezas_search_forms&page=ezas-settings1,9303.0973.7144.50
All Search Forms /wp-admin/edit.php?post_type=ezas_search_forms1,0942.2533.9227.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_ez_ajax_search_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: ajax search form, product search, ajax search, search form, woocommerce search...

ez-ajax-search/ezas.php 85% from 13 tests

Analyzing the main PHP file in "EZ Ajax Search" version 1.0.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ez-ajax-search.php" instead of "ezas.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 339 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,893 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP83122541,236
PO File1128274278
CSS3211162
LESS12912148
JavaScript322969

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.80
▷ Minimum class complexity3.00
▷ Maximum class complexity107.00
Average method complexity5.26
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods35
▷ Static methods3188.57%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
assets/css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
assets/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png5.72KB1.83KB▼ 67.99%
assets/css/images/ui-bg_flat_10_000000_40x100.png0.24KB0.08KB▼ 64.34%